LPC1830 GPIO for SW I2C configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1830 GPIO for SW I2C configuration

603 Views
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

Labels (1)
Tags (2)
0 Kudos
1 Reply

378 Views
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 Kudos