lpi2c with powermode switch

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

lpi2c with powermode switch

跳至解决方案
675 次查看
tbtbtbt
Contributor III

Hello,

I am working on a project that uses the powermode_switch demo app with lpi2c communication. The problem I have is that whenever the project enters low power mode, the clock that lpic2 uses gets turned off and so the code gets stucks in the I2C transfer function. I would like to know what’s the best way to handle this. The I2C communication uses PLL3, so I was thinking of just removing the part of the low power mode that turns off PLL3, is this a good method? 

I am working on rt 1020 board. Using i2c1. 

0 项奖励
1 解答
670 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @tbtbtbt ,

   You need to check your used low power mode, whether the I2C is working and the I2C module clock is working or not, this is very important, otherwise you will meet issues.

  From the RT1020 reference, you can find:

kerryzhou_0-1631681154810.png

Please also check, the following table in the RM:

kerryzhou_1-1631681248729.png

So, you may need to use the OSC as the clock source, as the PLL3 is powered down, and you also need to clear MCR[DOZEN] bit in LPI2C module.

 

Wish it helps you!

Best Regards,

Kerry

 

 

 

在原帖中查看解决方案

0 项奖励
2 回复数
671 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @tbtbtbt ,

   You need to check your used low power mode, whether the I2C is working and the I2C module clock is working or not, this is very important, otherwise you will meet issues.

  From the RT1020 reference, you can find:

kerryzhou_0-1631681154810.png

Please also check, the following table in the RM:

kerryzhou_1-1631681248729.png

So, you may need to use the OSC as the clock source, as the PLL3 is powered down, and you also need to clear MCR[DOZEN] bit in LPI2C module.

 

Wish it helps you!

Best Regards,

Kerry

 

 

 

0 项奖励
656 次查看
tbtbtbt
Contributor III

Thank you for your help!

0 项奖励