PIC Microcontroller Projects DISCUSSION

MCC I2C Lib, Slave only Acks every other read

Started by syedzainnasir MCC I2C LibSlave only Acks every other read
0 replies 248 views 1 participants
Latest activity · 06 Mar 2017

MCC I2C Lib, Slave only Acks every other read

syedzainnasir PIC Microcontroller Projects Forum
#1
Hey y'all,
Been trying to run the dsPIC33EP256MC202 as an I2C slave. Generated the MCC I2C lib and have it running ok (just using the sample EEPROM callback code generated by MCC). Works fairly well, but there is one catch I'm trying to sort out. When I perform a read to an address I only get a successful exchange every other read... i.e. I must read the address twice. Otherwise I get an Ack after the Slave Device Addr transmission and a Nak after the desired read register address is sent. Any thoughts?

Community replies 0

Be the first to help

There are no replies yet.

TEP COMMUNITY