Blocking i2c module problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Blocking i2c module problem

513件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

492件の閲覧回数
Transidico
Contributor III
Sorry, any answers on that?
0 件の賞賛
返信

468件の閲覧回数
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 件の賞賛
返信