2023-10-11 07:37 PM
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.
2023-10-12 07:03 AM
Regular timers can work when CPU is in CSLEEP/CSTOP, per the reference manual. You will need to set the appropriate TIMxLPEN bits.