Datasheet
PIC18F2X1X/4X1X
DS39636D-page 368 © 2009 Microchip Technology Inc.
Read/Write Bit Information (R/W
Bit) ............... 166, 167
Registers .................................................................. 162
Serial Clock (RC3/SCK/SCL) ...................................167
Slave Mode .............................................................. 166
Addressing .......................................................166
Reception ......................................................... 167
Transmission .................................................... 167
Sleep Operation ....................................................... 187
Stop Condition Timing ..............................................186
ID Locations ............................................................. 239, 257
INCF .................................................................................280
INCFSZ ............................................................................281
In-Circuit Debugger .......................................................... 257
In-Circuit Serial Programming (ICSP) ...................... 239, 257
Indexed Literal Offset Addressing
and Standard PIC18 Instructions ............................. 306
Indexed Literal Offset Mode ....................................... 73, 306
Indirect Addressing ............................................................72
INFSNZ ............................................................................ 281
Initialization Conditions for all Registers ...................... 51–54
Instruction Cycle .................................................................59
Clocking Scheme ....................................................... 59
Instruction Flow/Pipelining ................................................. 59
Instruction Set
ADDLW .................................................................... 265
ADDWF .................................................................... 265
ADDWF (Indexed Literal Offset mode) .................... 307
ADDWFC ................................................................. 266
ANDLW .................................................................... 266
ANDWF .................................................................... 267
BC ............................................................................ 267
BCF .......................................................................... 268
BN ............................................................................ 268
BNC ......................................................................... 269
BNN ......................................................................... 269
BNOV ....................................................................... 270
BNZ .......................................................................... 270
BOV ......................................................................... 273
BRA ..........................................................................271
BSF ..........................................................................271
BSF (Indexed Literal Offset mode) .......................... 307
BTFSC .....................................................................272
BTFSS .....................................................................272
BTG .......................................................................... 273
BZ ............................................................................274
CALL ........................................................................274
CLRF ........................................................................275
CLRWDT ..................................................................275
COMF ......................................................................276
CPFSEQ .................................................................. 276
CPFSGT .................................................................. 277
CPFSLT ................................................................... 277
DAW ......................................................................... 278
DCFSNZ .................................................................. 279
DECF .......................................................................278
DECFSZ ................................................................... 279
Firmware Instructions ...............................................259
General Format ........................................................ 261
GOTO ......................................................................280
INCF .........................................................................280
INCFSZ .................................................................... 281
INFSNZ ....................................................................281
IORLW .....................................................................282
IORWF .....................................................................282
LFSR ........................................................................283
MOVF ...................................................................... 283
MOVFF .................................................................... 284
MOVLB .................................................................... 284
MOVLW ................................................................... 285
MOVWF ................................................................... 285
MULLW .................................................................... 286
MULWF .................................................................... 286
NEGF ....................................................................... 287
NOP ......................................................................... 287
Opcode Field Descriptions ....................................... 260
POP ......................................................................... 288
PUSH ....................................................................... 288
RCALL ..................................................................... 289
RESET ..................................................................... 289
RETFIE .................................................................... 290
RETLW .................................................................... 290
RETURN .................................................................. 291
RLCF ....................................................................... 291
RLNCF ..................................................................... 292
RRCF ....................................................................... 292
RRNCF .................................................................... 293
SETF ....................................................................... 293
SETF (Indexed Literal Offset mode) ........................ 307
SLEEP ..................................................................... 294
Standard Instructions ............................................... 259
SUBFWB ................................................................. 294
SUBLW .................................................................... 295
SUBWF .................................................................... 295
SUBWFB ................................................................. 296
SWAPF .................................................................... 296
TBLRD ..................................................................... 297
TBLWT .................................................................... 298
TSTFSZ ................................................................... 299
XORLW ................................................................... 299
XORWF ................................................................... 300
INTCON Registers ....................................................... 85–87
Inter-Integrated Circuit. See I
2
C.
Internal Oscillator Block ..................................................... 28
Adjustment ................................................................. 28
INTIO Modes ............................................................. 28
INTOSC Frequency Drift ............................................ 28
INTOSC Output Frequency ....................................... 28
OSCTUNE Register ................................................... 28
PLL in INTOSC Modes .............................................. 28
Internal RC Oscillator
Use with WDT .......................................................... 248
Internet Address .............................................................. 375
Interrupt Sources ............................................................. 239
A/D Conversion Complete ....................................... 217
Capture Complete (CCP) ......................................... 133
Compare Complete (CCP) ....................................... 134
Interrupt-on-Change (RB7:RB4) .............................. 100
INTn Pin ..................................................................... 95
PORTB, Interrupt-on-Change .................................... 95
TMR0 ......................................................................... 95
TMR0 Overflow ........................................................ 117
TMR1 Overflow ........................................................ 119
TMR2 to PR2 Match (PWM) ............................ 136, 141
TMR3 Overflow ................................................ 127, 129
Interrupts ............................................................................ 83
Interrupts, Flag Bits
Interrupt-on-Change (RB7:RB4) Flag (RBIF Bit) ..... 100
INTOSC, INTRC. See Internal Oscillator Block.
IORLW ............................................................................. 282
IORWF ............................................................................. 282