PIC12F683-E/MD MICROCHIP [Microchip Technology], PIC12F683-E/MD Datasheet - Page 53

no-image

PIC12F683-E/MD

Manufacturer Part Number
PIC12F683-E/MD
Description
8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F683-E/MD
Manufacturer:
ZETEX
Quantity:
1 100
Part Number:
PIC12F683-E/MD
Manufacturer:
MICROCHIP原装
Quantity:
20 000
8.0
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.
The comparators are very useful mixed signal building
blocks because they provide analog functionality
independent of the program execution. The analog
comparator module includes the following features:
• Multiple comparator configurations
• Comparator output is available internally/externally
• Programmable output polarity
• Interrupt-on-change
• Wake-up from Sleep
• Timer1 gate (count enable)
• Output synchronization to Timer1 clock input
• Programmable voltage reference
8.1
The comparator is shown in Figure 8-1 along with the
relationship between the analog input levels and the
digital output. When the analog voltage at V
than the analog voltage at V
comparator is a digital low level. When the analog
voltage at V
V
FIGURE 8-2:
© 2007 Microchip Technology Inc.
IN
-, the output of the comparator is a digital high level.
COMPARATOR MODULE
Comparator Overview
IN
+ is greater than the analog voltage at
Note 1: Comparator output is latched on falling edge of Timer1 clock source.
2: Q1 and Q3 are phases of the four-phase system clock (F
3: Q1 is held high during Sleep mode.
COMPARATOR OUTPUT BLOCK DIAGRAM
CINV
IN
-, the output of the
Q3*RD CMCON0
clock source
Timer1
IN
+ is less
Q1
(1)
Reset
EN
D
D
EN
D
CL
Q
Q
Q
FIGURE 8-1:
Output
Note:
V
V
V
V
IN
IN
IN
IN
RD CMCON0
+
-
-
+
CMSYNC
The black areas of the output of the
comparator represents the uncertainty
due to input offsets and response time.
OSC
0
1
).
+
SINGLE COMPARATOR
PIC12F683
To Timer1 Gate
To COUT pin
To Data Bus
Set CMIF bit
DS41211D-page 51
Output

Related parts for PIC12F683-E/MD