English
Language : 

Z8F1680SH020SG Datasheet, PDF (283/412 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F1680 Series
Product Specification
258
Bit
Description (Continued)
[5:2]
REFLVL
Comparator 0 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
[1:0]
TIMTRG
Timer Trigger (COMPARATOR COUNTER MODE)
00 = Disable Timer Trigger.
01 = Comparator 0 output works as Timer 0 Trigger.
10 = Comparator 0 output works as Timer 1 Trigger.
11 = Comparator 0 output works as Timer 2 Trigger.
18.2.2. Comparator 1 Control Register
The Comparator 1 Control Register (CMP1), shown in Table 131, configures the compar-
ator 1 inputs and sets the value of the internal voltage reference.
Table 131. Comparator 1 Control Register (CMP1)
Bits
7
6
5
4
3
2
1
0
Field
INPSEL INNSEL
REFLVL
TIMTRG
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
F91H
Bit
[7]
INPSEL
[6]
INNSEL
Description
Signal Select for Positive Input
0 = GPIO pin used as positive comparator 1 input.
1 = Temperature sensor used as positive comparator 1 input.
Signal Select for Negative Input
0 = Internal reference disabled, GPIO pin used as negative comparator 1 input.
1 = Internal reference enabled as negative comparator 1 input.
PS025015-1212
PRELIMINARY
Comparator