PIC18F2480/2580/4480/4580
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 9
2.0 Guidelines for Getting Started with PIC18F Microcontrollers ..................................................................................................... 25
3.0 Oscillator Configurations ............................................................................................................................................................ 29
4.0 Power-Managed Modes ............................................................................................................................................................. 39
5.0 Reset.......................................................................................................................................................................................... 47
6.0 Memory Organization................................................................................................................................................................. 67
7.0 Flash Program Memory............................................................................................................................................................ 101
8.0 Data EEPROM Memory ........................................................................................................................................................... 111
9.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 117
10.0 Interrupts .................................................................................................................................................................................. 119
11.0 I/O Ports ................................................................................................................................................................................... 135
12.0 Timer0 Module ......................................................................................................................................................................... 151
13.0 Timer1 Module ......................................................................................................................................................................... 155
14.0 Timer2 Module ......................................................................................................................................................................... 161
15.0 Timer3 Module ......................................................................................................................................................................... 163
16.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 167
17.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 177
18.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 191
19.0 Enhanced Universal Synchronous Receiver Transmitter (EUSART)....................................................................................... 231
20.0 10-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 253
21.0 Comparator Module.................................................................................................................................................................. 263
22.0 Comparator Voltage Reference Module................................................................................................................................... 269
23.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 273
24.0 ECAN Module........................................................................................................................................................................... 279
25.0 Special Features of the CPU.................................................................................................................................................... 349
26.0 Instruction Set Summary.......................................................................................................................................................... 367
27.0 Development Support............................................................................................................................................................... 417
28.0 Electrical Characteristics .......................................................................................................................................................... 421
29.0 Packaging Information.............................................................................................................................................................. 459
Appendix A: Revision History............................................................................................................................................................. 471
Appendix B: Device Differences......................................................................................................................................................... 471
Appendix C: Conversion Considerations ........................................................................................................................................... 472
Appendix D: Migration from Baseline to Enhanced Devices.............................................................................................................. 472
Appendix E: Migration From Mid-Range to Enhanced Devices......................................................................................................... 473
Appendix F: Migration From High-End to Enhanced Devices............................................................................................................ 473
The Microchip Web Site..................................................................................................................................................................... 487
Customer Change Notification Service .............................................................................................................................................. 487
Customer Support.............................................................................................................................................................................. 487
Reader Response .............................................................................................................................................................................. 488
PIC18F2480/2580/4480/4580 Product Identification System ............................................................................................................ 489
DS39637D-page 6
© 2009 Microchip Technology Inc.