Datasheet

PIC18(L)F1XK22
DS41365E-page 394 2009-2011 Microchip Technology Inc.
Acknowledge Sequence Timing................................ 168
Baud Rate Generator................................................ 161
Bus Collision
During a Repeated Start Condition................... 172
During a Stop Condition.................................... 173
Clock Arbitration........................................................162
Clock Stretching........................................................ 154
10-Bit Slave Receive Mode (SEN = 1).............. 154
10-Bit Slave Transmit Mode..............................154
7-Bit Slave Receive Mode (SEN = 1)................ 154
7-Bit Slave Transmit Mode................................ 154
Clock Synchronization and the CKP bit (SEN = 1) ... 155
Effects of a Reset......................................................169
General Call Address Support .................................. 158
I
2
C Clock Rate w/BRG..............................................161
Master Mode ............................................................. 159
Operation .......................................................... 160
Reception.......................................................... 165
Repeated Start Condition Timing ...................... 164
Start Condition Timing ...................................... 163
Transmission..................................................... 165
Multi-Master Communication, Bus Collision and
Arbitration..........................................................169
Multi-Master Mode .................................................... 169
Operation ..................................................................146
Read/Write Bit Information (R/W
Bit) ................ 146, 147
Registers................................................................... 142
Serial Clock (RC3/SCK/SCL).................................... 147
Slave Mode ...............................................................146
Addressing ........................................................ 146
Reception.......................................................... 147
Transmission..................................................... 147
Sleep Operation ........................................................ 169
Stop Condition Timing...............................................168
ID Locations ..............................................................257, 272
INCF..................................................................................294
INCFSZ ............................................................................. 295
In-Circuit Debugger ........................................................... 272
In-Circuit Serial Programming (ICSP) ....................... 257, 272
Indexed Literal Offset Addressing
and Standard PIC18 Instructions .............................. 320
Indexed Literal Offset Mode .............................................. 320
Indirect Addressing .............................................................42
INFSNZ .............................................................................295
Initialization Conditions for all Registers ........................... 253
Instruction Cycle.................................................................. 29
Clocking Scheme ........................................................29
Instruction Flow/Pipelining .................................................. 29
Instruction Set ................................................................... 273
ADDLW .....................................................................279
ADDWF.....................................................................279
ADDWF (Indexed Literal Offset Mode) ..................... 321
ADDWFC ..................................................................280
ANDLW .....................................................................280
ANDWF.....................................................................281
BC ............................................................................. 281
BCF...........................................................................282
BN ............................................................................. 282
BNC ..........................................................................283
BNN ..........................................................................283
BNOV........................................................................ 284
BNZ...........................................................................284
BOV ..........................................................................287
BRA........................................................................... 285
BSF ........................................................................... 285
BSF (Indexed Literal Offset Mode) ........................... 321
BTFSC...................................................................... 286
BTFSS ...................................................................... 286
BTG .......................................................................... 287
BZ ............................................................................. 288
CALL......................................................................... 288
CLRF ........................................................................ 289
CLRWDT .................................................................. 289
COMF ....................................................................... 290
CPFSEQ................................................................... 290
CPFSGT ................................................................... 291
CPFSLT .................................................................... 291
DAW ......................................................................... 292
DCFSNZ ................................................................... 293
DECF ........................................................................ 292
DECFSZ ................................................................... 293
Extended Instruction Set .......................................... 315
General Format......................................................... 275
GOTO ....................................................................... 294
INCF ......................................................................... 294
INCFSZ..................................................................... 295
INFSNZ..................................................................... 295
IORLW...................................................................... 296
IORWF...................................................................... 296
LFSR ........................................................................ 297
MOVF ....................................................................... 297
MOVFF ..................................................................... 298
MOVLB ..................................................................... 298
MOVLW .................................................................... 299
MOVWF.................................................................... 299
MULLW..................................................................... 300
MULWF..................................................................... 300
NEGF........................................................................ 301
NOP.......................................................................... 301
Opcode Field Descriptions........................................ 274
POP .......................................................................... 302
PUSH........................................................................ 302
RCALL ...................................................................... 303
RESET...................................................................... 303
RETFIE ..................................................................... 304
RETLW ..................................................................... 304
RETURN................................................................... 305
RLCF ........................................................................ 305
RLNCF...................................................................... 306
RRCF........................................................................ 306
RRNCF ..................................................................... 307
SETF ........................................................................ 307
SETF (Indexed Literal Offset Mode) ......................... 321
SLEEP ...................................................................... 308
SUBFWB .................................................................. 308
SUBLW ..................................................................... 309
SUBWF..................................................................... 309
SUBWFB .................................................................. 310
SWAPF ..................................................................... 310
TBLRD...................................................................... 311
TBLWT ..................................................................... 312
TSTFSZ .................................................................... 313
XORLW .................................................................... 313
XORWF .................................................................... 314
INTCON Register................................................................ 65
INTCON Registers........................................................ 65–67
INTCON2 Register.............................................................. 66
INTCON3 Register.............................................................. 67
Inter-Integrated Circuit. See I
2
C.
Internal Oscillator Block