cancel
Showing results for 
Search instead for 
Did you mean: 

Do timers work in CSLEEP or CSTOP modes?

tjdyhdsfeadgstdj
Associate III

I am going to have an external high speed signal as input to the MCU. I want to use a 32-bit timer to count the number of cycles on that input. Will a regular timer keep counting even in CSLEEP or CSTOP modes? Or do I need to use an LPTIMER. The LPTIMER doesn't seem to support 32-bit counters, and I have a 10+ MHz signal I am trying to count.

1 REPLY 1
TDK
Guru

Regular timers can work when CPU is in CSLEEP/CSTOP, per the reference manual. You will need to set the appropriate TIMxLPEN bits.

TDK_0-1697119383700.png

 

If you feel a post has answered your question, please click "Accept as Solution".