Datasheet

Table Of Contents
PIC18F85J90 FAMILY
DS39770C-page 406 2010 Microchip Technology Inc.
Flash Program Memory ...................................................... 87
Associated Registers .................................................95
Control Registers .......................................................88
EECON1 and EECON2 ..................................... 88
TABLAT (Table Latch) Register ......................... 90
TBLPTR (Table Pointer) Register ...................... 90
Erase Sequence ........................................................ 92
Erasing ....................................................................... 92
Operation During Code-Protect ................................. 95
Reading ......................................................................91
Table Pointer
Boundaries Based on Operation ........................ 90
Table Pointer Boundaries .......................................... 90
Table Reads and Table Writes .................................. 87
Write Sequence ......................................................... 93
Writing ........................................................................ 93
Unexpected Termination .................................... 95
Write Verify ........................................................95
FSCM. See Fail-Safe Clock Monitor.
G
GOTO ............................................................................... 326
H
Hardware Multiplier ............................................................ 97
Introduction ................................................................ 97
Operation ...................................................................97
Performance Comparison ..........................................97
I
I/O Ports ........................................................................... 115
Input Voltage Considerations ................................... 115
Open-Drain Outputs ................................................. 116
Output Pin Drive .......................................................115
Pin Capabilities ........................................................ 115
Pull-up Configuration ...............................................116
I
2
C Mode (MSSP) ............................................................ 200
Acknowledge Sequence Timing ............................... 228
Associated Registers ...............................................234
Baud Rate Generator ............................................... 221
Bus Collision
During a Repeated Start Condition .................. 232
During a Stop Condition ................................... 233
Clock Arbitration ....................................................... 222
Clock Stretching ....................................................... 214
10-Bit Slave Receive Mode (SEN = 1) ............. 214
10-Bit Slave Transmit Mode .............................214
7-Bit Slave Receive Mode (SEN = 1) ............... 214
7-Bit Slave Transmit Mode ...............................214
Clock Synchronization and the CKP Bit ................... 215
Effects of a Reset ..................................................... 229
General Call Address Support ................................. 218
I
2
C Clock Rate w/BRG ............................................. 221
Master Mode ............................................................ 219
Baud Rate Generator ....................................... 221
Operation ......................................................... 220
Reception ......................................................... 225
Repeated Start Condition Timing ..................... 224
Start Condition Timing ..................................... 223
Transmission .................................................... 225
Multi-Master Communication, Bus Collision
and Arbitration .................................................. 229
Multi-Master Mode ...................................................229
Operation ................................................................. 205
Read/Write
Bit Information (R/W Bit) ............... 205, 207
Registers .................................................................. 200
Serial Clock (SCK/SCL) ........................................... 207
Slave Mode .............................................................. 205
Addressing ....................................................... 205
Addressing Masking ........................................ 206
Reception ........................................................ 207
Transmission ................................................... 207
Sleep Operation ....................................................... 229
Stop Condition Timing ............................................. 228
INCF ................................................................................ 326
INCFSZ ............................................................................ 327
In-Circuit Debugger .......................................................... 303
In-Circuit Serial Programming (ICSP) ...................... 291, 303
Indexed Literal Offset Addressing
and Standard PIC18 Instructions ............................. 352
Indexed Literal Offset Mode ............................................. 352
Indirect Addressing ............................................................ 81
INFSNZ ............................................................................ 327
Initialization Conditions for all Registers ...................... 57–59
Instruction Cycle ................................................................ 68
Clocking Scheme ....................................................... 68
Flow/Pipelining ........................................................... 68
Instruction Set .................................................................. 305
ADDLW .................................................................... 311
ADDWF .................................................................... 311
ADDWF (Indexed Literal Offset Mode) .................... 353
ADDWFC ................................................................. 312
ANDLW .................................................................... 312
ANDWF .................................................................... 313
BC ............................................................................ 313
BCF ......................................................................... 314
BN ............................................................................ 314
BNC ......................................................................... 315
BNN ......................................................................... 315
BNOV ...................................................................... 316
BNZ ......................................................................... 316
BOV ......................................................................... 319
BRA ......................................................................... 317
BSF .......................................................................... 317
BSF (Indexed Literal Offset Mode) .......................... 353
BTFSC ..................................................................... 318
BTFSS ..................................................................... 318
BTG ......................................................................... 319
BZ ............................................................................ 320
CALL ........................................................................ 320
CLRF ....................................................................... 321
CLRWDT ................................................................. 321
COMF ...................................................................... 322
CPFSEQ .................................................................. 322
CPFSGT .................................................................. 323
CPFSLT ................................................................... 323
DAW ........................................................................ 324
DCFSNZ .................................................................. 325
DECF ....................................................................... 324
DECFSZ .................................................................. 325
Extended Instructions .............................................. 347
Considerations when Enabling ........................ 352
Syntax .............................................................. 347
Use with MPLAB IDE Tools ............................. 354
General Format ........................................................ 307
GOTO ...................................................................... 326
INCF ........................................................................ 326
INCFSZ .................................................................... 327
INFSNZ .................................................................... 327
IORLW ..................................................................... 328
IORWF ..................................................................... 328