K21F120 I2C interrupt read.

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

K21F120 I2C interrupt read.

480 Views
sudhanshumehta
Contributor IV

Hi All, 

I am having K21F120 controller.

I can do I2C Rx and Tx using the example given in the MQX folder (using polling).

I want to read over I2C by interrupt. 

any application note will be helpful.

Thanks

Sudhanshu

0 Kudos
Reply
1 Reply

381 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Sudhanshu:

Here linked an application note about an i2c driver based on interrupt and blocking mechanism for MQX.

This application note implements an i2c driver on MQX, which masked the details of the i2c operations and simplifies the application code to a great extent. It covers both the master and slave modes.  The code is validated on the  K60n512-TWR board. unfortunately I don't have code for K21F120.

http://cache.nxp.com/assets/documents/data/en/application-notes/AN4652.pdf?fsrch=1&sr=1&pageNum=1 

Regards

Daniel

0 Kudos
Reply