Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
296
/
631
001
RTC alarm A
010
RTC alarm B
011
RTC_TAMP1
100
RTC_TAMP2
101
RTC_TAMP3
110
COMP1_OUT
111
COMP2_OUT
Operating mode
The LPTIM has two operating modes:
Continuous mode: A trigger event will start the LPTIM and it will continue running until the user switched off
the LPTIM.
One-shot mode: A trigger event will start the LPTIM and it will stop when the counter value reached
LPTIM_ARR.ARRVAL[15:0].
Continuous mode:
LPTIM_CTRL.TSTCM bit must be set to enable the continuous mode. If LPTIM uses external trigger, the internal
counter will start when an external trigger event arrives after LPTIM_CTRL.TSTCM bit is set. After the continuous
mode starts, hardware will discard any subsequent external trigger event.
If software trigger is used, setting LPTIM_CTRL.TSTCM bit will start the internal counter for continuous mode.
Any subsequent external trigger event will be discarded as shown in Figure 13-3.
Figure 13-3 LPTIM output waveform, Continuous counting mode configuration
LPTIM_CTRL.SNGMST and LPTIM_CTRL.TSTCM bits can only be set when the LPTIM is enabled (The
LPTIM_CTRL. LPTIMEN bit is set to ‘1’).
It is possible to switch from one-shot mode to continuous mode. Setting LPTIM_CTRL.SNGMST bit will switch the
LPTIM to one-shot counting mode if continuous counting mode was previously selected. The counter stops as soon
LPTIM_ARR
Compare
PWM
Discarded triggers
External trigger event
0