Good morning,
I am carrying out a large project. I am running multiple interrupts every few ms. Unfortunately I realised that it conflicts with the i2c module because I was polling it with the I2C_MasterTransferBlocking function. By doing so, it was blocking my repeated interrupts. This is why I decided to use the i2c module also in interrupt. Unfortunately, I don't know how best to perform the transmission via iterrupt without using a while to wait for the transmission to complete. Attached is a simpler, cleaned-up project of what I am currently doing, so that I can understand how best to carry out i2c transmission and print on the display.
Could you kindly advise me on this?
Thanks in advance
Regards
Hello @Transidico,
To better assist you, could you clarify whether the I2C transfer needs to be terminated in order to display the message?
If that is the case, it seems your application is inherently blocking, as it relies on another process to complete before proceeding. Given this dependency, the approach you are currently implementing appears to be the most appropriate solution.
Hope it helps.
BR
Habib