EasyManua.ls Logo

GigaDevice Semiconductor GD32F3x0 - CMP Registers

Default Icon
665 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GD32F3x0 User Manual
206
13.4. CMP registers
CMP base address:0x4001 001C
13.4.1. Control/status register (CMP_CS)
Address offset: 0x00
Reset value: 0x0000 0000
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
CMP1LK
CMP1O
CMP1HST[1:0]
CMP1PL
CMP1OSEL[2:0]
WNDEN
CMP1MSEL[2:0]
CMP1M
Reserved
CMP1EN
rwo
r
rw/r
rw/r
rw/r
rw/r
rw/r
rw/r
rw/r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CMP0LK
CMP0O
CMP0HST[1:0]
CMP0PL
CMP0OSEL[2:0]
Reserved
CMP0MSEL[2:0]
CMP0M[1:0]
CMP0SW
CMP0EN
rwo
r
rw/r
rw/r
rw/r
rw/r
rw/r
rw/r
rw/r
Bits
Fields
Descriptions
31
CMP1LK
CMP1 lock
This bit allows to have all control bits of CMP1 as read-only. It can only be set once
by software and cleared by a system reset.
0: CMP_CS[31:16] bits are read-write
1: CMP_CS[31:16] bits are read-only
30
CMP1O
CMP1 output
This bit is a copy of CMP1 output state, which is read only.
0: Non-inverting input below inverting input and the output is low
1: Non-inverting input above inverting input and the output is high
29:28
CMP1HST[1:0]
CMP1 hysteresis
These bits are used to control the hysteresis level.
00: No hysteresis
01: Low hysteresis
10: Medium hysteresis
11: High hysteresis
27
CMP1PL
Polarity of CMP1 output
This bit is used to select the polarity of CMP1 output.
0: Output is not inverted
1: Output is inverted
26:24
CMP1OSEL[2:0]
CMP1 output selection
These bits are used to select the destination of the CMP1 output.
000: No selection
001: TIMER0 break input

Table of Contents