
GD32L23x User Manual
400
This bit can be modified only when the LPTIMER is disabled (The LPTEN bit in
LPTIMER_CTL1 register is 0).
1
CARMIE
Counter auto reload register match interrupt enable bit
0: disabled
1: enabled
This bit can be modified only when the LPTIMER is disabled (The LPTEN bit in
LPTIMER_CTL1 register is 0).
0
CMPVMIE
Compare value register match interrupt enable bit
0: disabled
1: enabled
This bit can be modified only when the LPTIMER is disabled (The LPTEN bit in
LPTIMER_CTL1 register is 0).
18.5.4.
Control register 0 (LPTIMER_CTL0)
Address offset: 0x0C
Reset value: 0x0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
DECMSEL DECMEN CNTMEN SHWEN
OPSEL
OMSEL TIMEOUT
ETMEN[1:0]
Reserved
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ETSEL[2:0]
Reserved
PSC[2:0]
Reserved
TFLT [1:0]
Reserved
ECKFLT[1:0]
CKPSEL[1:0]
CKSSEL
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:26
Reserved
Must be kept at reset value.
25
DECMSEL
Decoder mode select
0: Decoder mode 0
1: Decoder mode 1
This bit can be modified only when the LPTIMER is disabled (The LPTEN bit in
LPTIMER_CTL1 register is 0).
24
DECMEN
Decoder mode enabled
0: Decoder disabled
1: Decoder enabled
This bit can be modified only when the LPTIMER is disabled (The LPTEN bit in
LPTIMER_CTL1 register is 0).
23
CNTMEN
Counter mode select
This bit is used to select the clock source of the LPTIMER counter.
0: The counter is count with each internal clock pulse