Hi,
I want make I2C modul work in interrupt mode. So I generate basic code by Hal(enable the I2C enable,etc.). I2C modul work in master mode without OS.
I read this code. TX ISR function will perform from the second byte began sending work. That means the "start" signal and the first byte will be send by my sub-function and interrup will be taggle by this operation. The "stop" signal will be generated in "i2cNotification" function. After the "stop" signal, it completed a I2C command series.So that means is I can not start the next command series befor the last command is completed.
My question is :
1. If I need send the next command series before the I2C modul complete the last one. which flag I need detect for waiting the last commandtill it is completed.
2. Is there any way I can start the next command series without waitting last series.-----this is why I want use the interrupt mode.
Thanks!
Chuan