Datasheet

Table Of Contents
 2010 Microchip Technology Inc. Preliminary DS39979A-page 467
PIC18F87J72 FAMILY
Implementing a Real-Time Clock Using a
Timer1 Interrupt Service ................................... 131
Initializing PORTA..................................................... 106
Initializing PORTB..................................................... 108
Initializing PORTC..................................................... 111
Initializing PORTD..................................................... 114
Initializing PORTE..................................................... 116
Initializing PORTF..................................................... 118
Initializing PORTG .................................................... 121
Initializing the MSSP Module for Using the AFE....... 290
Loading the SSPBUF (SSPSR) Register.................. 198
Overall Structure for Using the AFE.......................... 289
Reading a Flash Program Memory Word ................... 81
Reading Data From AFE During Interrupt................. 292
Routine for Capacitive Touch Switch ........................ 312
Saving STATUS, WREG and BSR
Registers in RAM.............................................. 104
Setting the RTCWREN Bit ........................................ 151
Setup for CTMU Calibration Routines....................... 307
Single-Word Write to Flash Program Memory ............ 85
Writing and Reading AFE Registers
Through MSSP ................................................. 291
Writing to Flash Program Memory .............................. 84
Code Protection ................................................................ 319
COMF ............................................................................... 351
Comparator ....................................................................... 293
Analog Input Connection Considerations.................. 297
Associated Registers ................................................ 297
Configuration............................................................. 294
Effects of a Reset...................................................... 296
Interrupts................................................................... 296
Operation .................................................................. 295
Operation During Sleep ............................................ 296
Outputs ..................................................................... 295
Reference ................................................................. 295
External Signal.................................................. 295
Internal Signal................................................... 295
Response Time......................................................... 295
Comparator Specifications................................................ 403
Comparator Voltage Reference ........................................ 299
Accuracy and Error ................................................... 300
Associated Registers ................................................ 301
Configuring................................................................ 299
Connection Considerations....................................... 300
Effects of a Reset...................................................... 300
Operation During Sleep ............................................ 300
Compare (CCP Module) ................................................... 161
Associated Registers ................................................ 162
CCP Pin Configuration.............................................. 161
CCPR2 Register ....................................................... 161
Software Interrupt ..................................................... 161
Special Event Trigger................................ 137, 161, 280
Timer1/Timer3 Mode Selection................................. 161
Computed GOTO................................................................ 59
Configuration Bits.............................................................. 319
Configuration Mismatch (CM) ............................................. 45
Configuration Register Protection ..................................... 331
Core Features
Easy Migration .............................................................. 9
Extended Instruction Set............................................... 9
Memory Options............................................................ 9
nanoWatt Technology ................................................... 9
Oscillator Options and Features ................................... 9
CPFSEQ ........................................................................... 351
CPFSGT ........................................................................... 352
CPFSLT............................................................................ 352
Crystal Oscillator/Ceramic Resonator................................. 29
Customer Change Notification Service............................. 475
Customer Notification Service .......................................... 475
Customer Support............................................................. 475
D
Data Addressing Modes ..................................................... 71
Comparing Addressing Modes with the
Extended Instruction Set Enabled ...................... 75
Direct .......................................................................... 71
Indexed Literal Offset ................................................. 74
BSR .................................................................... 76
Instructions Affected ........................................... 74
Mapping Access Bank ........................................ 76
Indirect........................................................................ 71
Inherent and Literal..................................................... 71
Data Memory ...................................................................... 62
Access Bank ............................................................... 64
Bank Select Register (BSR) ....................................... 62
Extended Instruction Set ............................................ 74
General Purpose Registers ........................................ 64
Memory Maps
PIC18F86J72/87J72 Devices ............................. 63
Special Function Registers................................. 65
Special Function Registers......................................... 65
DAW ................................................................................. 353
DC Characteristics............................................................ 400
Power-Down and Supply Current ............................. 392
Supply Voltage ......................................................... 391
DCFSNZ ........................................................................... 354
DECF ................................................................................ 353
DECFSZ ........................................................................... 354
Default System Clock ......................................................... 28
Details on Individual Family Members................................ 11
Development Support....................................................... 385
Device Overview................................................................... 9
Features (80-Pin Devices).......................................... 11
Direct Addressing ............................................................... 72
Dual-Channel Analog Front End (AFE) ............................ 434
Dual-Channel Analog Front End (AFE). See AFE.
E
Effect on Standard PIC18 Instructions.............................. 381
Effects of Power-Managed Modes on Various
Clock Sources ............................................................ 33
Electrical Characteristics .................................................. 389
Enhanced Universal Synchronous Asynchronous Receiver
Transmitter (EUSART). See EUSART.
ENVREG Pin .................................................................... 327
Equations
A/D Acquisition Time ................................................ 278
A/D Minimum Charging Time ................................... 278
Calculating the Minimum Required
Acquisition Time ............................................... 278
LCD Static and Dynamic Current ............................. 177
Errata .................................................................................... 7
EUSART
Asynchronous Mode................................................. 248
12-Bit Break Transmit and Receive.................. 253
Associated Registers, Receive......................... 251
Associated Registers, Transmit........................ 249
Auto-Wake-up on Sync Break Character ......... 252
Receiver ........................................................... 250
Setting up 9-Bit Mode with Address Detect ...... 250
Transmitter ....................................................... 248