Wake Up KL03 via I2C

cancel
Showing results for 
Search instead for 
Did you mean: 

Wake Up KL03 via I2C

Jump to solution
427 Views
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 

Labels (1)
0 Kudos
1 Solution
167 Views
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!

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

View solution in original post

0 Kudos
3 Replies
167 Views
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 Kudos
168 Views
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!

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

View solution in original post

0 Kudos
167 Views
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 Kudos