PIC18F23K20-E/MLQTP MICROCHIP [Microchip Technology], PIC18F23K20-E/MLQTP Datasheet - Page 279

no-image

PIC18F23K20-E/MLQTP

Manufacturer Part Number
PIC18F23K20-E/MLQTP
Description
28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
20.8
There are two additional comparator features:
• Simultaneous read of comparator outputs
• Internal reference selection
20.8.1
The MC1OUT and MC2OUT bits of the CM2CON1
register are mirror copies of both comparator outputs.
The ability to read both outputs simultaneously from a
single register eliminates the timing skew of reading
separate registers.
REGISTER 20-3:
© 2007 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7
bit 6
bit 5
bit 4
bit 3-0
Note 1: Obtaining the status of C1OUT or C2OUT
MC1OUT
R-0
Additional Comparator Features
SIMULTANEOUS COMPARATOR
OUTPUT READ
by reading CM2CON1 does not affect the
comparator interrupt mismatch registers.
MC1OUT: Mirror Copy of C1OUT bit
MC2OUT: Mirror Copy of C2OUT bit
C1RSEL: Comparator C1 Reference Select bit
1 = FVR (1.2 Volt fixed voltage reference) routed to C1V
0 = CV
C2RSEL: Comparator C2 Reference Select bit
1 = FVR (1.2 Volt fixed voltage reference) routed to C2V
0 = CV
Unimplemented: Read as ‘0’
MC2OUT
R-0
CM2CON1: COMPARATOR 2 CONTROL REGISTER 1
REF
REF
routed to C1V
routed to C2V
W = Writable bit
‘1’ = Bit is set
C1RSEL
R/W-0
REF
REF
Advance Information
input
input
C2RSEL
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
20.8.2
There are two internal voltage references available to
the non-inverting input of each comparator. One of
these is the 1.2V Fixed Voltage Reference (FVR) and
the other is the variable Comparator Voltage Reference
(CV
determines which of these references is routed to the
Comparator Voltage reference output (C
ther routing to the comparator is accomplished by the
CxR bit of the CMxCON0 register. See Section 21.1
“Comparator Voltage Reference” and Figure 20-2
and Figure 20-3 for more detail.
PIC18F2XK20/4XK20
U-0
REF
). The CxRSEL bit of the CM2CON register
REF
REF
INTERNAL REFERENCE
SELECTION
input
input
U-0
x = Bit is unknown
U-0
DS41303B-page 277
X
V
REF
U-0
). Fur-
bit 0

Related parts for PIC18F23K20-E/MLQTP