Datasheet

PIC18F2220/2320/4220/4320
DS39599G-page 4 © 2007 Microchip Technology Inc.
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Oscillator Configurations ............................................................................................................................................................ 19
3.0 Power-Managed Modes ............................................................................................................................................................. 29
4.0 Reset .......................................................................................................................................................................................... 43
5.0 Memory Organization ................................................................................................................................................................. 53
6.0 Flash Program Memory.............................................................................................................................................................. 71
7.0 Data EEPROM Memory ............................................................................................................................................................. 81
8.0 8 X 8 Hardware Multiplier ........................................................................................................................................................... 85
9.0 Interrupts .................................................................................................................................................................................... 87
10.0 I/O Ports ................................................................................................................................................................................... 101
11.0 Timer0 Module ......................................................................................................................................................................... 117
12.0 Timer1 Module ......................................................................................................................................................................... 121
13.0 Timer2 Module ......................................................................................................................................................................... 127
14.0 Timer3 Module ......................................................................................................................................................................... 129
15.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 133
16.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 141
17.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 155
18.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART).............................................................. 195
19.0 10-bit Analog-to-Digital Converter (A/D) Module ...................................................................................................................... 211
20.0 Comparator Module.................................................................................................................................................................. 221
21.0 Comparator Voltage Reference Module ................................................................................................................................... 227
22.0 Low-Voltage Detect .................................................................................................................................................................. 231
23.0 Special Features of the CPU.................................................................................................................................................... 237
24.0 Instruction Set Summary .......................................................................................................................................................... 257
25.0 Development Support............................................................................................................................................................... 301
26.0 Electrical Characteristics .......................................................................................................................................................... 305
27.0 DC and AC Characteristics Graphs and Tables ....................................................................................................................... 347
28.0 Packaging Information.............................................................................................................................................................. 365
Appendix A: Revision History............................................................................................................................................................. 375
Appendix B: Device Differences......................................................................................................................................................... 376
Appendix C: Conversion Considerations ........................................................................................................................................... 377
Appendix D: Migration from Baseline to Enhanced Devices.............................................................................................................. 377
Appendix E: Migration from Mid-range to Enhanced Devices............................................................................................................ 378
Appendix F: Migration from High-End to Enhanced Devices ............................................................................................................. 378
Index .................................................................................................................................................................................................. 379
The Microchip Web Site..................................................................................................................................................................... 389
Customer Change Notification Service .............................................................................................................................................. 389
Customer Support .............................................................................................................................................................................. 389
Reader Response .............................................................................................................................................................................. 390
PIC18F2220/2320/4220/4320 Product Identification System ............................................................................................................ 391