English
Language : 

Z8F0830HH020SG Datasheet, PDF (125/257 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore!® F0830 Series
Product Specification
107
Comparator Control Register Definitions
The Comparator Control Register (CMP0) configures the comparator inputs and sets the
value of the internal voltage reference. The GPIO pin is always used as positive compara-
tor input.
Table 68. Comparator Control Register (CMP0)
Bit
7
6
5
4
3
2
1
0
Field
Reserved INNSEL
REFLVL
Reserved
RESET
0
0
0
1
0
1
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Address
F90H
Bit
[7]
[6]
INNSEL
[5:2]
REFLVL
[1:0]
Description
Reserved
This bit is reserved and must be programmed to 0.
Signal Select for Negative Input
0 = internal reference disabled, GPIO pin used as negative comparator input.
1 = internal reference enabled as negative comparator input.
Internal Reference Voltage Level
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.
Reserved
These bits are reserved and must be programmed to 00.
PS025113-1212
Comparator Control Register Definitions