PIC18F2X1X/4X1X
DS39636C-page 366 Preliminary © 2007 Microchip Technology Inc.
Master Mode ............................................................ 175
Operation .........................................................176
Reception ......................................................... 181
Repeated Start Timing ..................................... 180
Start Condition Timing ..................................... 179
Transmission ....................................................181
Multi-Master Communication, Bus Collision
and Arbitration .................................................. 185
Multi-Master Mode ...................................................185
Operation ................................................................. 164
Read/Write Bit Information (R/W Bit) ............... 164, 165
Registers ..................................................................160
Serial Clock (RC3/SCK/SCL) ...................................165
Slave Mode ..............................................................164
Addressing ....................................................... 164
Reception ......................................................... 165
Transmission ....................................................165
Sleep Operation ....................................................... 185
Stop Condition Timing .............................................. 184
ID Locations ............................................................. 237, 255
INCF ................................................................................. 278
INCFSZ ............................................................................ 279
In-Circuit Debugger .......................................................... 255
In-Circuit Serial Programming (ICSP) ...................... 237, 255
Indexed Literal Offset Addressing
and Standard PIC18 Instructions ............................. 304
Indexed Literal Offset Mode ....................................... 71, 304
Indirect Addressing ............................................................ 70
INFSNZ ............................................................................ 279
Initialization Conditions for all Registers ...................... 49–52
Instruction Cycle ................................................................. 57
Clocking Scheme .......................................................57
Instruction Flow/Pipelining .................................................57
Instruction Set
ADDLW ....................................................................263
ADDWF ....................................................................263
ADDWF (Indexed Literal Offset mode) .................... 305
ADDWFC ................................................................. 264
ANDLW ....................................................................264
ANDWF ....................................................................265
BC ............................................................................265
BCF .......................................................................... 266
BN ............................................................................266
BNC .........................................................................267
BNN .........................................................................267
BNOV .......................................................................268
BNZ .......................................................................... 268
BOV .........................................................................271
BRA .......................................................................... 269
BSF .......................................................................... 269
BSF (Indexed Literal Offset mode) .......................... 305
BTFSC ..................................................................... 270
BTFSS ..................................................................... 270
BTG .......................................................................... 271
BZ ............................................................................272
CALL ........................................................................272
CLRF ........................................................................273
CLRWDT ..................................................................273
COMF ......................................................................274
CPFSEQ ..................................................................274
CPFSGT ..................................................................275
CPFSLT ...................................................................275
DAW .........................................................................276
DCFSNZ ..................................................................277
DECF ....................................................................... 276
DECFSZ .................................................................. 277
Firmware Instructions .............................................. 257
General Format ........................................................ 259
GOTO ...................................................................... 278
INCF ........................................................................ 278
INCFSZ .................................................................... 279
INFSNZ .................................................................... 279
IORLW ..................................................................... 280
IORWF ..................................................................... 280
LFSR ....................................................................... 281
MOVF ...................................................................... 281
MOVFF .................................................................... 282
MOVLB .................................................................... 282
MOVLW ................................................................... 283
MOVWF ................................................................... 283
MULLW .................................................................... 284
MULWF .................................................................... 284
NEGF ....................................................................... 285
NOP ......................................................................... 285
Opcode Field Descriptions ....................................... 258
POP ......................................................................... 286
PUSH ....................................................................... 286
RCALL ..................................................................... 287
RESET ..................................................................... 287
RETFIE .................................................................... 288
RETLW .................................................................... 288
RETURN .................................................................. 289
RLCF ....................................................................... 289
RLNCF ..................................................................... 290
RRCF ....................................................................... 290
RRNCF .................................................................... 291
SETF ....................................................................... 291
SETF (Indexed Literal Offset mode) ........................ 305
SLEEP ..................................................................... 292
Standard Instructions ............................................... 257
SUBFWB ................................................................. 292
SUBLW .................................................................... 293
SUBWF .................................................................... 293
SUBWFB ................................................................. 294
SWAPF .................................................................... 294
TBLRD ..................................................................... 295
TBLWT .................................................................... 296
TSTFSZ ................................................................... 297
XORLW ................................................................... 297
XORWF ................................................................... 298
INTCON Registers ....................................................... 83–85
Inter-Integrated Circuit.
See
I2C.
Internal Oscillator Block ..................................................... 26
Adjustment ................................................................. 26
INTIO Modes ............................................................. 26
INTOSC Frequency Drift ............................................ 26
INTOSC Output Frequency ....................................... 26
OSCTUNE Register ................................................... 26
PLL in INTOSC Modes .............................................. 26
Internal RC Oscillator
Use with WDT .......................................................... 246
Internet Address .............................................................. 373
Interrupt Sources ............................................................. 237
A/D Conversion Complete ....................................... 215
Capture Complete (CCP) ......................................... 131
Compare Complete (CCP) ....................................... 132
Interrupt-on-Change (RB7:RB4) ................................ 98
INTn Pin ..................................................................... 93
PORTB, Interrupt-on-Change .................................... 93
TMR0 ......................................................................... 93