S32K144 I2C pins are don't work

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

S32K144 I2C pins are don't work

1,094 Views
alstlr926
Contributor III

I was going to take a [Example_S32K144_I2C_Master_MPL3115A2_S32DSR1_v3] file and test the I2C communication with this project. Both the SDA and SCL should be high (5 V) in IDLE state, but pins PORTA2, PORTA3, were measured with the oscilloscope, both of which produced low (0 V) output. The slave was not connected. What's wrong with the project or the board?

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

990 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi alstlr926@naver.com,

You need to use pullup resistors on the bus either external or at least the internal ones. 

This is the description of the example:

pastedImage_2.png

The internal pullups can be enabled in the PCR registers of the ports.

PCR[PE, PS] = 1.

pastedImage_3.png

BR, Daniel

0 Kudos