PIC12F683-I/SN Microchip Technology Inc., PIC12F683-I/SN Datasheet - Page 56

no-image

PIC12F683-I/SN

Manufacturer Part Number
PIC12F683-I/SN
Description
8 PIN, 3.5 KB FLASH, 128 RAM, 6 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC12F683-I/SN

A/d Inputs
4-Channel, 10-Bit
Comparators
1
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
5
Memory Type
Flash
Number Of Bits
8
Package Type
8-pin SOIC-N
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F683-I/SN
Manufacturer:
FREESCALE
Quantity:
2 119
Part Number:
PIC12F683-I/SN
Manufacturer:
Microchip Technology
Quantity:
46 465
Part Number:
PIC12F683-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F683-I/SN
0
PIC12F683
8.4
The CMCON0 register (Register 8-1) provides access
to the following comparator features:
• Mode selection
• Output state
• Output polarity
• Input switch
8.4.1
The Comparator state can always be read internally via
the COUT bit of the CMCON0 register. The comparator
state may also be directed to the COUT pin in the
following modes:
• CM<2:0> = 001
• CM<2:0> = 011
• CM<2:0> = 101
When one of the above modes is selected, the associ-
ated TRIS bit of the COUT pin must be cleared.
8.4.2
Inverting the output of the comparator is functionally
equivalent to swapping the comparator inputs. The
polarity of the comparator output can be inverted by
setting the CINV bit of the CMCON0 register. Clearing
CINV results in a non-inverted output. A complete table
showing the output state versus input conditions and
the polarity bit is shown in Table 8-1.
TABLE 8-1:
8.4.3
The inverting input of the comparator may be switched
between two analog pins in the following modes:
• CM<2:0> = 101
• CM<2:0> = 110
In the above modes, both pins remain in analog mode
regardless of which pin is selected as the input. The
CIS bit of the CMCON0 register controls the comparator
input switch.
DS41211C-page 54
Note:
Input Conditions
V
V
V
V
IN
IN
IN
IN
Comparator Control
- > V
- < V
- > V
- < V
COMPARATOR OUTPUT STATE
COMPARATOR OUTPUT POLARITY
COUT refers to both the register bit and
output pin.
COMPARATOR INPUT SWITCH
IN
IN
IN
IN
+
+
+
+
OUTPUT STATE VS. INPUT
CONDITIONS
CINV
0
0
1
1
COUT
0
1
1
0
8.5
The comparator output is indeterminate for a period of
time after the change of an input source or the selection
of a new reference voltage. This period is referred to as
the response time. The response time of the
comparator differs from the settling time of the voltage
reference. Therefore, both of these times must be
considered when determining the total response time
to a comparator input change. See the Comparator and
Voltage Reference Specifications in Section 15.0
“Electrical Specifications” for more details.
Comparator Response Time
© 2006 Microchip Technology Inc.

Related parts for PIC12F683-I/SN