Blocking i2c module problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Blocking i2c module problem

517 Views
Transidico
Contributor III

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

0 Kudos
Reply
2 Replies

496 Views
Transidico
Contributor III
Sorry, any answers on that?
0 Kudos
Reply

472 Views
Habib_MS
NXP Employee
NXP Employee

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

0 Kudos
Reply