LPC43xx Deep power down wakeup after more than 64seconds

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

LPC43xx Deep power down wakeup after more than 64seconds

670 Views
KhaVo
Contributor I

Hi all,

As LPCOpen sample pmc_states.c,

        Chip_ATIMER_DeInit(LPC_ATIMER);
        ATIMER_ClearInts();
        Chip_ATIMER_Init(LPC_ATIMER, RTC_ALARM_TIME*1000);
        LPC_ATIMER->DOWNCOUNTER = RTC_ALARM_TIME*1000;
        Chip_ATIMER_IntEnable(LPC_ATIMER);
                
        /* Call Pre SleepPowerDown function */
        PMC_Pre_SleepPowerDown();

        /* Goto Deep Sleep mode */
        Chip_PMC_Set_PwrState(Pwr_state);

MCU will wake-up by ATimer, but this is Timer 16bit and runs at 1024Hz clock, so the maximum time is 64 second.

1. How could sleep more than that?
2. Is RTC wake-up really work? If it is, why we need to config the ATimer?


Thanks in advance!


Regards,
Kha Vo

Labels (2)
0 Kudos
2 Replies

375 Views
KhaVo
Contributor I

Hi jeremyzhou,

Thanks for your answers!

So to sleep longer, I need to use RTC wake up. I face another problem with RTC initializing that it take 2 second to init RTC each booting. I've posted this issue here.

Hoping that you or others could help!

Thanks,

Kha Vo

0 Kudos

375 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Kha Vo,

1. How could sleep more than that?

The maximum period is 64s, as the counter/timer clock is fixed :1024 Hz.

2. Is RTC wake-up really work? If it is, why we need to config the ATimer?

In my opinion, the Atimer is particular to generate periodic interrupt which can be used to wake up the device from a low power mode, however the RTC is more complicated than it.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos