English
Language : 

PIC18F2525_08 Datasheet, PDF (400/412 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2525/2620/4525/4620
C
C Compilers
MPLAB C18 ............................................................. 318
MPLAB C30 ............................................................. 318
CALL ................................................................................ 282
CALLW ............................................................................. 311
Capture (CCP Module) ..................................................... 141
Associated Registers ............................................... 143
CCP Pin Configuration ............................................. 141
CCPRxH:CCPRxL Registers ................................... 141
Prescaler .................................................................. 141
Software Interrupt .................................................... 141
Timer1/Timer3 Mode Selection ................................ 141
Capture (ECCP Module) .................................................. 148
Capture/Compare/PWM (CCP) ........................................ 139
Capture Mode. See Capture.
CCPRxH Register .................................................... 140
CCPRxL Register ..................................................... 140
Compare Mode. See Compare.
Interaction of Two CCP Modules ............................. 140
Module Configuration ............................................... 140
Pin Assignment ........................................................ 140
Timer Resources ...................................................... 140
Clock Sources .................................................................... 28
Selecting the 31 kHz Source ...................................... 29
Selection Using OSCCON Register ........................... 29
CLRF ................................................................................ 283
CLRWDT .......................................................................... 283
Code Examples
16 x 16 Signed Multiply Routine ................................ 90
16 x 16 Unsigned Multiply Routine ............................ 90
8 x 8 Signed Multiply Routine .................................... 89
8 x 8 Unsigned Multiply Routine ................................ 89
Changing Between Capture Prescalers ................... 141
Computed GOTO Using an Offset Value ................... 56
Data EEPROM Read ................................................. 75
Data EEPROM Refresh Routine ................................ 76
Data EEPROM Write ................................................. 75
Erasing a Flash Program Memory Row ..................... 84
Fast Register Stack .................................................... 56
How to Clear RAM (Bank 1) Using
Indirect Addressing ............................................ 67
Implementing a Real-Time Clock
Using a Timer1 Interrupt Service ..................... 131
Initializing PORTA ...................................................... 91
Initializing PORTB ...................................................... 94
Initializing PORTC ...................................................... 97
Initializing PORTD .................................................... 100
Initializing PORTE .................................................... 103
Loading the SSPBUF (SSPSR) Register ................. 164
Reading a Flash Program Memory Word .................. 83
Saving STATUS, WREG and
BSR Registers in RAM ..................................... 121
Writing to Flash Program Memory ....................... 86–87
Code Protection ....................................................... 249, 263
Associated Registers ............................................... 263
Configuration Register Protection ............................ 266
Data EEPROM ......................................................... 266
Program Memory ..................................................... 264
COMF ............................................................................... 284
Comparator ...................................................................... 233
Analog Input Connection Considerations ................. 237
Associated Registers ............................................... 237
Configuration ............................................................ 234
Effects of a Reset ..................................................... 236
DS39626E-page 398
Interrupts ................................................................. 236
Operation ................................................................. 235
Operation During Sleep ........................................... 236
Outputs .................................................................... 235
Reference ................................................................ 235
External Signal ................................................ 235
Internal Signal .................................................. 235
Response Time ........................................................ 235
Comparator Specifications ............................................... 338
Comparator Voltage Reference ....................................... 239
Accuracy and Error .................................................. 240
Associated Registers ............................................... 241
Configuring .............................................................. 239
Connection Considerations ...................................... 240
Effects of a Reset .................................................... 240
Operation During Sleep ........................................... 240
Compare (CCP Module) .................................................. 142
Associated Registers ............................................... 143
CCPRx Register ...................................................... 142
Pin Configuration ..................................................... 142
Software Interrupt .................................................... 142
Special Event Trigger .............................. 137, 142, 232
Timer1/Timer3 Mode Selection ................................ 142
Compare (ECCP Module) ................................................ 148
Special Event Trigger .............................................. 148
Computed GOTO ............................................................... 56
Configuration Bits ............................................................ 249
Context Saving During Interrupts ..................................... 121
Conversion Considerations .............................................. 395
CPFSEQ .......................................................................... 284
CPFSGT .......................................................................... 285
CPFSLT ........................................................................... 285
Crystal Oscillator/Ceramic Resonator ................................ 23
Customer Change Notification Service ............................ 407
Customer Notification Service ......................................... 407
Customer Support ............................................................ 407
D
Data Addressing Modes .................................................... 67
Comparing Options with the Extended
Instruction Set Enabled ..................................... 70
Direct ......................................................................... 67
Indexed Literal Offset ................................................ 69
Instructions Affected .......................................... 69
Indirect ....................................................................... 67
Inherent and Literal .................................................... 67
Data EEPROM Memory ..................................................... 73
Associated Registers ................................................. 77
EEADR and EEADRH Registers ............................... 73
EECON1 and EECON2 Registers ............................. 73
Operation During Code-Protect ................................. 76
Protection Against Spurious Write ............................. 76
Reading ..................................................................... 75
Using ......................................................................... 76
Write Verify ................................................................ 75
Writing ....................................................................... 75
Data Memory ..................................................................... 59
Access Bank .............................................................. 61
and the Extended Instruction Set .............................. 69
Bank Select Register (BSR) ...................................... 59
General Purpose Registers ....................................... 61
Map for PIC18FX525/X620 ........................................ 60
Special Function Registers ........................................ 62
DAW ................................................................................ 286
DC and AC Characteristics
Graphs and Tables .................................................. 361
© 2008 Microchip Technology Inc.