English
Language : 

PIC18F87K22 Datasheet, PDF (536/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
Extended Instruction Set
ADDFSR ................................................................... 472
ADDULNK................................................................. 472
CALLW...................................................................... 473
MOVSF ..................................................................... 473
MOVSS ..................................................................... 474
PUSHL ...................................................................... 474
SUBFSR ................................................................... 475
SUBULNK ................................................................. 475
External Memory Bus........................................................ 119
16-Bit Byte Select Mode ........................................... 125
16-Bit Byte Write Mode ............................................. 123
16-Bit Data Width Modes .......................................... 122
16-Bit Mode Timing ................................................... 126
16-Bit Word Write Mode............................................ 124
8-Bit Data Width Mode .............................................. 127
8-Bit Mode Timing ..................................................... 128
Address and Data Lines for Different
Address and Data Widths (table) ...................... 121
Address and Data Width ........................................... 121
Address Shifting ........................................................ 121
Control ...................................................................... 120
I/O Port Functions ..................................................... 119
Operation in Power-Managed Modes ....................... 129
Program Memory Modes .......................................... 122
Extended Microcontroller .................................. 122
Microcontroller .................................................. 122
Wait States................................................................ 122
Weak Pull-ups on Port Pins ...................................... 122
External Oscillator Modes
Clock Input (EC Modes) .............................................. 49
HS ............................................................................... 48
F
Fail-Safe Clock Monitor............................................. 401, 422
Exiting Operation ...................................................... 422
Interrupts in Power-Managed Modes ........................ 423
POR or Wake from Sleep ......................................... 423
WDT During Oscillator Failure .................................. 422
Fast Register Stack............................................................. 89
Firmware Instructions........................................................ 429
Flash Program Memory..................................................... 109
Associated Registers ................................................ 118
Control Registers ...................................................... 110
EECON1 and EECON2 .................................... 110
TABLAT (Table Latch) Register........................ 112
TBLPTR (Table Pointer) Register ..................... 112
Erase Sequence ....................................................... 114
Erasing ...................................................................... 114
Operation During Code-Protect ................................ 118
Reading..................................................................... 113
Table Pointer
Boundaries Based on Operation....................... 112
Table Pointer Boundaries ......................................... 112
Table Reads and Table Writes ................................. 109
Write Sequence ........................................................ 116
Writing ....................................................................... 115
Protection Against Spurious Writes .................. 118
Unexpected Termination................................... 118
Write Verify ....................................................... 118
FSCM. See Fail-Safe Clock Monitor.
G
GOTO................................................................................ 450
H
Hardware Multiplier........................................................... 137
8 x 8 Multiplication Algorithms .................................. 137
Operation .................................................................. 137
Performance Comparison (table).............................. 137
High/Low-Voltage Detect .................................................. 377
Applications .............................................................. 381
Associated Registers ................................................ 382
Current Consumption................................................ 379
Effects of a Reset ..................................................... 382
Operation .................................................................. 378
During Sleep..................................................... 382
Setup ........................................................................ 379
Start-up Time ............................................................ 379
Typical Application.................................................... 381
High/Low-Voltage ICSP Programming. See Single
Supply ICSP Programming
HLVD. See High/Low-Voltage Detect. .............................. 377
I
I/O Ports............................................................................ 163
Open-Drain Outputs.................................................. 165
Output Pin Drive ....................................................... 163
Pin Capabilities ......................................................... 163
Pull-up Configuration ................................................ 163
I2C Mode (MSSP)
Acknowledge Sequence Timing ............................... 318
Associated Registers ................................................ 324
Baud Rate Generator ............................................... 311
Bus Collision
During a Repeated Start Condition................... 322
During a Stop Condition ................................... 323
Clock Arbitration ....................................................... 312
Clock Stretching........................................................ 304
10-Bit Slave Receive Mode (SEN = 1) ............. 304
10-Bit Slave Transmit Mode ............................. 304
7-Bit Slave Receive Mode (SEN = 1) ............... 304
7-Bit Slave Transmit Mode ............................... 304
Clock Synchronization and the CKP bit .................... 305
Effects of a Reset ..................................................... 319
General Call Address Support .................................. 308
I2C Clock Rate w/BRG.............................................. 311
Master Mode............................................................. 309
Operation.......................................................... 310
Reception ......................................................... 315
Repeated Start Condition Timing ..................... 314
Start Condition Timing ...................................... 313
Transmission .................................................... 315
Multi-Master Communication, Bus Collision
and Arbitration .................................................. 319
Multi-Master Mode .................................................... 319
Operation .................................................................. 294
Read/Write Bit Information (R/W Bit) ................ 294, 297
Registers .................................................................. 289
Serial Clock (RC3/SCKx/SCLx) ................................ 297
Slave Mode............................................................... 294
Address Masking Modes
5-Bit .......................................................... 295
7-Bit .......................................................... 296
Addressing........................................................ 294
Reception ......................................................... 297
Transmission .................................................... 297
Sleep Operation........................................................ 319
Stop Condition Timing .............................................. 318
DS39960B-page 536
Preliminary
 2010 Microchip Technology Inc.