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?


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir