English
Language : 

Z8F1680SH020SG Datasheet, PDF (282/412 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F1680 Series
Product Specification
257
nop
; wait for output to settle
ldx IRQ0,#0 ; clear any spurious interrupts pending
ei
18.2. Comparator Control Register Definitions
This section defines the features of the following Comparator Control registers.
Comparator 0 Control Register: see page 257
Comparator 1 Control Register: see page 258
18.2.1. Comparator 0 Control Register
The Comparator 0 Control Register (CMP0), shown in Table 130, configures the
Comparator 0 inputs and sets the value of the internal voltage reference.
Table 130. Comparator 0 Control Register (CMP0)
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
F90H
Bit
[7]
INPSEL
[6]
INNSEL
Description
Signal Select for Positive Input
0 = GPIO pin used as positive comparator 0 input.
1 = Temperature sensor used as positive comparator 0 input.
Signal Select for Negative Input
0 = Internal reference disabled, GPIO pin used as negative comparator 0 input.
1 = Internal reference enabled as negative comparator 0 input.
PS025015-1212
PRELIMINARY
Comparator