English
Language : 

PIC18F87K22 Datasheet, PDF (534/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
C
C Compilers
MPLAB C18 .............................................................. 480
CALL ................................................................................. 444
CALLW.............................................................................. 473
Capture (CCP Module)...................................................... 248
CCP Pin Configuration .............................................. 248
CCPR4H:CCPR4L Registers.................................... 248
Prescaler ................................................................... 249
Software Interrupt ..................................................... 249
Timer1/3/5/7 Mode Selection .................................... 248
Capture (ECCP Module) ................................................... 261
CCPRxH:CCPRxL Registers .................................... 261
ECCP Pin Configuration ........................................... 261
Prescaler ................................................................... 261
Software Interrupt ..................................................... 261
Timer1/2/3/4/6/8/10/12 Mode Selection .................... 261
Capture, Compare, Timer1/3/5/7
Associated Registers ................................................ 251
Capture/Compare/PWM (CCP)......................................... 243
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 247
CCP6/7/8/9 Pin Assignment ..................................... 248
CCPRxH Register ..................................................... 247
CCPRxL Register...................................................... 247
Compare Mode. See Compare.
Configuration............................................................. 247
Open-Drain Output Option ........................................ 248
Charge Time Measurement Unit (CTMU) ......................... 383
Associated Registers ................................................ 399
Calibrating the Module .............................................. 388
Creating a Delay ....................................................... 397
Effects of a Reset...................................................... 399
Measuring Capacitance with the CTMU ................... 394
Measuring Time ........................................................ 396
Module Initialization .................................................. 388
Operation .................................................................. 387
During Sleep and Idle Modes............................ 399
Clock Sources ..................................................................... 46
Default System Clock on Reset .................................. 47
Selection ..................................................................... 46
CLRF................................................................................. 445
CLRWDT........................................................................... 445
Code Examples
16 x 16 Signed Multiply Routine ............................... 138
16 x 16 Unsigned Multiply Routine ........................... 138
8 x 8 Signed Multiply Routine ................................... 137
8 x 8 Unsigned Multiply Routine ............................... 137
Capacitance Calibration Routine .............................. 393
Changing Between Capture Prescalers ............ 249, 261
Computed GOTO Using an Offset Value .................... 89
Current Calibration Routine ...................................... 391
Data EEPROM Read ................................................ 134
Data EEPROM Refresh Routine ............................... 135
Data EEPROM Write ................................................ 134
Erasing a Flash Program Memory Row .................... 114
Fast Register Stack..................................................... 89
How to Clear RAM (Bank 1) Using
Indirect Addressing ........................................... 103
Initializing PORTA..................................................... 168
Initializing PORTB..................................................... 170
Initializing PORTC..................................................... 172
Initializing PORTD..................................................... 174
Initializing PORTE..................................................... 176
Initializing PORTF ..................................................... 179
Initializing PORTG .................................................... 181
Initializing PORTH .................................................... 183
Initializing PORTJ ..................................................... 185
Loading the SSP1BUF (SSP1SR) Register.............. 282
Reading a Flash Program Memory Word ................. 113
Routine for Capacitive Touch Switch........................ 395
Routine for Temperature Measurement
Using Internal Diode ......................................... 398
Saving STATUS, WREG and BSR
Registers in RAM.............................................. 161
Setting the RTCWREN Bit ........................................ 237
Setup for CTMU Calibration Routines ...................... 390
Ultra Low-Power Wake-up Initialization ...................... 68
Writing to Flash Program Memory .................... 117–118
Code Protection ................................................................ 401
COMF ............................................................................... 446
Comparator....................................................................... 365
Analog Input Connection Considerations ................. 368
Associated Registers ................................................ 372
Configuration ............................................................ 369
Control ...................................................................... 369
Effects of a Reset ..................................................... 372
Enable and Input Selection....................................... 369
Enable and Output Selection .................................... 369
Interrupts .................................................................. 371
Operation .................................................................. 368
Operation During Sleep ............................................ 372
Response Time......................................................... 368
Comparator Specifications................................................ 498
Comparator Voltage Reference ........................................ 373
Accuracy and Error ................................................... 374
Associated Registers ................................................ 375
Configuring ............................................................... 373
Connection Considerations....................................... 374
Effects of a Reset ..................................................... 374
Operation During Sleep ............................................ 374
Compare (CCP Module) ................................................... 250
CCP Pin Configuration.............................................. 250
CCPR4 Register ....................................................... 250
Software Interrupt ..................................................... 250
Special Event Trigger ............................................... 250
Timer1/3/5/7 Mode Selection.................................... 250
Compare (ECCP Module)................................................. 262
CCPRx Register ....................................................... 262
Pin Configuration ...................................................... 262
Software Interrupt ..................................................... 262
Special Event Trigger ....................................... 219, 262
Timer1/Timer3 Mode Selection................................. 262
Computed GOTO................................................................ 89
Configuration Bits ............................................................. 401
Configuration Mismatch (CM) Reset................................... 74
Configuration Register Protection..................................... 427
Core Features
Easy Migration ............................................................ 10
Extended Instruction Set .............................................. 9
External Memory Bus ................................................... 9
Memory Options ........................................................... 9
nanoWatt Technology................................................... 9
Oscillator Options and Features ................................... 9
CPFSEQ ........................................................................... 446
CPFSGT ........................................................................... 447
CPFSLT ............................................................................ 447
Crystal Oscillator/Ceramic Resonator................................. 48
Customer Change Notification Service............................. 544
Customer Notification Service .......................................... 544
Customer Support............................................................. 544
DS39960B-page 534
Preliminary
 2010 Microchip Technology Inc.