![Microchip Technology PIC12F1501 Скачать руководство пользователя страница 144](http://html1.mh-extra.com/html/microchip-technology/pic12f1501/pic12f1501_manual_1785833144.webp)
2011-2015 Microchip Technology Inc.
DS40001609E-page 145
PIC16(L)F1508/9
17.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
17.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.
The comparators available for this device are listed in
.
FIGURE 17-1:
COMPARATOR MODULE SIMPLIFIED BLOCK DIAGRAM
TABLE 17-1:
AVAILABLE COMPARATORS
Device
C1
C2
PIC16(L)F1508
●
●
PIC16(L)F1509
●
●
Rev. 10-000027A
8/5/2013
000
CxIN0-
CxIN1-
CxIN2-
CxIN3-
00
01
10
11
CxIN+
FVR_buffer2
DAC_out
+
CxVN
CxVP
CxPCH<1:0>
CxNCH<2:0>
2
3
CxON
(1)
CxON
(1)
CxON
(1)
CxSP CxHYS
Interrupt
Rising
Edge
Q1
CxINTP
CxINTN
CxOUT
MCxOUT
CxOUT_async
D
Q
0
1
CxSYNC
set bit
CxIF
TRIS bit
CxOUT
CxOUT_sync
to
peripherals
CxOE
-
Interrupt
Falling
Edge
FVR_buffer2
CxPOL
Cx
(From Timer1 Module) T1CLK
001
010
011
100
D
Q
to
peripherals
Содержание PIC12F1501
Страница 307: ...PIC16 L F1508 9 DS40001609E page 308 2011 2015 Microchip Technology Inc NOTES...
Страница 392: ...2011 2015 Microchip Technology Inc DS40001609E page 393 PIC16 L F1508 9 1RWH 6 7 7 588 8 7...
Страница 399: ...PIC16 L F1508 9 DS40001609E page 400 2011 2015 Microchip Technology Inc NOTES...