English
Language : 

PIC18F4321 Datasheet, PDF (386/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F4321 FAMILY
H
Hardware Multiplier ............................................................ 89
Introduction ................................................................ 89
Operation ................................................................... 89
Performance Comparison .......................................... 89
High/Low-Voltage Detect ................................................. 247
Applications .............................................................. 250
Associated Registers ............................................... 251
Characteristics ......................................................... 344
Current Consumption ............................................... 249
Effects of a Reset ..................................................... 251
Operation ................................................................. 248
During Sleep .................................................... 251
Setup ........................................................................ 249
Start-up Time ........................................................... 249
Typical Application ................................................... 250
HLVD. See High/Low-Voltage Detect.
I
I/O Ports ........................................................................... 105
I2C Mode (MSSP)
Acknowledge Sequence Timing ............................... 198
Associated Registers ............................................... 204
Baud Rate Generator ............................................... 191
Bus Collision
During a Repeated Start Condition .................. 202
During a Start Condition ................................... 200
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
I2C 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
Read/Write Bit Information (R/W Bit) ....................... 177
Registers .................................................................. 170
Serial Clock (RC3/SCK/SCL) ................................... 177
Slave Mode .............................................................. 175
Address Masking ............................................. 176
Addressing ....................................................... 175
Reception ......................................................... 177
Transmission .................................................... 177
Sleep Operation ....................................................... 199
Stop Condition Timing .............................................. 198
ID Locations ............................................................. 253, 271
INCF ................................................................................. 294
INCFSZ ............................................................................ 295
In-Circuit Debugger .......................................................... 271
In-Circuit Serial Programming (ICSP) ...................... 253, 271
Indexed Literal Offset Addressing
and Standard PIC18 Instructions ............................. 320
Indexed Literal Offset Mode ............................................. 320
Indirect Addressing ............................................................ 68
INFSNZ ............................................................................ 295
Initialization Conditions for all Registers ...................... 49–52
Instruction Cycle ................................................................ 57
Clocking Scheme ....................................................... 57
Instruction Flow/Pipelining ................................................. 57
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
DS39689E-page 384
Preliminary
© 2007 Microchip Technology Inc.