BAT32G1x9 user manual | Chapter 17 Comparator
547 / 1149
Rev.1.02
17.3.8
The input signal of comparator 1 selects the control register (CMPSEL1).
The CMPSEL1 register is the positive end of comparator 1 and the selection register for the negative input
signal.
When comparator 1 stops (C1ENB=0), rewrite the CMPSEL1 register.
The CMPSEL1 register is set by the 8-bit memory operation instruction.
After generating a reset signal, the value of this register changes to "00H".
Figure 17-10 The input signal selection of comparator 1 control register (CMPSEL1).
Address: 4004384BH
after reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
CMPSEL1
CMP1SEL1
CMP1SEL0
The positive input signal selection bit of comparator 1
0
0
Select an external pin (VCIN10 pin).
0
1
Select the external pin (VCIN11 pin).
1
0
Select the external pin (VCIN12 pin).
1
1
Select the external pin (VCIN13 pin).
C0REFS2
C0REFS1
C0REFS0
The negative input signal selection bit of comparator 1
0
0
0
Select the built-in reference voltage VREF1
0
0
1
Select the internal reference voltage (1.45V).
0
1
0
Select an external pin (VCIN10 pin).
0
1
1
Select the external pin (VCIN11 pin).
1
0
0
Select the external pin (VCIN12 pin).
1
0
1
Select the external pin (VCIN13 pin).
1
1
0
Prohibit settings
1
1
1
Prohibit settings
Note that when switching the analog input of CMP1, in order to prevent the through current before the two input signals, the
switching interval must be above 3us.
CMP1SEL1
CMP1SEL0
0
0
0
C0REFS1
C0REFS1
C0REFS0
C0OE
C0IE
0