Hi, I am having problem with I2c module, after sending Address byte from MCU the slave is not able to Acknowledge it looks like the Master is not giving line free for slave to acknowledge.
MCU MK66 (CoreClk180Mhz, Fbus 60Mhz)
Slave Mcp4728 (Quad 12Bit DAC)
I2C Baud 100Kbps
Board Custom Board.
Code custom code (parts copied from SDK).
In order to test the Hardware connections I wrote a SoftI2CMaster (using Bitbang) and it works fine only the built-in hardware I2C module makes problems.
Attached please find the Oscilloscope Screen-shots for software and hardware I2CMaster.
Also the code for both.
I have been banging my head since Monday, can anyone please help.
Original Attachment has been moved to: HardI2CMaster.h.zip
Original Attachment has been moved to: SoftI2cMaster.cpp.zip
Original Attachment has been moved to: SoftI2cMaster.h.zip
Original Attachment has been moved to: HardI2CMaster.cpp.zip