Hello. We are using the RM48L952ZWT Hercules platform with HalCoGen 4.03.00. The I2C driver that had been generated using halcogen had problems, so in aother post on this forum we got another I2C driver to replace it (thank you). To use the I2C driver we used also the sample from TI (see below), where there is a 50msec delay between the transmission/reception of each byte (otherwise the driver gets stuck in the while loop because the I2C locks up).
i.e., in the
/* Wait until Bus Busy is cleared */
while(i2cIsBusBusy(i2cREG1) == true);
/* Wait until Stop is detected */
while(i2cIsStopDetected(i2cREG1) == 0);
Why does it take 50msec? Is here anything we can do to decrease the delay time? Or will that be risky because then we end up in the endless while loop because of the lockup? WHen I decreased the delay, it does get stuck in the endless while loop. I just wanted to know if there is another way other than the delay between byte transmissions. Thank you.