English
Language : 

Z8F0113HJ005EG Datasheet, PDF (148/245 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F0823 Series
Product Specification
133
Comparator Control Register Definition
The Comparator Control Register (CMPCTL) configures the comparator inputs and sets
the value of the internal voltage reference.
Table 78. Comparator Control Register (CMP0)
Bit
7
6
5
4
3
2
1
0
Field
INPSEL 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]
INPSEL
[6]
INNSEL
[5:2]
REFLVL
[1:0]
Description
Signal Select for Positive Input
0 = GPIO pin used as positive comparator input.
1 = temperature sensor used as positive comparator input.
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
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.
Note: This reference is independent of the ADC voltage reference.
Reserved
These bits are reserved; R/W bits must be programmed to 00 during writes and to 00 when
read.
PS024315-1011
P R E L I M I N A R Y Comparator Control Register Definition