How go in VLLS0 for 100ms or 500ms with the RTC ?

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

How go in VLLS0 for 100ms or 500ms with the RTC ?

333 Views
samuelboivineau
Contributor III

Hello,

I am working on the K64 with MQX and the HAL provided by Freescale/NXP. I would like to go to sleep for [100 - 500] ms and then wake up, but the RTC_DRV_SetAlarm function only seems to accept a resolution of 1 sec.

Can anybody point me to any other possibility to increase this resolution ?

Thanks for your help !

0 Kudos
1 Reply

258 Views
DavidS
NXP Employee
NXP Employee

Hi Samuel,

The RTC will not give resolution less than 1 second.

Please look at the following example that uses the lptimer:

C:\Freescale\Freescale_MQX_4_2\mqx\examples\lowpower

You should be able to get less than 1 second resolution with lptimer.

Regards,

David

0 Kudos