Multiple LPC1114's on I2C

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

Multiple LPC1114's on I2C

758 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cdrfalken on Thu Dec 30 21:40:21 MST 2010
This might sound a little noobish, but I am attempting to network a few LPC1114's using I2C and I have a question about setting the target micros I2C address. I am a bit new to the LPC1114 and any help would be appreciated. So how do I set each micro to a different I2C address? I've looked at many posts regarding I2C in this forum but have not seen anything on how to accomplish this.
0 项奖励
回复
1 回复

726 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sat Jan 01 04:47:49 MST 2011
Sample code bundle for LPC11xx:

http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC11C14&sort=date&locale=en,,Latn

includes examples for I2C master and I2C slave.

In slave mode:

LPC_I2C->ADR0 = MY_OWN_SLAVE_ADDRESS;

is used to determinate an address match (see UM10398 Chapter 11.7)
0 项奖励
回复