PIC18LF2221-I/SP Microchip Technology, PIC18LF2221-I/SP Datasheet - Page 394
![IC PIC MCU FLASH 2KX16 28DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18LF2221-I/SP
Manufacturer Part Number
PIC18LF2221-I/SP
Description
IC PIC MCU FLASH 2KX16 28DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC18F2221-ISO.pdf
(402 pages)
2.PIC18F2221-ISO.pdf
(8 pages)
3.PIC18F2221-ISO.pdf
(30 pages)
4.PIC18F2221-ISO.pdf
(46 pages)
5.PIC18LF2221-IML.pdf
(394 pages)
6.PIC18F2321-IML.pdf
(396 pages)
Specifications of PIC18LF2221-I/SP
Core Size
8-Bit
Program Memory Size
4KB (2K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC18
No. Of I/o's
25
Eeprom Memory Size
256Byte
Ram Memory Size
512Byte
Cpu Speed
40MHz
No. Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- PIC18F2221-ISO PDF datasheet
- PIC18F2221-ISO PDF datasheet #2
- PIC18F2221-ISO PDF datasheet #3
- PIC18F2221-ISO PDF datasheet #4
- PIC18LF2221-IML PDF datasheet #5
- PIC18F2321-IML PDF datasheet #6
- Current page: 394 of 402
- Download datasheet (7Mb)
PIC18F2221/2321/4221/4321 FAMILY
Pinout I/O Descriptions
PIR Registers ................................................................... 102
PLL Frequency Multiplier ................................................... 31
POP .................................................................................. 308
POR. See Power-on Reset.
PORTA
PORTB
PORTC
PORTD
DS39689F-page 394
RA2/AN2/V
RA3/AN3/V
RA4/T0CKI/C1OUT .............................................. 15, 19
RA5/AN4/SS/HLVDIN/C2OUT ............................. 15, 19
RB0/INT0/FLT0/AN12 .......................................... 16, 20
RB1/INT1/AN10 ................................................... 16, 20
RB2/INT2/AN8 ..................................................... 16, 20
RB3/AN9/CCP2 ................................................... 16, 20
RB4/KBI0/AN11 ................................................... 16, 20
RB5/KBI1/PGM .................................................... 16, 20
RB6/KBI2/PGC .................................................... 16, 20
RB7/KBI3/PGD .................................................... 16, 20
RC0/T1OSO/T13CKI ........................................... 17, 21
RC1/T1OSI/CCP2 ................................................ 17, 21
RC2/CCP1 ................................................................. 17
RC2/CCP1/P1A ......................................................... 21
RC3/SCK/SCL ..................................................... 17, 21
RC4/SDI/SDA ...................................................... 17, 21
RC5/SDO ............................................................. 17, 21
RC6/TX/CK .......................................................... 17, 21
RC7/RX/DT .......................................................... 17, 21
RD0/PSP0 .................................................................. 22
RD1/PSP1 .................................................................. 22
RD2/PSP2 .................................................................. 22
RD3/PSP3 .................................................................. 22
RD4/PSP4 .................................................................. 22
RD5/PSP5/P1B .......................................................... 22
RD6/PSP6/P1C .......................................................... 22
RD7/PSP7/P1D .......................................................... 22
RE0/RD/AN5 .............................................................. 23
RE1/WR/AN6 ............................................................. 23
RE2/CS/AN7 .............................................................. 23
V
V
PIC18F2221/2321 ...................................................... 14
PIC18F4221/4321 ...................................................... 18
HSPLL Oscillator Mode .............................................. 31
Use with INTOSC ....................................................... 31
Associated Registers ............................................... 113
LATA Register .......................................................... 111
PORTA Register ...................................................... 111
TRISA Register ........................................................ 111
Associated Registers ............................................... 116
LATB Register .......................................................... 114
PORTB Register ...................................................... 114
TRISB Register ........................................................ 114
Associated Registers ............................................... 119
LATC Register ......................................................... 117
PORTC Register ...................................................... 117
RC3/SCK/SCL Pin ................................................... 183
TRISC Register ........................................................ 117
Associated Registers ............................................... 122
LATD Register ......................................................... 120
Parallel Slave Port (PSP) Function .......................... 120
PORTD Register ...................................................... 120
TRISD Register ........................................................ 120
DD
SS
....................................................................... 17, 23
....................................................................... 17, 23
REF
REF
-/CV
+ ................................................... 15, 19
REF
........................................ 15, 19
PORTE
Power-Managed Modes ..................................................... 39
Power-on Reset (POR) ...................................................... 49
Power-up Delays ............................................................... 38
Power-up Timer (PWRT) ................................................... 38
Prescaler
Prescaler, Timer0 ............................................................ 131
Prescaler, Timer2 ............................................................ 151
PRI_IDLE Mode ................................................................. 44
PRI_RUN Mode ................................................................. 40
Program Counter ............................................................... 60
Program Memory
Program Verification ........................................................ 274
Programming, Device Instructions ................................... 279
PSP. See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP Module) and
PUSH ............................................................................... 308
PUSH and POP Instructions .............................................. 61
PUSHL ............................................................................. 324
PWM (CCP Module)
Associated Registers ............................................... 125
LATE Register ......................................................... 123
PORTE Register ...................................................... 123
PSP Mode Select (PSPMODE Bit) .......................... 120
TRISE Register ........................................................ 123
and A/D Operation ................................................... 240
and EUSART Operation .......................................... 215
and PWM Operation ................................................ 165
and SPI Operation ................................................... 175
Clock Sources ............................................................ 39
Clock Transitions and Status Indicators .................... 40
Effects on Clock Sources ........................................... 38
Entering ..................................................................... 39
Exiting Idle and Sleep Modes .................................... 45
Idle Modes ................................................................. 43
Multiple Sleep Commands ......................................... 40
Run Modes ................................................................ 40
Sleep Mode ............................................................... 43
Summary (table) ........................................................ 39
Power-up Timer (PWRT) ........................................... 51
Time-out Sequence ................................................... 51
Timer2 ..................................................................... 156
PCL, PCH and PCU Registers .................................. 60
PCLATH and PCLATU Registers .............................. 60
and Extended Instruction Set .................................... 77
Instructions ................................................................ 64
Interrupt Vector .......................................................... 59
Look-up Tables .......................................................... 62
Map and Stack (diagram) .......................................... 59
Reset Vector .............................................................. 59
PWM (ECCP Module).
Associated Registers ............................................... 152
Auto-Shutdown (CCP1 Only) ................................... 151
Duty Cycle ............................................................... 150
By Interrupt ........................................................ 45
By Reset ............................................................ 45
By WDT Time-out .............................................. 45
Without an Oscillator Start-up Delay ................. 46
PRI_IDLE ........................................................... 44
RC_IDLE ........................................................... 45
SEC_IDLE ......................................................... 44
PRI_RUN ........................................................... 40
RC_RUN ............................................................ 41
SEC_RUN ......................................................... 40
Two-Word .......................................................... 64
© 2009 Microchip Technology Inc.
Related parts for PIC18LF2221-I/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: