RM0453
28
Low-power timer (LPTIM)
28.1
Introduction
The LPTIM is a 16-bit timer that benefits from the ultimate developments in power
consumption reduction. Thanks to its diversity of clock sources, the LPTIM is able to keep
running in all power modes except for Standby mode. Given its capability to run even with
no internal clock source, the LPTIM can be used as a "Pulse Counter" which can be useful
in some applications. Also, the LPTIM capability to wake up the system from low-power
modes, makes it suitable to realize "Timeout functions" with extremely low power
consumption.
The LPTIM introduces a flexible clock scheme that provides the needed functionalities and
performance, while minimizing the power consumption.
28.2
LPTIM main features
•
16 bit upcounter
•
3-bit prescaler with 8 possible dividing factors (1,2,4,8,16,32,64,128)
•
Selectable clock
–
–
•
16 bit ARR autoreload register
•
16 bit compare register
•
Continuous/One-shot mode
•
Selectable software/hardware input trigger
•
Programmable Digital Glitch filter
•
Configurable output: Pulse, PWM
•
Configurable I/O polarity
•
Encoder mode
•
Repetition counter
28.3
LPTIM implementation
Table 189
features is implemented in LPTIM1. LPTIM2 and LPTIM3 support a smaller set of features,
but is otherwise identical to LPTIM1.
LPTIM modes/features
Encoder mode
External input clock
Wake-up from Stop
Internal clock sources: configurable internal clock source (see RCC section)
External clock source over LPTIM input (working with no LP oscillator running,
used by Pulse Counter application)
describes LPTIM implementation on STM32WL5x devices. The full set of
Table 189. STM32WL5x LPTIM features
(1)
RM0453 Rev 5
Low-power timer (LPTIM)
LPTIM1
LPTIM2
X
-
X
X
(2)
(3)
LPTIM3
-
X
(3)
945/1450
972
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?