Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hi
Is there any example project for I2C-Communication with interrupts in master mode (I'm working with a TMS570LS12x and HALCoGen)?
At the moment I use the I2C communication interface in polling mode. It works, but sometimes I have problems with the blocking-loops in the send function (while ((i2c->STR & (uint32)I2C_TX_INT) == 0U)) and in the receive function (while ((i2c->STR & (uint32)I2C_RX_INT) == 0U)). I don't like this loops and would like to change to interrupt mode. An example would be very helpful for me.
Thanks, and best regards
Simon