I'm trying to use I2C routines created by processor expert. I am trying to read temperature from an I2C device and when using code similar to the examples and I see the following problem on a scope.
When I transmit the address that I need to read and the program waits for the OnTransmitData interrupt to set a flag. The program sees the OnTransmitData interrupt flag before the Close. The program then continues to try to receive data and I get a "Bus not available" error.
Do I need to insert a delay? None are shown in the sample code.
Thanks for your help.