English
Language : 

PIC18F2X1X Datasheet, PDF (370/380 Pages) Microchip Technology – 28/40/44-PIN FLASH MICROCONTROLLERS WITH 10-BIT A/D AND NANO WATT TECHNOLOGY
PIC18F2X1X/4X1X
Clock Synchronization and the
CKP bit (SEN = 1) ............................................ 171
Effects of a Reset ..................................................... 185
General Call Address Support ................................. 174
I2C Clock Rate w/BRG ............................................. 177
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
DS39636A-page 368
Preliminary
 2004 Microchip Technology Inc.