
Low-power timer (LPTIM)
RM0453
964/1454
RM0453 Rev 2
Caution:
The LPTIM_IER register must only be modified when the LPTIM is disabled (ENABLE bit reset to ‘0’)
28.7.4
LPTIM configuration register (LPTIM_CFGR)
Address offset: 0x00C
Reset value: 0x0000 0000
Bit 2
EXTTRIGIE
: External trigger valid edge Interrupt Enable
0: EXTTRIG interrupt disabled
1: EXTTRIG interrupt enabled
Bit 1
ARRMIE
: Autoreload match Interrupt Enable
0: ARRM interrupt disabled
1: ARRM interrupt enabled
Bit 0
CMPMIE
: Compare match Interrupt Enable
0: CMPM interrupt disabled
1: CMPM interrupt enabled
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
Res.
Res.
Res.
Res.
ENC
COUNT
MODE
PRE
LOAD
WAV
POL
WAVE TIMOUT
TRIGEN[1:0]
Res.
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TRIGSEL[2:0]
Res.
PRESC[2:0]
Res.
TRGFLT[1:0]
Res.
CKFLT[1:0]
CKPOL[1:0]
CKSEL
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:30 Reserved, must be kept at reset value.
Bit 29 Reserved, must be kept at reset value.
Bits 28:25 Reserved, must be kept at reset value.
Bit 24
ENC
: Encoder mode enable
The ENC bit controls the Encoder mode
0: Encoder mode disabled
1: Encoder mode enabled
Note: If the LPTIM does not support encoder mode feature, this bit is reserved. Please refer to
Section 28.3: LPTIM implementation
.
Bit 23
COUNTMODE
: counter mode enabled
The COUNTMODE bit selects which clock source is used by the LPTIM to clock the counter:
0: the counter is incremented following each internal clock pulse
1: the counter is incremented following each valid clock pulse on the LPTIM external Input1
Bit 22
PRELOAD
: Registers update mode
The PRELOAD bit controls the LPTIM_ARR, LPTIM_RCR and the LPTIM_CMP registers update
modality
0: Registers are updated after each APB bus write access
1: Registers are updated at the end of the current LPTIM period