This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541: CC2541 timer 2 in PM1 or PM2

Part Number: CC2541


Hi guys.
tell me information about how Timer2 works in PM1 or PM2. (СС254).
I am using built-in RC source 32kHz and main 32Mhz. Sleep timer is working properly. but Timer2 doesn't count in PM. In the instructions I see: "The Sleep Timer is also used to maintain timing in Timer 2 when entering power mode PM1 or PM2." what does it mean?

I start timer2 and loop into PM1. I see that while the program is in PM1, timer2 has not changed.

I am not using BLE stack.  I am using proprietary protocol for RF but not in this part of the program.

maybe you need to do something additionally?

I am looking for an opportunity to reduce energy consumption. for this i need to use PM1 or PM2.
the cycle of my program is about 2-3 seconds at this time, external interrupts are randomly thrown out of the PM. but I need to know the time of these events.

is there any idea how to count the time regardless of PM or Active. something like an RTC?

  • Hi Yaroslav,

    Timer 2 can only be sourced by the 32 MHz XOSC and is thus turned off during PM1/PM2, however Chapter 22 of SWRU191 explains the timer start-and-stop synchronization needed to synchronize operation with the 32 kHz clock used by the sleep timer.  Calculations are provided so that the sleep timer value can be stored and compared with the current sleep timer value once active mode returns and timer 2 begins again.  You can refer to the CC254X Proprietary Mode PER Test support software to further determine how this is accomplished.

    Regards,
    Ryan