English
Language : 

PIC18F87K90 Datasheet, PDF (552/566 Pages) Microchip Technology – 64/80-Pin, High-Performance Microcontrollers with LCD Driver and nanoWatt XLP Technology
PIC18F87K90 FAMILY
BSF ................................................................................... 461
BTFSC .............................................................................. 462
BTFSS............................................................................... 462
BTG................................................................................... 463
BZ...................................................................................... 464
C
C Compilers
MPLAB C18 .............................................................. 500
CALL ................................................................................. 464
CALLW.............................................................................. 493
Capture (CCP Module)...................................................... 240
Associated Registers ................................................ 244
CCP Pin Configuration .............................................. 240
CCPR4H:CCPR4L Registers.................................... 240
Prescaler ................................................................... 241
Software Interrupt ..................................................... 241
Timer1/3/5/7 Mode Selection .................................... 240
Capture (ECCP Module) ................................................... 253
CCPRxH:CCPRxL Registers .................................... 253
ECCP Pin Configuration ........................................... 253
Prescaler ................................................................... 253
Software Interrupt ..................................................... 253
Timer1/Timer3 Mode Selection ................................. 253
Capture/Compare/PWM (CCP)......................................... 235
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 239
CCP6/7/8/9 Pin Assignment ..................................... 240
CCPRxH Register ..................................................... 239
CCPRxL Register...................................................... 239
Compare Mode. See Compare.
Configuration............................................................. 239
Open-Drain Output Option ........................................ 240
Charge Time Measurement Unit (CTMU) ......................... 405
Associated Registers ................................................ 421
Calibrating the Module .............................................. 410
Creating a Delay ....................................................... 419
Effects of a Reset...................................................... 421
Measuring Capacitance with the CTMU ................... 416
Measuring Temperature with Use ............................. 420
Measuring Time ........................................................ 418
Module Initialization .................................................. 410
Operation .................................................................. 409
During Sleep and Idle Modes............................ 421
Clock Sources ..................................................................... 43
Default System Clock on Reset .................................. 44
Selection Using OSCCON Register ............................ 44
CLRF................................................................................. 465
CLRWDT........................................................................... 465
Code Examples
16 x 16 Signed Multiply Routine ............................... 126
16 x 16 Unsigned Multiply Routine ........................... 126
8 x 8 Signed Multiply Routine ................................... 125
8 x 8 Unsigned Multiply Routine ............................... 125
Capacitance Calibration Routine .............................. 415
Changing Between Capture Prescalers ............ 241, 253
Computed GOTO Using an Offset Value .................... 87
Current Calibration Routine ...................................... 413
Data EEPROM Read ................................................ 121
Data EEPROM Refresh Routine ............................... 122
Data EEPROM Write ................................................ 121
Erasing a Flash Program Memory Row .................... 114
Fast Register Stack..................................................... 87
How to Clear RAM (Bank 1) Using Indirect
Addressing ........................................................ 102
Initializing PORTA..................................................... 155
Initializing PORTB..................................................... 158
Initializing PORTC .................................................... 161
Initializing PORTD .................................................... 164
Initializing PORTE..................................................... 167
Initializing PORTF..................................................... 170
Initializing PORTG .................................................... 173
Initializing PORTH .................................................... 175
Initializing PORTJ ..................................................... 178
Loading the SSP1BUF (SSP1SR) Register.............. 304
Reading a Flash Program Memory Word ................. 113
Routine for Capacitive Touch Switch........................ 417
Routine for Temperature Measurement
Using Internal Diode ......................................... 420
Saving STATUS, WREG and BSR
Registers in RAM.............................................. 149
Setting the RTCWREN Bit ........................................ 229
Setup for CTMU Calibration Routines ...................... 412
Writing to Flash Program Memory .................... 116–117
Code Protection ........................................................ 423, 445
Associated Registers ................................................ 446
Data EEPROM.......................................................... 448
Program Memory ...................................................... 446
COMF ............................................................................... 466
Comparator....................................................................... 387
Analog Input Connection Considerations ................. 390
Associated Registers ................................................ 394
Control and Configuration......................................... 391
Effects of a Reset ..................................................... 394
Enable and Input Selection....................................... 391
Enable and Output Selection .................................... 391
Interrupts .................................................................. 393
Operation .................................................................. 390
Operation During Sleep ............................................ 394
Response Time......................................................... 390
Comparator Specifications................................................ 518
Comparator Voltage Reference ........................................ 395
Accuracy and Error ................................................... 396
Associated Registers ................................................ 397
Configuring ............................................................... 395
Connection Considerations....................................... 396
Effects of a Reset ..................................................... 396
Operation During Sleep ............................................ 396
Compare (CCP Module) ................................................... 242
Associated Registers ................................................ 244
CCP Pin Configuration.............................................. 242
CCPR4 Register ....................................................... 242
Software Interrupt ..................................................... 242
Special Event Trigger ............................................... 242
Timer1/3/5/7 Mode Selection.................................... 242
Compare (ECCP Module)................................................. 254
CCPRx Register ....................................................... 254
Pin Configuration ...................................................... 254
Software Interrupt ..................................................... 254
Special Event Trigger ....................................... 208, 254
Timer1/Timer3 Mode Selection................................. 254
Computed GOTO................................................................ 87
Configuration Bits ............................................................. 423
Configuration Mismatch (CM) Reset................................... 70
Configuration Register Protection..................................... 448
Core Features
Easy Migration .............................................................. 9
Extended Instruction Set .............................................. 9
Memory Options ........................................................... 9
nanoWatt Technology................................................... 9
Oscillator Options and Features ................................... 9
DS39957B-page 552
Preliminary
 2010 Microchip Technology Inc.