Skip to main content
Associate II
October 12, 2023
Question

Do timers work in CSLEEP or CSTOP modes?

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.

This topic has been closed for replies.

1 reply

TDK
October 12, 2023

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""."