MPC5777M I2C problem

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

MPC5777M I2C problem

1,512 次查看
underdangerous
Contributor II

Hello, Community:
I used the I2C example code of MPC5748G to test the I2C of MPC5777M, but it didn't work. I compared the I2C of two MCUs and found that there was no difference between the two. I was confused why the I2C code of MPC5748G couldn't communicate properly after being ported to MPC5777M? I have changed the pin and clock division configuration according to the MPC5777M manual (for example, I2C needs to configure pins for bidirectional, open drain, weak pull-up, etc.), but after generating the START signal, I cannot send out the slave address signal. I don't know the reason, and I look forward to your reply. Thank you very much! The attachment contains the relevant configuration codes.

0 项奖励
回复
1 回复

1,484 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure SIUL2 clock is active and use register access to configure pins. See more in https://community.nxp.com/t5/MPC5xxx/MPC5777M-uart-problem-on-S32DS/m-p/896467

BR, Petr

0 项奖励
回复