S9KEAZN8 – Low power mode entry code example and PWM signal detection in sleep

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S9KEAZN8 – Low power mode entry code example and PWM signal detection in sleep

39 Views
ssjj
Fresh Out Contributor

I am using S9KEAZN8. I would like to know how to enter low power mode. Could anyone provide a code example showing how to do this?

Also, I need to detect PWM signal changes while the MCU is in low power mode. What would be the proper way to handle this?

The Reference Manual does not have code examples. Any sample code or guidance would be appreciated.

Thanks.

0 Kudos
Reply
1 Reply

15 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ssjj 

Which IDE are you using? If you are using S32DS, there are example projects available for KEA128. These examples can also be used for KEA8 with minor modifications.

About enter low power mode, you can enter through the WFI instruction. For the specific implementation, you can refer to the pmc.c file, which includes functions such as PMC_SetMode().
 

If you have any other questions, please feel free to get back to me.

 

BR

Alice

0 Kudos
Reply