I am using a Microchip PIC18F45K20 as a I2C slave. Using the EX_SLAVE.c code I am finding that on a byte write transaction to the PIC, it is not acknowledging the data byte. It acknowledges the address byte just fine.
Ideas?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Oct 26, 2010 3:03 pm
My advice is to test it with a different PIC, because the PIC18F45K20 has
several things wrong with i2c as listed in the errata:
http://ww1.microchip.com/downloads/en/DeviceDoc/80425G.pdf
If it works with a different PIC, then you may have a hardware problem in
the PIC18F45K20.
starr256
Joined: 25 Oct 2010 Posts: 2
Posted: Tue Nov 02, 2010 9:18 am
OK, that was fun. Different chip (PIC18F4420), better results. Thanks.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum