Wake Up KL03 via I2C

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

Wake Up KL03 via I2C

跳至解决方案
1,003 次查看
christopherhorn
Contributor I

Hello,

I try to wake up my µC (KL03) via I2C address matching. The µC goes in sleep mode, but i don't be able to wake them up via I2C address matching. Stand alone: I2C is working… But after the µC is going into sleep mode, i cant wake them up.

Can i find somewhere a minimal example for sleep/wake up an µC via I2C? Or can anybody share an example?

Thank you 

标签 (1)
0 项奖励
1 解答
743 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Christopher Horn

The address match wake-up occurs when the I2C module is in slave receive mode.

You need to enable the WUEN bit of I2Cx_C1 register in slave side.

 

For more information please refer to chapter 35.5.8 of the KL03 Reference manual (https://www.nxp.com/docs/en/reference-manual/KL03P24M48SF0RM.pdf).

The AN4503 also contains related information (https://www.nxp.com/docs/en/application-note/AN4503.pdf).

 

Let me know if this helps.

 

Best regards,

Omar

 

---------------------------------------------------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

----------------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
3 回复数
743 次查看
christopherhorn
Contributor I

I have done a small mistake, so that the I2C interrupt was not working. I found this failure and now it is working. Te next weeks, i want to share a minimal example for I2C, so that everybody can use and check the implementation.

0 项奖励
744 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Christopher Horn

The address match wake-up occurs when the I2C module is in slave receive mode.

You need to enable the WUEN bit of I2Cx_C1 register in slave side.

 

For more information please refer to chapter 35.5.8 of the KL03 Reference manual (https://www.nxp.com/docs/en/reference-manual/KL03P24M48SF0RM.pdf).

The AN4503 also contains related information (https://www.nxp.com/docs/en/application-note/AN4503.pdf).

 

Let me know if this helps.

 

Best regards,

Omar

 

---------------------------------------------------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

----------------------------------------------------------------------------------------------------------------------------

0 项奖励
743 次查看
christopherhorn
Contributor I

Hi,

I already set the wakeup enable flag und also red the application note, but i don't work. I want to give some more information. The project has a lot of other stuff like SPI and so on. The I2C interface is used with a callback-handler and works fine if it is run mode. I also tried not to use the callback and i used the IRQ but also nothing happend. That's why im interested in small example of using stop mode with I2C-address matching.

Unfortunately, i'm not allowed to share my project in any way.

UPDATE: I'm using MCUXPRESSO.

Best Regards,

Chris

0 项奖励