English
Language : 

PIC18F2X1X Datasheet, PDF (368/380 Pages) Microchip Technology – 28/40/44-PIN FLASH MICROCONTROLLERS WITH 10-BIT A/D AND NANO WATT TECHNOLOGY
PIC18F2X1X/4X1X
C
C Compilers
MPLAB C17 ............................................................. 308
MPLAB C18 ............................................................. 308
MPLAB C30 ............................................................. 308
CALL ................................................................................ 272
CALLW ............................................................................. 301
Capture (CCP Module) ..................................................... 131
Associated Registers ............................................... 133
CCP Pin Configuration ............................................. 131
CCPRxH:CCPRxL Registers ................................... 131
Prescaler .................................................................. 131
Software Interrupt .................................................... 131
Timer1/Timer3 Mode Selection ................................ 131
Capture (ECCP Module) .................................................. 138
Capture/Compare/PWM (CCP) ........................................ 129
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................ 130
CCPRxH Register .................................................... 130
CCPRxL Register ..................................................... 130
Compare Mode. See Compare.
Interaction of Two CCP Modules ............................. 130
Module Configuration ............................................... 130
Clock Sources .................................................................... 28
Selecting the 31 kHz Source ...................................... 29
Selection Using OSCCON Register ........................... 29
CLRF ................................................................................ 273
CLRWDT .......................................................................... 273
Code Examples
16 x 16 Signed Multiply Routine ................................ 80
16 x 16 Unsigned Multiply Routine ............................ 80
8 x 8 Signed Multiply Routine .................................... 79
8 x 8 Unsigned Multiply Routine ................................ 79
Changing Between Capture Prescalers ................... 131
Computed GOTO Using an Offset Value ................... 56
Fast Register Stack .................................................... 56
How to Clear RAM (Bank 1)
Using Indirect Addressing .................................. 69
Implementing a Real-Time Clock
Using a Timer1 Interrupt Service ..................... 121
Initializing PORTA ...................................................... 95
Initializing PORTB ...................................................... 98
Initializing PORTC .................................................... 101
Initializing PORTD .................................................... 104
Initializing PORTE .................................................... 107
Loading the SSPBUF (SSPSR) Register ................. 154
Reading a Flash Program Memory Word .................. 77
Saving Status, WREG and
BSR Registers in RAM ....................................... 93
Code Protection ............................................................... 237
COMF ............................................................................... 274
Comparator ...................................................................... 221
Analog Input Connection Considerations ................. 225
Associated Registers ............................................... 225
Configuration ............................................................ 222
Effects of a Reset ..................................................... 224
Interrupts .................................................................. 224
Operation ................................................................. 223
Operation During Sleep ........................................... 224
Outputs .................................................................... 223
Reference ................................................................ 223
External Signal ................................................. 223
Internal Signal .................................................. 223
Response Time ........................................................ 223
Comparator Specifications ............................................... 329
Comparator Voltage Reference ....................................... 227
Accuracy and Error .................................................. 228
Associated Registers ............................................... 229
Configuring .............................................................. 227
Connection Considerations ...................................... 228
Effects of a Reset .................................................... 228
Operation During Sleep ........................................... 228
Compare (CCP Module) .................................................. 132
Associated Registers ............................................... 133
CCPRx Register ...................................................... 132
Pin Configuration ..................................................... 132
Software Interrupt .................................................... 132
Special Event Trigger .............................. 127, 132, 220
Timer1/Timer3 Mode Selection ................................ 132
Compare (ECCP Module) ................................................ 138
Special Event Trigger .............................................. 138
Computed GOTO ............................................................... 56
Configuration Bits ............................................................ 237
Configuration Register Protection .................................... 255
Context Saving During Interrupts ....................................... 93
Conversion Considerations .............................................. 362
CPFSEQ .......................................................................... 274
CPFSGT .......................................................................... 275
CPFSLT ........................................................................... 275
Crystal Oscillator/Ceramic Resonator ................................ 23
D
Data Addressing Modes .................................................... 69
Comparing Addressing Modes with
the Extended Instruction Set Enabled ............... 72
Direct ......................................................................... 69
Indexed Literal Offset ................................................ 71
Indirect ....................................................................... 69
Inherent and Literal .................................................... 69
Data Memory ..................................................................... 59
Access Bank .............................................................. 63
and the Extended Instruction Set .............................. 71
Bank Select Register (BSR) ...................................... 59
General Purpose Registers ....................................... 63
Map for PIC18F2410/4410 ........................................ 60
Map for PIC18F2510/4510 ........................................ 61
Map for PIC18F2515/2610/4515/4610 ...................... 62
Special Function Registers ........................................ 64
DAW ................................................................................ 276
DC and AC Characteristics
Graphs and Tables .................................................. 351
DC Characteristics ........................................................... 326
Power-Down and Supply Current ............................ 317
Supply Voltage ........................................................ 316
DCFSNZ .......................................................................... 277
DECF ............................................................................... 276
DECFSZ .......................................................................... 277
Demonstration Boards
PICDEM 1 ................................................................ 310
PICDEM 17 .............................................................. 311
PICDEM 18R ........................................................... 311
PICDEM 2 Plus ........................................................ 310
PICDEM 3 ................................................................ 310
PICDEM 4 ................................................................ 310
PICDEM LIN ............................................................ 311
PICDEM USB .......................................................... 311
PICDEM.net Internet/Ethernet ................................. 310
Development Support ...................................................... 307
Device Differences ........................................................... 361
DS39636A-page 366
Preliminary
 2004 Microchip Technology Inc.