how to use the I2C driver

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

how to use the I2C driver

1,029 Views
nakajimafuminor
Contributor I
I want to know how to use LPC 822 I want to know how to use I2C among them. I am building programs using the development environment of LPCXPressso. I want to know there is how to use the I2C driver.
0 Kudos
1 Reply

582 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi nakajima fuminori,

Thank you for your interest in NXP LPC product, I would like to provide service for you.

About the I2C usage, you can refer to our official code for LPC82X, there have some I2C code.
1. Codebundle code

LPC824 Example Code Bundle LPCXpresso

Folder:LPC824_Example_Code_Bundle_LPCXpresso_r1.0\Example_I2C_MasterSlave

2. LPCopen code

https://www.nxp.com/downloads/en/libraries/lpcopen_3_02_lpcxpresso_nxp_lpcxpresso_824.zip 

periph_i2cm_interrupt and periph_i2cs_interrupt

master and slave.

Please associate with our LPC822 user manual and the official code to learn the I2C module usage.

If you still have question about it after you learn it, please kindly let me know!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos