Datasheet

PIC18F6310/6410/8310/8410
DS39635C-page 402 2010 Microchip Technology Inc.
I
I/O Ports ........................................................................... 125
I
2
C Mode (MSSP)
Acknowledge Sequence Timing ............................... 210
Associated Registers ...............................................216
Baud Rate Generator ............................................... 203
Bus Collision
During a Repeated Start Condition .................. 214
During a Start Condition ................................... 212
During a Stop Condition ................................... 215
Clock Arbitration .......................................................204
Clock Stretching ....................................................... 196
10-Bit Slave Receive Mode (SEN = 1) ............. 196
7-Bit Slave Receive Mode (SEN = 1) ............... 196
Effect of a Reset ...................................................... 211
General Call Address Support ................................. 200
I
2
C Clock Rate w/BRG ............................................. 203
Master Mode ............................................................ 201
Operation ......................................................... 202
Reception ......................................................... 207
Repeated Start Condition Timing ..................... 206
Start Condition ................................................. 205
Transmission .................................................... 207
Transmit Sequence .......................................... 202
Multi-Master Communication, Bus Collision
and Arbitration .................................................. 211
Multi-Master Mode ................................................... 211
Operation .................................................................190
Read/Write Bit Information (R/W
Bit) ............... 190, 191
Registers .................................................................. 186
Serial Clock (RC3/SCK/SCL) ................................... 191
Slave Mode ..............................................................190
Addressing ....................................................... 190
Reception ......................................................... 191
Sleep Operation ....................................................... 211
Stop Condition Timing ..............................................210
Transmission ............................................................ 191
ID Locations ............................................................. 281, 296
Idle Modes
PRI_IDLE ...................................................................51
INCF .................................................................................318
INCFSZ ............................................................................ 319
In-Circuit Debugger .......................................................... 296
In-Circuit Serial Programming (ICSP) ...................... 281, 296
Indexed Literal Offset Addressing
and Standard PIC18 Instructions ............................. 344
Indexed Literal Offset Mode ....................................... 86, 344
Effect on Standard PIC18 Instructions ....................... 86
Mapping the Access Bank ......................................... 88
Indirect Addressing ............................................................ 85
INFSNZ ............................................................................319
Initialization Conditions for all Registers ...................... 63–66
Instruction Cycle ................................................................. 73
Clocking Scheme .......................................................73
Instruction Flow/Pipelining ................................................. 73
Instruction Set .................................................................. 297
ADDLW .................................................................... 303
ADDWF .................................................................... 303
ADDWF (Indexed Literal Offset mode) .................... 345
ADDWFC .................................................................304
ANDLW .................................................................... 304
ANDWF .................................................................... 305
BC ............................................................................ 305
BCF .......................................................................... 306
BN ............................................................................ 306
BNC ......................................................................... 307
BNN ......................................................................... 307
BNOV ...................................................................... 308
BNZ ......................................................................... 308
BOV ......................................................................... 311
BRA ......................................................................... 309
BSF .......................................................................... 309
BSF (Indexed Literal Offset mode) .......................... 345
BTFSC ..................................................................... 310
BTFSS ..................................................................... 310
BTG ......................................................................... 311
BZ ............................................................................ 312
CALL ........................................................................ 312
CLRF ....................................................................... 313
CLRWDT ................................................................. 313
COMF ...................................................................... 314
CPFSEQ .................................................................. 314
CPFSGT .................................................................. 315
CPFSLT ................................................................... 315
DAW ........................................................................ 316
DCFSNZ .................................................................. 317
DECF ....................................................................... 316
DECFSZ .................................................................. 317
Extended Instructions .............................................. 339
Syntax .............................................................. 339
General Format ........................................................ 299
GOTO ...................................................................... 318
INCF ........................................................................ 318
INCFSZ .................................................................... 319
INFSNZ .................................................................... 319
IORLW ..................................................................... 320
IORWF ..................................................................... 320
LFSR ....................................................................... 321
MOVF ...................................................................... 321
MOVFF .................................................................... 322
MOVLB .................................................................... 322
MOVLW ................................................................... 323
MOVWF ................................................................... 323
MULLW .................................................................... 324
MULWF .................................................................... 324
NEGF ....................................................................... 325
NOP ......................................................................... 325
Opcode Field Descriptions ....................................... 298
POP ......................................................................... 326
PUSH ....................................................................... 326
RCALL ..................................................................... 327
RESET ..................................................................... 327
RETFIE .................................................................... 328
RETLW .................................................................... 328
RETURN .................................................................. 329
RLCF ....................................................................... 329
RLNCF ..................................................................... 330
RRCF ....................................................................... 330
RRNCF .................................................................... 331
SETF ....................................................................... 331
SETF (Indexed Literal Offset mode) ........................ 345
SLEEP ..................................................................... 332
SUBFWB ................................................................. 332
SUBLW .................................................................... 333
SUBWF .................................................................... 333
SUBWFB ................................................................. 334
SWAPF .................................................................... 334