|
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
|
▷ |