2133390_en-US

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

2133390_en-US

2133390_en-US

Blocking i2c module problem

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

Re: Blocking i2c module problem

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

Re: Blocking i2c module problemSorry, any answers on that?
タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-22-2025 08:49 AM
更新者: