Z8 Encore! XP® F08xA Series
Product Specification
123
Comparator Control Register Definitions
Comparator Control Register
The Comparator Control Register (CMPCTL) configures the comparator inputs and sets
the value of the internal voltage reference.
Table 76. Comparator Control Register (CMP0)
BITS
7
6
5
4
3
2
1
0
INPSEL
INNSEL
REFLVL
Reserved
FIELD
RESET
R/W
0
0
0
1
0
1
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
F90H
ADDR
INPSEL—Signal Select for Positive Input
0 = GPIO pin used as positive comparator input
1 = temperature sensor used as positive comparator input
INNSEL—Signal Select for Negative Input
0 = internal reference disabled, GPIO pin used as negative comparator input
1 = internal reference enabled as negative comparator input
REFLVL—Internal Reference Voltage Level (note that this reference is independent of the
ADC voltage reference)
0000 = 0.0 V
0001 = 0.2 V
0010 = 0.4 V
0011 = 0.6 V
0100 = 0.8 V
0101 = 1.0 V (Default)
0110 = 1.2 V
0111 = 1.4 V
1000 = 1.6 V
1001 = 1.8 V
1010–1111 = Reserved
PS024705-0405
P R E L I M I N A R Y
Comparator