LPC1830 GPIO for SW I2C configuration

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

LPC1830 GPIO for SW I2C configuration

1,059 次查看
kensu
Contributor V

Hi,

I use LPC1830 GPIO for SW i2c use,

My GPIO pin configuration for SDA and SCL is -->

"SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC0"

My HW Schematic has pull high resistors,

1. Should I use "SCU_MODE_INACT" for my SDA, SCL pin configuration if I has pull high resistors?

2. To simulate I2C, my SDA GPIO need to set output, it need also to read input to check ACK, when I set to output mode and if I want to read input, should I set to input mode before I read? As I know, it can read input level even in output mode.

3. If I connect a i2c slave device and change SDA pin to input mode from output mode, there is an small purse when mode change, but if I don't connect slave i2c device, this pulse will not happens. Can someone have comment about this? because I have 8 slave i2c device, 7 are read/write OK(also have this pulse), 1 is NG, we are confirm this issue now. We want to know how to make this pulse disappear.  

pastedImage_1.png

Thanks

Ken

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

834 次查看
soledad
NXP Employee
NXP Employee

Hi,

In order to isolate the issue, could you please try using the I2C LPCOpen example.

I want to check if there is a software or hardware issue.

LPCOpen Software for LPC18XX|NXP 

Have a great day,
Soledad

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

0 项奖励
回复