Техническая Спецификация для Microchip Technology AC244045

Скачать
Страница из 448
 2010-2012 Microchip Technology Inc.
DS41440C-page 175
PIC16(L)F1825/1829
19.0 COMPARATOR MODULE
Comparators are used to interface analog circuits to a
digital circuit by comparing two analog voltages and
providing a digital indication of their relative magnitudes.
Comparators are very useful mixed signal building
blocks because they provide analog functionality
independent of program execution. The analog
Comparator module includes the following features:
• Independent comparator control
• Programmable input selection
• Comparator output is available internally/externally
• Programmable output polarity
• Interrupt-on-change
• Wake-up from Sleep
• Programmable Speed/Power optimization
• PWM  shutdown
• Programmable and Fixed Voltage Reference
19.1
 Comparator Overview
A single comparator is shown in 
 along with
the relationship between the analog input levels and
the digital output. When the analog voltage at V
IN
+ is
less than the analog voltage at V
IN
-, the output of the
comparator is a digital low level. When the analog
voltage at V
IN
+ is greater than the analog voltage at
V
IN
-, the output of the comparator is a digital high level.
FIGURE 19-1:
SINGLE COMPARATOR      
FIGURE 19-2:
COMPARATOR MODULE SIMPLIFIED BLOCK DIAGRAM 
+
V
IN
+
V
IN
-
Output
Output
V
IN
+
V
IN
-
Note:
The black areas of the output of the
comparator represents the uncertainty
due to input offsets and response time.
Note
1:
When CxON = 0, all multiplexer inputs are disconnected and the Comparator will produce a ‘0’ at the output.
2:
When CxON = 0, all multiplexer inputs are disconnected.
3:
Output of comparator can be frozen during debugging.
MUX
(2)
Cx
(3)
0
1
2
3
CxON
(1)
CxNCH<1:0>
2
0
1
C
X
PCH<1:0>
C12IN1-
C12IN2-
C12IN3-
C
X
IN+
MUX
(2)
 
-
 
+
CxVN
CxVP
C
X
OUT
async_CxOUT
Q1
D
EN
Q
C
X
POL
MC
X
OUT
Set CxIF
0
1
C
X
SYNC
C
X
OE
C
X
OUT
D
Q
DAC_
O
utput
FVR Buffer2
C12IN0-
2
CxSP
CxHYS
det
Interrupt
det
Interrupt
CxINTN
CxINTP
To Data Bus
2
3
   V
SS
TRIS bit
CxON
(1)
(from Timer1)
T1CLK
 To Timer1 or 
To PWM
SR Latch
sync_CxOUT