PIC18F2221-E/SO Microchip Technology, PIC18F2221-E/SO Datasheet - Page 247

no-image

PIC18F2221-E/SO

Manufacturer Part Number
PIC18F2221-E/SO
Description
4KB, Flash, 512bytes-RAM, 25I/O, 8-bit Family,nanoWatt 28 SOIC .300in TUBE
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2221-E/SO

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
21.9
A simplified circuit for an analog input is shown in
Figure 21-4. Since the analog pins are connected to a
digital output, they have reverse biased diodes to V
and V
V
FIGURE 21-4:
TABLE 21-1:
© 2009 Microchip Technology Inc.
CMCON
CVRCON
INTCON
PIR2
PIE2
IPR2
PORTA
LATA
TRISA
Legend: — = unimplemented, read as ‘0’. Shaded cells are unused by the comparator module.
Note 1:
SS
Name
and V
SS
. The analog input, therefore, must be between
Analog Input Connection
Considerations
DD
PORTA<7:6> and their direction and latch bits are individually configured as port pins based on various
primary oscillator modes. When disabled, these bits read as ‘0’.
. If the input voltage deviates from this
VA
GIE/GIEH PEIE/GIEL TMR0IE
TRISA7
LATA7
OSCFIF
OSCFIE
OSCFIP
CVREN
C2OUT
RA7
Bit 7
REGISTERS ASSOCIATED WITH COMPARATOR MODULE
R
S
Legend:
(1)
(1)
< 10k
(1)
COMPARATOR ANALOG INPUT MODEL
PIC18F2221/2321/4221/4321 FAMILY
TRISA6
A
LATA6
CVROE
C1OUT
IN
RA6
CMIE
CMIP
CMIF
Bit 6
C
V
I
R
R
VA
LEAKAGE
C
5 pF
(1)
T
PIN
IC
S
(1)
PIN
(1)
PORTA Data Latch Register (Read and Write to Data Latch)
PORTA Data Direction Control Register
C2INV
CVRR
Bit 5
RA5
= Input Capacitance
= Threshold Voltage
= Leakage Current at the pin due to various junctions
= Interconnect Resistance
= Source Impedance
= Analog Voltage
V
DD
CVRSS
INT0IE
C1INV
EEIE
EEIP
DD
Bit 4
EEIF
RA4
V
V
T
T
= 0.6V
= 0.6V
range by more than 0.6V in either direction, one of the
diodes is forward biased and a latch-up condition may
occur. A maximum source impedance of 10 kΩ is
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.
BCLIF
BCLIE
BCLIP
CVR3
RBIE
Bit 3
RA3
CIS
I
±100 nA
V
LEAKAGE
TMR0IF
HLVDIE
HLVDIP
SS
HLVDIF
CVR2
Bit 2
CM2
RA2
R
IC
TMR3IF
TMR3IE
TMR3IP
INT0IF
CVR1
Bit 1
CM1
RA1
CCP2IF
CCP2IE
CCP2IP
Comparator
Input
CVR0
RBIF
DS39689F-page 247
Bit 0
CM0
RA0
on page
Values
Reset
57
57
58
58
58
58
58
58
58

Related parts for PIC18F2221-E/SO