How can I attach an I2C device to the Arduino bus on the LPCXpresso54628 board?

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

How can I attach an I2C device to the Arduino bus on the LPCXpresso54628 board?

594 次查看
greg_smith
Contributor I

I am trying to use a different LCD screen with the development board.  This one use the standard 4 pin connector for its touch function (+X, +Y, -X, -Y), but I have an adapter which converts that to an I2C input.  I tried using the PMOD connector to attach it, but am running into conflicts with the Linkserver connection for the probe.  So, I would like to use Flexcomm3, which is (If I'm reading this correctly) part of the Arduino bus.  How can I use Flexcomm3 for this device?

0 项奖励
回复
1 回复

530 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Greg,

I recommend you to download the newest version of the SDK (2.4.1). Within the SDK you will find multiple examples of I2C applications. You can use this as a guide to see how to make all the configurations. For example, the project lpcxpresso54628_i2c_interrupt_b2b_transfer_master configures pins P1_17 and P1_18 to work in I2C master mode. These pins are from the Arduino shield, but they use Flexcomm8, is there any particular reason you want to use Flexcomm3? 

Link to download the SDK. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------- 

0 项奖励
回复