
GD32L23x User Manual
384
Figure 18-6. LPTIMER output with SMST = 1
CARL[31:0]
LPTIMER_O
CMPVAL[31:0]
External Trigger
COUNT
When the OMSEL bit in the LPTIMER_CTL0 register is set, the Set mode is enable. In this
case, the counter is only started once after the first trigger, and all subsequent trigger events
is ignored, as shown in
Figure 18-7. LPTIMER output with OMSEL = 1
Figure 18-7. LPTIMER output with
OMSEL
= 1
CARL[31:0]
LPTIMER_O
CMPVAL[31:0]
External Trigger
COUNT
ignored
ignored
If ETMEN [1:0] = 2
’
b 00, the software trigger is enabled, setting the SMST bit will start the
counter for single counting mode.
Continuous counting mode
The CTNMST bit is set to 1 to enable the the continuous counting mode.
If an external trigger is selected to start LPTIMER counter, an external trigger event that
arrives after the CTNMST bit is set will start the counter for continuous counting mode. Any
trigger event that occurs after the counter is started will be ignored as shown in
LPTIMER output with CTNMST = 1
If ETMEN [1:0] = 2
’
b 00, the software trigger is enabled, setting the CTNMST bit will start the
counter for continuous counting mode.