kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
I2C slave gives NACK (v4.081) |
Posted: Mon Mar 09, 2009 3:45 pm |
|
|
Colleagues,
Originally, I wrote and successfully tested my code using 4.071 back in December. Since then I have updated my compiler to 4.081. I have re-compiled the old code, but now slave sends NACK where under the old compiler it was properly sending ACK. The list of recent changes shows that some problems with I2C were fixed. What has changed? What would you recommend to try?
Just in case, here's my I2C declaration:
Code: | #use i2c(Slave, sda=PIN_C4, scl=PIN_C3, address=0xB0, FORCE_HW, NO_STRETCH) // I've tried without NO_STRETCH, but still was getting NACK. |
PIC18LF4525
Thanks!
- Nick _________________ Read the label, before opening a can of worms. |
|