Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
308
/
631
Bit Field
Name
Description
1: CMPM interrupt enabled
LPTIM configuration register (LPTIM_CFG)
Address offset: 0x0C
Reset value: 0x0000 0000
Note:
The LPTIM_CFG register must only be modified when the LPTIM is disabled (LPTIM_CTRL.LPTIMEN bit reset to ‘0’)
Bit Field
Name
Description
31:26
Reserved
Reserved, the reset value must be maintained.
25
NENC
Non-orthogonal mode enable
0: Non-orthogonal Encoder mode disabled
1: Non-orthogonal Encoder mode enabled
24
ENC
Encoder mode enable
0: Encoder mode disabled
1: Encoder mode enabled
23
CNTMEN
counter mode enabled
The CNTMEN bit selects clock source for the LPTIM counter:
0: Counter is incremented following each internal clock pulse
1: Counter is incremented following each valid clock pulse on the LPTIM external
Input1
22
RELOAD
Registers update mode
The RELOAD bit controls the LPTIM_ARR and the LPTIM_COMP registers update
mode
0: Registers are updated after each APB1 bus write access
1: Registers are updated at the end of the current LPTIM period
Note: When RELOAD=0, ARRUPD and CMPUPD interrupts cannot be generated,
the LPTIM_ARR and LPTIM_COMP registers need to be configured before enabling
LPTIM
21
WAVEPOL
Waveform shape polarity
The WAVEPOL bit controls the output polarity
0: The LPTIM output reflects the compare results between LPTIM_ARR and
LPTIM_COMP registers
1: The LPTIM output reflects the inverse of the compare results between
LPTIM_ARR and LPTIM_COMP registers
0
1
2
3
4
5
6
7
8
9
11
12
13
15
CLKSEL
CLKPOL[1:0]
CLKFLT[1:0]
Reserved
TRIGFLT[1:0]
Reserved
CLKPRE[2:0]
Reserved
TRGSEL[2:0]
rw
rw
rw
rw
rw
rw
16
17
18
19
20
21
22
23
24
25
26
31
Reserved
TRGEN[1:0]
TIMOUT
EN
WAVE
WAVEPOL
RELOAD
CNTMEN
ENC
NENC
Reserved
rw
rw
rw
rw
rw
rw
rw
rw