![](http://datasheet.mmic.net.cn/260000/PIC18F2410_datasheet_15942924/PIC18F2410_366.png)
PIC18F2X1X/4X1X
DS39636C-page 364
Preliminary
2007 Microchip Technology Inc.
C
C Compilers
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 ...............................................327
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 .............................................. 360
CPFSEQ .......................................................................... 274
CPFSGT .......................................................................... 275
CPFSLT ........................................................................... 275
Crystal Oscillator/Ceramic Resonator ................................ 23
Customer Change Notification Service ............................ 373
Customer Notification Service ......................................... 373
Customer Support ............................................................ 373
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 .................................................. 349
DC Characteristics ........................................................... 324
Power-Down and Supply Current ............................ 315
Supply Voltage ........................................................ 314
DCFSNZ .......................................................................... 277
DECF ............................................................................... 276
DECFSZ .......................................................................... 277
Development Support ...................................................... 307
Device Differences ........................................................... 359
Device Overview .................................................................. 7
Details on Individual Family Members ......................... 8
New Core Features ...................................................... 7
Other Special Features ................................................ 8
Device Overview (PIC18F2410/2510/2515/2610)
Features (table) ........................................................... 9
Device Overview (PIC18F4410/4510/4515/4610)
Features (table) ......................................................... 10