LPTIM to put my STM32L0 device in sleep for 200 ms
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-04-29 6:59 PM
Hi all,
I would like to use LPTIM in STM32L0 to put my device in sleep mode for 200 ms. I have used the API HAL_LPTIM_TIMEOUT_START(LPTIM_HandleTypeDef * hlptim, uint32_t Period, uint32_t
Timeout), I pass 200 as value for both Period and Timeout.
I use HAL_LPTIM_CompareMatchCallback(LPTIM_HandleTypeDef * hlptim) as interrupt callback routine. But my application never goes to the interrupt/callback routine after HAL_LPTIM_TIMEOUT_START() have been called.
Whether the use of api HAL_LPTIM_TIMEOUT_START() suits my requirement as I did?
Can any of you help me with LPTIM configuration and method to be followed to put my device in sleep for 200 ms using LPTIM.
Labels:
- Labels:
-
LPTIM
-
Power
-
STM32L0 Series
0 REPLIES 0
