Trouble resetting I2C Master after glitches. | Cypress Semiconductor
Trouble resetting I2C Master after glitches.
Hi, I am trying to reset an I2C Master after inserting random glitches to the hardware I2C. I have not been successful on resetting the hardware. It seems that once I2C Master is hanged due to random glitches, it stop responding even though the hardware is reinitialized. I am testing this with no slaved attached, so all transaction are NAKed.
I2C_MCSR_REG = 0;
Even after those routines are called, the I2C_MCSR_BUS_BUSY bit in I2C_MCSR_REG remains '1'. Can anyone help with resetting the I2C hardware?