Datasheet

Table Of Contents
 2010 Microchip Technology Inc. Preliminary DS39979A-page 469
PIC18F87J72 FAMILY
Instruction Set ................................................................... 333
ADDLW ..................................................................... 340
ADDWF..................................................................... 340
ADDWF (Indexed Literal Offset Mode) ..................... 382
ADDWFC .................................................................. 341
ANDLW ..................................................................... 341
ANDWF..................................................................... 342
BC ............................................................................. 342
BCF........................................................................... 343
BN ............................................................................. 343
BNC .......................................................................... 344
BNN .......................................................................... 344
BNOV........................................................................ 345
BNZ........................................................................... 345
BOV .......................................................................... 348
BRA........................................................................... 346
BSF........................................................................... 346
BSF (Indexed Literal Offset Mode) ........................... 382
BTFSC ...................................................................... 347
BTFSS ...................................................................... 347
BTG........................................................................... 348
BZ ............................................................................. 349
CALL......................................................................... 349
CLRF......................................................................... 350
CLRWDT................................................................... 350
COMF ....................................................................... 351
CPFSEQ ................................................................... 351
CPFSGT ................................................................... 352
CPFSLT .................................................................... 352
DAW.......................................................................... 353
DCFSNZ ................................................................... 354
DECF ........................................................................ 353
DECFSZ.................................................................... 354
Extended Instructions ............................................... 376
Considerations when Enabling ......................... 381
Syntax............................................................... 376
Use with MPLAB IDE Tools .............................. 383
General Format......................................................... 336
GOTO ....................................................................... 355
INCF.......................................................................... 355
INCFSZ..................................................................... 356
INFSNZ..................................................................... 356
IORLW ...................................................................... 357
IORWF ...................................................................... 357
LFSR......................................................................... 358
MOVF........................................................................ 358
MOVFF ..................................................................... 359
MOVLB ..................................................................... 359
MOVLW .................................................................... 360
MOVWF .................................................................... 360
MULLW..................................................................... 361
MULWF..................................................................... 361
NEGF ........................................................................ 362
NOP .......................................................................... 362
Opcode Field Descriptions........................................ 334
POP .......................................................................... 363
PUSH........................................................................ 363
RCALL ...................................................................... 364
RESET...................................................................... 364
RETFIE ..................................................................... 365
RETLW ..................................................................... 365
RETURN ................................................................... 366
RLCF......................................................................... 366
RLNCF ...................................................................... 367
RRCF ........................................................................ 367
RRNCF ..................................................................... 368
SETF ........................................................................ 368
SETF (Indexed Literal Offset Mode)......................... 382
SLEEP...................................................................... 369
Standard Instructions................................................ 333
SUBFWB .................................................................. 369
SUBLW..................................................................... 370
SUBWF..................................................................... 370
SUBWFB .................................................................. 371
SWAPF..................................................................... 371
TBLRD...................................................................... 372
TBLWT ..................................................................... 373
TSTFSZ.................................................................... 374
XORLW .................................................................... 374
XORWF .................................................................... 375
INTCON Register
RBIF Bit .................................................................... 108
Inter-Integrated Circuit. See I
2
C Mode.
Internal LCD Voltage Regulator Specifications................. 403
Internal Oscillator Block ...................................................... 31
Adjustment.................................................................. 32
INTIO Modes .............................................................. 31
INTOSC Frequency Drift ............................................ 32
INTOSC Output Frequency ........................................ 32
INTPLL Modes............................................................ 31
Internal RC Oscillator
Use with WDT........................................................... 325
Internal Voltage Regulator Specifications......................... 403
Internet Address ............................................................... 475
Interrupt Sources .............................................................. 319
A/D Conversion Complete ........................................ 277
Capture Complete (CCP) ......................................... 160
Compare Complete (CCP) ....................................... 161
Interrupt-on-Change (RB7:RB4)............................... 108
TMR0 Overflow......................................................... 125
TMR2 to PR2 Match (PWM)..................................... 163
TMR3 Overflow......................................................... 137
Interrupts ............................................................................ 89
During, Context Saving............................................. 104
Interrupt-on-Change (RB7:RB4) Flag
(RBIF Bit).......................................................... 108
INTx Pin.................................................................... 104
PORTB, Interrupt-on-Change................................... 104
TMR0........................................................................ 104
INTOSC, INTRC. See Internal Oscillator Block.
IORLW.............................................................................. 357
IORWF.............................................................................. 357
L
LCD
Associated Registers ................................................ 193
Bias Generation........................................................ 173
Bias Configurations .......................................... 174
M0 and M1 ............................................... 174
M2 ............................................................ 175
M3 ............................................................ 176
Bias Types........................................................ 173
Voltage Regulator............................................. 173
Charge Pump ................................................... 174, 177
Clock Source Selection ............................................ 172
Configuring the Module ............................................ 192
Frame Frequency ..................................................... 178
Interrupts .................................................................. 190
LCDCON Register .................................................... 168
LCDDATA Register .................................................. 168