isr vs task

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

isr vs task

Jump to solution
573 Views
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 Kudos
1 Solution
369 Views
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

 

View solution in original post

0 Kudos
1 Reply
370 Views
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 Kudos