Datasheet
PIC18F97J94 FAMILY
DS30575A-page 680 2012 Microchip Technology Inc.
BTG ..................................................................................589
BZ .....................................................................................590
C
C Compilers
MPLAB C18 ............................................................. 626
CALL ................................................................................ 590
CALLW ............................................................................. 619
Capture (CCP Module) ..................................................... 344
CCPR4H:CCPR4L Registers ................................... 344
Pin Configuration .....................................................344
Prescaler ..................................................................345
Software Interrupt ....................................................345
Timer1/3/5/7 Mode Selection ................................... 344
Capture (ECCP Module) .................................................. 321
CCPRxH:CCPRxL Registers ................................... 321
ECCP Pin Configuration .......................................... 321
Prescaler ..................................................................321
Software Interrupt ....................................................321
Timer1/2/3/4/5/6/8 Mode Selection ..........................321
Capture/Compare/PWM (CCP) ........................................339
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................ 343
CCP6/7/8/9 Pin Assignment .................................... 344
CCPRxH Register ....................................................343
CCPRxL Register .....................................................343
Compare Mode. See Compare.
Configuration ............................................................ 343
Open-Drain Output Option ....................................... 344
Charge Time Measurement Unit (CTMU) ........................ 507
Calibrating the Module .............................................513
Effects of a Reset ..................................................... 523
Measuring Capacitance ...........................................519
Measuring Time ....................................................... 521
Module Initialization ................................................. 513
Operation ................................................................. 512
During Sleep, Idle Modes ................................. 523
Temperature Measurement .....................................522
Clock Switching
Considerations ...........................................................59
Clock Switching Operation .................................................57
Abandoning ................................................................ 62
Enabling ..................................................................... 58
Entering Sleep Mode ................................................. 62
Sequence ................................................................... 58
CLRF ................................................................................ 591
CLRWDT .......................................................................... 591
Code Examples
16 x 16 Signed Multiply Routine ..............................166
16 x 16 Unsigned Multiply Routine ..........................166
512-Byte SPI Master Mode INIT, Transfer ............... 370
8 x 8 Signed Multiply Routine .................................. 165
8 x 8 Unsigned Multiply Routine ..............................165
Changing Between Capture Prescalers ........... 321, 345
Clearing ACTVIF Bit (UIR) ....................................... 542
Computed GOTO Using an Offset Value ................. 117
Converting 1 Channel, Manual Sample and
Conversion Start .............................................. 462
Converting 1 Channel, Manual Sample Start, T
AD
Based Conversion Start ................................... 463
CTMU Capacitance Calibration Routine .................. 518
CTMU Routine for Capacitive Touch Switch ............ 520
CTMU Routine for Temperature Measurement
Using Internal Diode ........................................ 522
Current Calibration Routine .....................................516
Erasing a Flash Program Memory Row ................... 148
Fast Register Stack ................................................. 117
How to Clear RAM (Bank 1) Using Indirect
Addressing ....................................................... 136
Initializing PORTA .................................................... 201
Initializing PORTB .................................................... 203
Initializing PORTC ................................................... 205
Initializing PORTD ................................................... 207
Initializing PORTE .................................................... 209
Initializing PORTF .................................................... 211
Initializing PORTG ................................................... 213
Initializing PORTH ................................................... 215
Initializing PORTJ .................................................... 217
Initializing PORTK .................................................... 219
Initializing PORTL .................................................... 220
Loading the SSP1BUF (SSP1SR) Register ............. 356
Reading a Flash Program Memory Word ................ 147
Saving STATUS, WREG and BSR Registers in
RAM ................................................................. 195
Setting the RTCWREN Bit ....................................... 312
Setup for CTMU Calibration Routines ..................... 515
Single-Word Write to Flash Memory ........................ 151
SLEEP Assembly Syntax ........................................... 67
Writing to Flash Program Memory ........................... 150
Code Protection ............................................................... 553
COMF .............................................................................. 592
Comparator ...................................................................... 489
Analog Input Connection Considerations ................ 492
Configuration ........................................................... 493
Control ..................................................................... 493
Effects of a Reset .................................................... 496
Enable and Input Selection ...................................... 493
Enable and Output Selection ................................... 493
Interrupts ................................................................. 495
Operation ................................................................. 492
Operation During Sleep ........................................... 496
Response Time ........................................................ 492
Comparator Specifications ............................................... 638
Comparator Voltage Reference ....................................... 497
Accuracy and Error .................................................. 499
Configuring .............................................................. 497
Connection Considerations ...................................... 499
Effects of a Reset .................................................... 499
Operation During Sleep ........................................... 499
Comparator Voltage Reference Specifications ................ 638
Compare (CCP Module) .................................................. 346
CCP Pin Configuration ............................................. 346
CCPR4 Register ...................................................... 346
Software Interrupt .................................................... 346
Special Event Trigger .............................................. 346
Timer1/3/5 Mode Selection ...................................... 346
Compare (ECCP Module) ................................................ 322
CCPRx Register ...................................................... 322
Pin Configuration ..................................................... 322
Software Interrupt .................................................... 322
Special Event Trigger ...................................... 293, 322
Timer1/2/3/4/5/6/8 Mode Selection .......................... 322
Computed GOTO ............................................................. 117
Configuration Bits ............................................................ 553
Device IDs, Summary .............................................. 554
Core Features ...................................................................... 9
Easy Migration ........................................................... 10
Extended Instruction Set ........................................... 10
External Memory Bus (EMB) ..................................... 10
Memory Options ........................................................ 10
Universal Serial Bus (USB) ............................... 10