Author |
Message |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Mon Nov 24, 2014 3:56 pm Subject: i2c Master and Slave problem |
Lowering the pullup to 1.1K has the above code working reliably at 400khz. Without the pullup change, it would work up to ~200khz.
Thank you for your help and ideas. I think this is working to th ... |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Mon Nov 24, 2014 12:51 pm Subject: i2c Master and Slave problem |
Thanks both of you for your thoughts.
Ttelmah, you bring up good points.
The hardware on this design(not under my control) does have a longer i2c path than I have programmed for in the past, and ... |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Sun Nov 23, 2014 10:51 pm Subject: i2c Master and Slave problem |
So I've updated the code listing in the first post with the present state of the test code.
I've added some master code into the i2c slave to read from a MCP23017 occasionally.
Presently this c ... |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Sun Nov 23, 2014 1:24 pm Subject: i2c Master and Slave problem |
Thanks for you insights PCM,
You are correct that the test program should use the I2C Master to really know it's working.
The master side is coded and working already, and talks to several MCP ... |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Sat Nov 22, 2014 5:59 pm Subject: i2c Master and Slave problem |
5.019 from the .lst |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Sat Nov 22, 2014 4:00 pm Subject: i2c Master and Slave problem |
Thanks Ttelmah for the suggestion.
I tried it out, and am still getting the same response from the hardware.
I've updated my first post to show the changes I made.
I'm reading through the onl ... |
Topic: i2c Master and Slave problem |
riggsy
Replies: 15
Views: 34603
|
Forum: General CCS C Discussion Posted: Sat Nov 22, 2014 11:29 am Subject: i2c Master and Slave problem |
Hello,
I'm looking for ideas for things to try, or that I'm missing. I have a solution where I need a PIC to be both a Master on one set of pins, and a slave on another set( both sets are hw i2c m ... |
Topic: PIC->PIC via RS232 |
riggsy
Replies: 4
Views: 4660
|
Forum: General CCS C Discussion Posted: Wed Sep 10, 2008 11:25 am Subject: PIC->PIC via RS232 |
Hey thanks for the confirmation( knowing you're not screwing it up is half the battle)
I've got it all working as of this morning.
Regards
riggsy |
Topic: PIC->PIC via RS232 |
riggsy
Replies: 4
Views: 4660
|
Forum: General CCS C Discussion Posted: Wed Sep 10, 2008 12:21 am Subject: PIC->PIC via RS232 |
Hey there(first post, longtime lurker, you guys are great, I've written several apps that are in production just by reading through the posts here and bangin stuff out myself, kudos to all for your su ... |
|