how to use the I2C driver

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

how to use the I2C driver

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

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