LPI2C of S32K146

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

LPI2C of S32K146

267 Views
hongmei
Contributor I

Hello,

We are now using S32K146 for development. I want to use PTA0 and PTA1 as LPI2C port.

In S32DS sample(lpi2c_master_xxx), PTA2 and PTA3 are used as LPI2C port.

On my board for development, When I tried to modify PTA2/PTA3 to PTA0/PTA1 using same configuration, the is no waveform that output from PTA0/PTA1, but when I changed PTA0/PTA1 to PTA2/PTA3, there is waveform that output from PTA2/PTA3. By the way, there is pull-up resistance on PTA0/PTA1.

Could you please tell me the reason why there is no waveform from PTA0/PTA1?

Is there some difference between PTA0/PTA1 and PTA2/PTA3 when used as LPI2C port?

Attached is my screenshot of my configuration.

Best Regards,

Thanks!1.png2.png

0 Kudos
3 Replies

246 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Please refer to the following discussion: 
On S32K144, PTA0 and PTA1 port can not be used as I2C SCL and SDA?
LPI2C Master in S32K116


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos

163 Views
hongmei
Contributor I

Hello,

Thank you for your reply.

Now, I have another problem.

Last week, I use PTA2/PTA3 as LPI2C with internal pullup registers, it worked.

But now, I use PTA2/PTA3 as LPI2C with outside pullup registers 2.2k, it didn't work.

Is there any request with pullup registers?

Best Regards,

Thanks!

0 Kudos

155 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please check the value of PORT_PCRn[MUX][PE][PS]. Did you select the pins as I2C function and disable the internal pull resistor? 

Check the I2C pin voltage, is the voltage being pulled high?

0 Kudos