lpi2c with powermode switch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lpi2c with powermode switch

ソリューションへジャンプ
1,140件の閲覧回数
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 解決策
1,135件の閲覧回数
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 返答(返信)
1,136件の閲覧回数
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 件の賞賛
返信
1,121件の閲覧回数
tbtbtbt
Contributor III

Thank you for your help!

0 件の賞賛
返信