I2C CLK stay in low and S32G show bus busy after read PCAL6524

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

I2C CLK stay in low and S32G show bus busy after read PCAL6524

跳至解决方案
1,060 次查看
234
Contributor I

    We use  we read PCAL6524  register 0x0D,The s32G register IBSR ,IBB is always 1,and the clock is stay at low state,thank you

234_0-1658455569304.png

 

. Which can cause this problem. #S32G,#PCAL6524

0 项奖励
回复
1 解答
1,046 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello 234,

Sorry, it is the definition of I2C that slaves must 'pull' the clock-line low to 'pace' a master when return-data is not immediately available. And in ALL cases of microcontroller I2C slave implementations, they ALWAYS pull the clock-line low at every access as uC firmware must supply the return data 'after some time'. Once you have initialized the S32G into I2C 'slave' mode, you are going to have to be sure that it is ALWAYS 'ready' to return data for I2C transactions addressed to it, else it will indeed permanently stall the whole I2C bus. If you don't want the S32G reacting to such transactions, you have to disable this slave mode (for at least those time periods). Does your S32G respond to addressed transactions 'fully normally' when properly enabled?

Regards

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,047 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello 234,

Sorry, it is the definition of I2C that slaves must 'pull' the clock-line low to 'pace' a master when return-data is not immediately available. And in ALL cases of microcontroller I2C slave implementations, they ALWAYS pull the clock-line low at every access as uC firmware must supply the return data 'after some time'. Once you have initialized the S32G into I2C 'slave' mode, you are going to have to be sure that it is ALWAYS 'ready' to return data for I2C transactions addressed to it, else it will indeed permanently stall the whole I2C bus. If you don't want the S32G reacting to such transactions, you have to disable this slave mode (for at least those time periods). Does your S32G respond to addressed transactions 'fully normally' when properly enabled?

Regards

 

0 项奖励
回复