PIC16F648A-I/P Microchip Technology Inc., PIC16F648A-I/P Datasheet - Page 42
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16F648A-I/P
Manufacturer Part Number
PIC16F648A-I/P
Description
18 PIN, 7 KB FLASH, 256 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F648A-IP.pdf
(132 pages)
Specifications of PIC16F648A-I/P
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
16
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
7K Bytes
Ram Size
256 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
Company:
Part Number:
PIC16F648A-I/P
Manufacturer:
MICROCHIP
Quantity:
2 100
Part Number:
PIC16F648A-I/P
Manufacturer:
MICROCH
Quantity:
20 000
PIC16F630/676
6.3
A simplified circuit for an analog input is shown in
Figure 6-3. Since the analog pins are connected to a
digital output, they have reverse biased diodes to V
and V
V
FIGURE 6-3:
6.4
The comparator output, COUT, is read through the
CMCON register. This bit is read-only. The comparator
output may also be directly output to the RA2 pin in
three of the eight possible modes, as shown in
Figure 6-2. When in one of these modes, the output on
RA2 is asynchronous to the internal clock. Figure 6-4
shows the comparator output block diagram.
FIGURE 6-4:
DS40039C-page 40
SS
and V
SS
. The analog input, therefore, must be between
Analog Input Connection
Considerations
Comparator Output
To RA2/T0CKI pin
DD
. If the input voltage deviates from this
VA
Legend:
To Data Bus
Rs < 10K
Set CMIF bit
ANALOG INPUT MODE
MODIFIED COMPARATOR OUTPUT BLOCK DIAGRAM
RD CMCON
A
IN
C
V
I
R
R
VA
LEAKAGE
T
PIN
IC
S
C
5 pF
PIN
= Input Capacitance
= Threshold Voltage
= Leakage Current at the pin due to Various Junctions
= Interconnect Resistance
= Source Impedance
= Analog Voltage
Q
Q
DD
V
DD
EN
EN
V
V
D
D
T
T
= 0.6V
= 0.6V
RESET
range by more than 0.6V in either direction, one of the
diodes is forward biased and a latchup may occur. A
maximum
recommended for the analog sources. Any external
component connected to an analog input pin, such as
a capacitor or a Zener diode, should have very little
leakage current.
The TRISA<2> bit functions as an output enable/
disable for the RA2 pin while the comparator is in an
Output mode.
RD CMCON
Note 1: When reading the PORTA register, all
2: Analog levels on any pin that is defined as
Leakage
±500 nA
Vss
pins configured as analog inputs will read
as a ‘0’. Pins configured as digital inputs
will convert an analog input according to
the TTL input specification.
a digital input, may cause the input buffer
to consume more current than is
specified.
source
CINV
R
IC
impedance
2003 Microchip Technology Inc.
CM2:CM0
RA0/CIN+
RA1/CIN-
CV
of
REF
10 kΩ
is