PIC18F2221-E/SS Microchip Technology, PIC18F2221-E/SS Datasheet - Page 7
PIC18F2221-E/SS
Manufacturer Part Number
PIC18F2221-E/SS
Description
4KB, Flash, 512bytes-RAM, 25I/O, 8-bit Family,nanoWatt 28 SSOP .209in TUBE
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)
Specifications of PIC18F2221-E/SS
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-SSOP
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
- Current page: 7 of 402
- Download datasheet (7Mb)
Table of Contents
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0 Interrupts .................................................................................................................................................................................... 97
11.0 I/O Ports ................................................................................................................................................................................... 111
12.0 Timer0 Module ......................................................................................................................................................................... 129
13.0 Timer1 Module ......................................................................................................................................................................... 133
14.0 Timer2 Module ......................................................................................................................................................................... 139
15.0 Timer3 Module ......................................................................................................................................................................... 141
16.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 145
17.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 153
18.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 167
19.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 211
20.0 10-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 233
21.0 Comparator Module.................................................................................................................................................................. 243
22.0 Comparator Voltage Reference Module................................................................................................................................... 249
23.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 253
24.0 Special Features of the CPU.................................................................................................................................................... 259
25.0 Instruction Set Summary .......................................................................................................................................................... 279
26.0 Development Support............................................................................................................................................................... 329
27.0 Electrical Characteristics .......................................................................................................................................................... 333
28.0 Packaging Information.............................................................................................................................................................. 373
Appendix A: Revision History............................................................................................................................................................. 385
Appendix B: Device Differences ........................................................................................................................................................ 386
Appendix C: Conversion Considerations ........................................................................................................................................... 387
Appendix D: Migration from Baseline to Enhanced Devices.............................................................................................................. 387
Appendix E: Migration From Mid-Range to Enhanced Devices ......................................................................................................... 388
Appendix F: Migration From High-End to Enhanced Devices............................................................................................................ 388
Index ................................................................................................................................................................................................. 389
The Microchip Web Site ..................................................................................................................................................................... 399
Customer Change Notification Service .............................................................................................................................................. 399
Customer Support .............................................................................................................................................................................. 399
Reader Response .............................................................................................................................................................................. 400
PIC18F2221/2321/4221/4321 Product Identification System ............................................................................................................ 401
© 2009 Microchip Technology Inc.
Device Overview .......................................................................................................................................................................... 9
Guidelines for Getting Started with PIC18F Microcontrollers ..................................................................................................... 25
Oscillator Configurations ............................................................................................................................................................ 29
Power-Managed Modes ............................................................................................................................................................. 39
Reset .......................................................................................................................................................................................... 47
Memory Organization ................................................................................................................................................................. 59
Flash Program Memory.............................................................................................................................................................. 79
Data EEPROM Memory ............................................................................................................................................................. 89
8 x 8 Hardware Multiplier............................................................................................................................................................ 95
PIC18F2221/2321/4221/4321 FAMILY
DS39689F-page 7
Related parts for PIC18F2221-E/SS
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
20-Pin USB Flash Microcontrollers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
Microcontrollers (MCU) 64KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm T/R
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm T/R
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm T/
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm TRAY
Manufacturer:
Microchip Technology
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm TR
Manufacturer:
Microchip Technology