English
Language : 

PIC18F258 Datasheet, PDF (6/384 Pages) Microchip Technology – High Performance, 28/40-Pin Enhanced FLASH Microcontrollers with CAN
PIC18FXX8
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Oscillator Configurations ............................................................................................................................................................ 17
3.0 Reset .......................................................................................................................................................................................... 25
4.0 Memory Organization ................................................................................................................................................................. 37
5.0 Data EEPROM Memory ............................................................................................................................................................ 59
6.0 FLASH Program Memory ........................................................................................................................................................... 65
7.0 8 X 8 Hardware Multiplier ........................................................................................................................................................... 75
8.0 Interrupts .................................................................................................................................................................................... 77
9.0 I/O Ports ..................................................................................................................................................................................... 93
10.0 Parallel Slave Port .................................................................................................................................................................... 105
11.0 Timer0 Module ......................................................................................................................................................................... 107
12.0 Timer1 Module ......................................................................................................................................................................... 111
13.0 Timer2 Module ......................................................................................................................................................................... 115
14.0 Timer3 Module ......................................................................................................................................................................... 117
15.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 121
16.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 129
17.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 141
18.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART).............................................................. 181
19.0 CAN Module ............................................................................................................................................................................. 197
20.0 Compatible 10-bit Analog-to-Digital Converter (A/D) Module................................................................................................... 237
21.0 Comparator Module.................................................................................................................................................................. 245
22.0 Comparator Voltage Reference Module ................................................................................................................................... 251
23.0 Low Voltage Detect .................................................................................................................................................................. 255
24.0 Special Features of the CPU .................................................................................................................................................... 261
25.0 Instruction Set Summary .......................................................................................................................................................... 277
26.0 Development Support............................................................................................................................................................... 319
27.0 Electrical Characteristics .......................................................................................................................................................... 325
28.0 DC and AC Characteristics Graphs and Tables ....................................................................................................................... 355
29.0 Packaging Information.............................................................................................................................................................. 357
Appendix A: Data Sheet Revision History.......................................................................................................................................... 365
Appendix B: Device Differences......................................................................................................................................................... 365
Appendix C: Device Migrations .......................................................................................................................................................... 366
Appendix D: Migrating from other PICmicro Devices......................................................................................................................... 366
Appendix E: Development Tool Version Requirements ..................................................................................................................... 367
Index .................................................................................................................................................................................................. 369
On-Line Support................................................................................................................................................................................. 379
Reader Response .............................................................................................................................................................................. 380
PIC18FXX8 Product Identification System......................................................................................................................................... 381
DS41159B-page 4
Preliminary
 2002 Microchip Technology Inc.