Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
309
/
631
Bit Field
Name
Description
20
WAVE
Waveform shape
The WAVE bit controls the output shape
0: Deactivate Set-once mode, PWM / One Pulse waveform (depending on
LPTIM_CTRL.TSTCM or LPTIM_CTRL.SNGMST bit)
1: Activate the Set-once mode
19
TIMOUTEN
Timeout enable
0: A trigger event arriving when the timer is already started will be ignored
1: A trigger event arriving when the timer is already started will reset and restart the
counter
18:17
TRGEN[1:0]
Trigger enable and polarity
The TRGEN bits controls whether the LPTIM counter is started by an external trigger
or not. If the external trigger option is selected, three configurations are possible for
the trigger active edge:
00: Software trigger (counting start is initiated by software)
01: Rising edge is the active edge
10: Falling edge is the active edge
11: Both edges are active edges
16
Reserved
Reserved, the reset value must be maintained.
15:13
TRGSEL[2:0]
Trigger selector
The TRGSEL bits select the trigger source that will serve as a trigger event for the
LPTIM among the below 8 available sources:
000: PB6 or PC3
001: RTC alarm A
010: RTC alarm B
011: RTC_TAMP1
100: RTC_TAMP2
101: RTC_TAMP3
110: COMP1_OUT
111: COMP2_OUT
12
Reserved
Reserved, the reset value must be maintained.
11:9
CLKPRE[2:0]
Clock division factor bit.
000: / 1
001: / 2
010: / 4
011: / 8
100: / 16
101: / 32
110: / 64
111: / 128
8
Reserved
Reserved, the reset value must be maintained.
7:6
TRIGFLT[1:0]
Configure the data filter trigger bit.