isr vs task

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
579件の閲覧回数
Seitec
Contributor III

Hi I would like ask you.

 

I need catch some message from I2C where is lot devices. So when message come i need separate message.  Is better way use ISR or event which is connected to flag I2C. Is possible use event?

 

Thank you very much

 

Ondra.

0 件の賞賛
1 解決策
375件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

in MQX 3.8, there's an I2C slave example that shows how to continuously process messages that address your I2C device in slave mode.

The I2C driver operates on byte basis, you have to create the protocol above this low layer according to your needs in one of your tasks.

 

Regards,

PetrM

 

元の投稿で解決策を見る

0 件の賞賛
1 返信
376件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

in MQX 3.8, there's an I2C slave example that shows how to continuously process messages that address your I2C device in slave mode.

The I2C driver operates on byte basis, you have to create the protocol above this low layer according to your needs in one of your tasks.

 

Regards,

PetrM

 

0 件の賞賛