
Low-power timer (LPTIM)
RM0453
952/1454
RM0453 Rev 2
Figure 263. LPTIM output waveform, single counting mode configuration
when repetition register content is different than zero (with PRELOAD = 1)
- Set-once mode activated:
It should be noted that when the WAVE bitfield in the LPTIM_CFGR register is set, the Set-
once mode is activated. In this case, the counter is only started once following the first
trigger, and any subsequent trigger event is discarded as shown in
Figure 264. LPTIM output waveform, Single counting mode configuration
and Set-once mode activated (WAVE bit is set)
In case of software start (TRIGEN[1:0] = ‘00’), the SNGSTRT setting starts the counter for
one-shot counting.
Continous mode
To enable the continuous counting, the CNTSTRT bit must be set.
In case an external trigger is selected, an external trigger event arriving after CNTSTRT is
set, starts the counter for continuous counting. Any subsequent external trigger event is
discarded as shown in
.
In case of software start (TRIGEN[1:0] = ‘00’), setting CNTSTRT starts the counter for
continuous counting.
MSv47414V1
LPTIM_RCR
Repetition counter
LPTIM_ARR
Compare
PWM
2
1
0
2
2
External trigger event
Ignored external trigger event
0
MSv39231V2
PWM
0
Compare
LPTIM_ARR
Discarded trigger
External trigger event