Example project LPI2C_MASTER

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

Example project LPI2C_MASTER

跳至解决方案
2,935 次查看
hajianik
Senior Contributor I

Hi,

For the LPI2C_MASTER project , I don't seem to understand the wiring connection. for S32K44EVB-Q100 the following describes the wiring:

PIN FUNCTION | S32K144EVB-Q100 | S32K144-MB
    ----------------|---------------|--------------
    LPI2C SCL (\b PTA3) |J1-3 - Slave SCL      |J9-30 - Slave SCL
    LPI2C SDA (\b PTA2) |J1-1 - Slave SDA    |J9-29 - Slave SDA
    GND       (\b GND)  |J3-11 - Slave GND    |J6 - Slave GND

So PTA3/PTA2 where are they connected to, don't we need a pull up on SCL(PTA3)?

标记 (1)
0 项奖励
回复
1 解答
2,546 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

These pins PTA2/PTA3 are connected only to the J1 header.

Pin configuration of this example is set in 2-pin open drain mode (see register MCFGR1) which requires pull-ups. Internal pull-ups are enabled by default (PORTA[PCR]) so you can see the communication on scope. It might work but in general these internal pull-ups are week for I2C communication so you should use external pull-ups.

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,842 次查看
peter09
Contributor III

please uplode working example of lpi2c master for s32k144evb bord

0 项奖励
回复
2,547 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

These pins PTA2/PTA3 are connected only to the J1 header.

Pin configuration of this example is set in 2-pin open drain mode (see register MCFGR1) which requires pull-ups. Internal pull-ups are enabled by default (PORTA[PCR]) so you can see the communication on scope. It might work but in general these internal pull-ups are week for I2C communication so you should use external pull-ups.

 

Regards,

Daniel

0 项奖励
回复
2,546 次查看
hajianik
Senior Contributor I

Thanks for your reply

So there is actually no Slave device, So who is sending ACK and other frames from Slave. Or this is just sending 255 bytes in one shot with one stop at the end without receiving any thing from any slave?

Thanks,

Koorosh Hajiani

0 项奖励
回复
2,546 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, that's correct. The S32K144 device has only one LPI2C instance. So you need two boards, one as a master and one as a slave, or another I2C device.

Regards,

Daniel