Blocking i2c module problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Blocking i2c module problem

516 次查看
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 回复数

495 次查看
Transidico
Contributor III
Sorry, any answers on that?
0 项奖励
回复

471 次查看
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 项奖励
回复