LPC8N04 I2C Master/Slave mixed operation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC8N04 I2C Master/Slave mixed operation

924件の閲覧回数
brentsinger
Contributor I

Hi, I'm developing an LPC8N04 project and have determined that I want the bus to have two masters.

I'm also very new to LPC and MCUExpresso IDE.

My LPC8N04 is being used as an EEPROM, but I would like it to occasionally switch from i2c Slave to Master, so it can also read a few sensors, and cache the results in it's EEPROM. 

Another bigger processor will periodically wake and read the I2C bus, grabbing from the LPC8N04 EEPROM space.

Before I invest time in protoyping this... it is doable? The 8N04 datasheet indicates the I2C module is quite simple; master, slave, nothing fancy in between. I'm assuming I can deinit the module, create a new context, then init with new context. 

 

Thanks in advance for your help here. Brent.

0 件の賞賛
返信
1 返信

892件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

About development LPC8N04 I2C, recommend you refer to I2C master and I2C slave demo under SDK.

MCUXpresso IDE: https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-i...  

Download SDK: https://mcuxpresso.nxp.com/en/select  

 

BR

Alice

0 件の賞賛
返信