Author |
Message |
Topic: RS232 msg on powerup |
johnbravado
Replies: 2
Views: 2922
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2010 10:41 am Subject: RS232 msg on powerup |
not sure what converter you are using to convert the ttl tors232, either a max232 chip or if that is all included in the demo board so you just have to connect the computer to it. However i can probab ... |
Topic: i2c slave is holding scl low |
johnbravado
Replies: 5
Views: 10059
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2010 9:57 am Subject: i2c slave is holding scl low |
yes i do realize, and i see a blurp where the master tries to send an ack, but then i hold the scl low so the master cant send a stop.
I tried adding the following in hopes to try and force the sl ... |
Topic: i2c slave is holding scl low |
johnbravado
Replies: 5
Views: 10059
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2010 9:17 am Subject: i2c slave is holding scl low |
Thanks. If the master does not send an ack after receiving the data i send it. would that cause the pic to hold the SCL line low? |
Topic: i2c slave is holding scl low |
johnbravado
Replies: 5
Views: 10059
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2010 8:14 am Subject: i2c slave is holding scl low |
I am having an issue where my slave PIC16F886 is holding the SCL low, i am assuming to clk stretch. However, since CCS is doing all the i2c work, is there a way to make the pic release the scl line. w ... |
Topic: need help in set up timer0 |
johnbravado
Replies: 4
Views: 6872
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2010 4:31 pm Subject: need help in set up timer0 |
L1: if (input(stop_switch==1 || count<6500)
you are missing parenthesis.
L1: if (input(stop_switch==1 || count<6500))
the second error may ... |
Topic: General I2C questions PIC16F886 |
johnbravado
Replies: 6
Views: 6862
|
Forum: General CCS C Discussion Posted: Wed Apr 14, 2010 1:48 pm Subject: General I2C questions PIC16F886 |
Thanks. I am thinking I am going to have to wait until I get their test box to fully explore this. Just for clarification of how this is working though.
If they are sending to slave address 0x33, I ... |
Topic: General I2C questions PIC16F886 |
johnbravado
Replies: 6
Views: 6862
|
Forum: General CCS C Discussion Posted: Wed Apr 14, 2010 12:53 pm Subject: General I2C questions PIC16F886 |
I am working in conjunction with another company. They have a product that wants to interact with ours through i2c communication. They already have many products out there in which their unit, DB, con ... |
Topic: General I2C questions PIC16F886 |
johnbravado
Replies: 6
Views: 6862
|
Forum: General CCS C Discussion Posted: Wed Apr 14, 2010 12:23 pm Subject: General I2C questions PIC16F886 |
I got 2 PIC16F886 communicating with each other. However, if I make the slave address odd, it doesn't work.
In the slave file I have
#use i2c(slave, slow, force_hw, sda=PIN_C4, scl=PIN_C3, ... |
Topic: i2c help pic16f886 |
johnbravado
Replies: 3
Views: 4638
|
Forum: General CCS C Discussion Posted: Wed Apr 07, 2010 5:14 pm Subject: i2c help pic16f886 |
Thank you all for reading and responding with what you did. Got it working now. In all my testing i never got things sorted out just right. In the master program i need to do a i2c_read(0) command, wh ... |
Topic: i2c help pic16f886 |
johnbravado
Replies: 3
Views: 4638
|
Forum: General CCS C Discussion Posted: Wed Apr 07, 2010 4:03 pm Subject: i2c help pic16f886 |
I want chip A to send a byte that is a question, ie if chip B receives 0xFA from chip A, chip B will respond with 0x32. It is for status verification and monitoring. For this code though I just want c ... |
Topic: i2c help pic16f886 |
johnbravado
Replies: 3
Views: 4638
|
Forum: General CCS C Discussion Posted: Wed Apr 07, 2010 3:18 pm Subject: i2c help pic16f886 |
I am using a pic16f886 and can use some help. I have read extensivly the posts about this subject and nothing seems to work. I am trying to do i2c communication between 2 pics.
Code is listed below ... |
|