We have 4 identical boards using the same firmware. However, 2 of the boards fail to communicate with our PCF8574 chips.
I’ve debugged the code down to this line of code: I2C1_C1 |= I2C_C1_IICEN_MASK;
All I2C registers are identical up to this line of code.
This line “Enables I2C module operation”. On the two boards that work correctly, this bit is set as expected. On the two boards that fail, this bit gets set, but ALSO the Status Register’s Busy flag gets set.
I feel that this busy flag is trying to tell me something, but I'm not sure how to interpret it in this case.
Have you figured out the issue you were encountering?
The above code appears to be associated with the processor that you are using rather than the PCF8574 device.
Yes, I worked though this issue already.
I observed that the issue was only present when I quickly power-cycled the unit, the capacitance on the chips' power supply kept the chip powered-up, but the power-cycle generate a pulse on the SCL and SDA lines. So, the chip thought it was mid transmission (BUSY). When the issue occurred, I verified that the bus returned to a NON-busy state after I pulsed out more clock signals.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.