
PIC18F2423/2523/4423/4523
DS39755B-page 380
Preliminary
2007 Microchip Technology Inc.
High/Low-Voltage Detect .................................................247
Applications ..............................................................250
Associated Registers ...............................................251
Characteristics .........................................................341
Current Consumption ...............................................249
Effects of a Reset .....................................................251
Operation .................................................................248
During Sleep ....................................................251
Setup ........................................................................249
Start-up Time ...........................................................249
Typical Low-Voltage Application ..............................250
HLVD.
See
High/Low-Voltage Detect.
I
I/O Ports ...........................................................................105
I
2
C Mode (MSSP)
Acknowledge Sequence Timing ...............................198
Baud Rate Generator ...............................................191
Bus Collision
During a Repeated Start Condition ..................202
During a Stop Condition ...................................203
Clock Arbitration .......................................................192
Clock Stretching .......................................................184
10-Bit Slave Receive Mode (SEN = 1) .............184
10-Bit Slave Transmit Mode .............................184
7-Bit Slave Receive Mode (SEN = 1) ...............184
7-Bit Slave Transmit Mode ...............................184
Clock Synchronization and the CKP bit ...................185
Effects of a Reset .....................................................199
General Call Address Support .................................188
I
2
C Clock Rate w/BRG .............................................191
Master Mode ............................................................189
Operation .........................................................190
Reception .........................................................195
Repeated Start Condition Timing .....................194
Start Condition Timing .....................................193
Transmission ....................................................195
Multi-Master Communication, Bus Collision
and Arbitration ..................................................199
Multi-Master Mode ...................................................199
Operation .................................................................175
Read/Write Bit Information (R/W Bit) ...............175, 177
Registers ..................................................................170
Serial Clock (RC3/SCK/SCL) ...................................177
Slave Mode ..............................................................175
Addressing .......................................................175
Reception .........................................................177
Transmission ....................................................177
Sleep Operation .......................................................199
Stop Condition Timing ..............................................198
ID Locations .............................................................253, 270
INCF .................................................................................292
INCFSZ ............................................................................293
In-Circuit Debugger ..........................................................270
In-Circuit Serial Programming (ICSP) ......................253, 270
Indexed Literal Offset Addressing
and Standard PIC18 Instructions .............................318
Indexed Literal Offset Mode .............................................318
Indirect Addressing ............................................................69
INFSNZ ............................................................................293
Initialization Conditions for all Registers ......................49–52
Instruction Cycle .................................................................57
Clocking Scheme .......................................................57
Instruction Flow/Pipelining .................................................57
Instruction Set
ADDLW .................................................................... 277
ADDWF .................................................................... 277
ADDWF (Indexed Literal Offset Mode) .................... 319
ADDWFC ................................................................. 278
ANDLW .................................................................... 278
ANDWF .................................................................... 279
BC ............................................................................ 279
BCF ......................................................................... 280
BN ............................................................................ 280
BNC ......................................................................... 281
BNN ......................................................................... 281
BNOV ...................................................................... 282
BNZ ......................................................................... 282
BOV ......................................................................... 285
BRA ......................................................................... 283
BSF .......................................................................... 283
BSF (Indexed Literal Offset Mode) .......................... 319
BTFSC ..................................................................... 284
BTFSS ..................................................................... 284
BTG ......................................................................... 285
BZ ............................................................................ 286
CALL ........................................................................ 286
CLRF ....................................................................... 287
CLRWDT ................................................................. 287
COMF ...................................................................... 288
CPFSEQ .................................................................. 288
CPFSGT .................................................................. 289
CPFSLT ................................................................... 289
DAW ........................................................................ 290
DCFSNZ .................................................................. 291
DECF ....................................................................... 290
DECFSZ .................................................................. 291
Extended Instruction Set ......................................... 313
General Format ........................................................ 273
GOTO ...................................................................... 292
INCF ........................................................................ 292
INCFSZ .................................................................... 293
INFSNZ .................................................................... 293
IORLW ..................................................................... 294
IORWF ..................................................................... 294
LFSR ....................................................................... 295
MOVF ...................................................................... 295
MOVFF .................................................................... 296
MOVLB .................................................................... 296
MOVLW ................................................................... 297
MOVWF ................................................................... 297
MULLW .................................................................... 298
MULWF .................................................................... 298
NEGF ....................................................................... 299
NOP ......................................................................... 299
Opcode Field Descriptions ....................................... 272
POP ......................................................................... 300
PUSH ....................................................................... 300
RCALL ..................................................................... 301
RESET ..................................................................... 301
RETFIE .................................................................... 302
RETLW .................................................................... 302
RETURN .................................................................. 303
RLCF ....................................................................... 303
RLNCF ..................................................................... 304
RRCF ....................................................................... 304
RRNCF .................................................................... 305
SETF ....................................................................... 305