English
Language : 

PIC18F4321 Datasheet, PDF (7/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F4321 FAMILY
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Oscillator Configurations ............................................................................................................................................................ 23
3.0 Power-Managed Modes ............................................................................................................................................................. 33
4.0 Reset .......................................................................................................................................................................................... 41
5.0 Memory Organization ................................................................................................................................................................. 53
6.0 Flash Program Memory.............................................................................................................................................................. 73
7.0 Data EEPROM Memory ............................................................................................................................................................. 83
8.0 8 x 8 Hardware Multiplier............................................................................................................................................................ 89
9.0 Interrupts .................................................................................................................................................................................... 91
10.0 I/O Ports ................................................................................................................................................................................... 105
11.0 Timer0 Module ......................................................................................................................................................................... 123
12.0 Timer1 Module ......................................................................................................................................................................... 127
13.0 Timer2 Module ......................................................................................................................................................................... 133
14.0 Timer3 Module ......................................................................................................................................................................... 135
15.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 139
16.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 147
17.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 161
18.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 205
19.0 10-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 227
20.0 Comparator Module.................................................................................................................................................................. 237
21.0 Comparator Voltage Reference Module................................................................................................................................... 243
22.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 247
23.0 Special Features of the CPU.................................................................................................................................................... 253
24.0 Instruction Set Summary .......................................................................................................................................................... 273
25.0 Development Support............................................................................................................................................................... 323
26.0 Electrical Characteristics .......................................................................................................................................................... 327
27.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 365
28.0 Packaging Information.............................................................................................................................................................. 367
Appendix A: Revision History............................................................................................................................................................. 377
Appendix B: Device Differences ........................................................................................................................................................ 377
Appendix C: Conversion Considerations ........................................................................................................................................... 378
Appendix D: Migration from Baseline to Enhanced Devices.............................................................................................................. 378
Appendix E: Migration From Mid-Range to Enhanced Devices ......................................................................................................... 379
Appendix F: Migration From High-End to Enhanced Devices............................................................................................................ 379
Index ................................................................................................................................................................................................. 381
The Microchip Web Site ..................................................................................................................................................................... 391
Customer Change Notification Service .............................................................................................................................................. 391
Customer Support .............................................................................................................................................................................. 391
Reader Response .............................................................................................................................................................................. 392
PIC18F2221/2321/4221/4321 Product Identification System ............................................................................................................ 393
© 2007 Microchip Technology Inc.
Preliminary
DS39689E-page 5