English
Language : 

PIC18F2X1X Datasheet, PDF (7/380 Pages) Microchip Technology – 28/40/44-PIN FLASH MICROCONTROLLERS WITH 10-BIT A/D AND NANO WATT TECHNOLOGY
PIC18F2X1X/4X1X
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.............................................................................................................................................................. 75
7.0 8 x 8 Hardware Multiplier............................................................................................................................................................ 79
8.0 Interrupts .................................................................................................................................................................................... 81
9.0 I/O Ports ..................................................................................................................................................................................... 95
10.0 Timer0 Module ......................................................................................................................................................................... 113
11.0 Timer1 Module ......................................................................................................................................................................... 117
12.0 Timer2 Module ......................................................................................................................................................................... 123
13.0 Timer3 Module ......................................................................................................................................................................... 125
14.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 129
15.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 137
16.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 151
17.0 Enhanced Universal Synchronous Receiver Transmitter (EUSART)....................................................................................... 191
18.0 10-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 211
19.0 Comparator Module.................................................................................................................................................................. 221
20.0 Comparator Voltage Reference Module................................................................................................................................... 227
21.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 231
22.0 Special Features of the CPU.................................................................................................................................................... 237
23.0 Instruction Set Summary .......................................................................................................................................................... 257
24.0 Development Support............................................................................................................................................................... 307
25.0 Electrical Characteristics .......................................................................................................................................................... 313
26.0 DC and AC Characteristics Graphs And Tables ...................................................................................................................... 351
27.0 Packaging Information.............................................................................................................................................................. 353
Appendix A: Revision History............................................................................................................................................................. 361
Appendix B: Device Differences ........................................................................................................................................................ 361
Appendix C: Conversion Considerations ........................................................................................................................................... 362
Appendix D: Migration From Baseline to Enhanced Devices ............................................................................................................ 362
Appendix E: Migration From Mid-Range to Enhanced Devices ......................................................................................................... 363
Appendix F: Migration From High-End to Enhanced Devices............................................................................................................ 363
Index ................................................................................................................................................................................................. 365
On-Line Support................................................................................................................................................................................. 375
Systems Information and Upgrade Hot Line ...................................................................................................................................... 375
Reader Response .............................................................................................................................................................................. 376
PIC18F2X1X/4X1X Product Identification System............................................................................................................................. 377
 2004 Microchip Technology Inc.
Preliminary
DS39636A-page 5