Datasheet

Table Of Contents
PIC18F87J72 FAMILY
DS39979A-page 466 Preliminary  2010 Microchip Technology Inc.
Baud Rate Generator................................................ 225
Capture Mode Operation .......................................... 160
Comparator Analog Input Model ............................... 297
Comparator I/O Operating Modes............................. 294
Comparator Output ...................................................296
Comparator Voltage Reference ................................ 300
Comparator Voltage Reference Output
Buffer Example ................................................. 301
Compare Mode Operation ........................................ 161
Connections for On-Chip Voltage Regulator............. 327
CTMU........................................................................303
CTMU Current Source Calibration Circuit................. 306
CTMU Typical Connections and Internal
Configuration for Pulse Delay Generation ........ 314
CTMU Typical Connections and Internal
Configuration for Time Measurement ............... 313
Delta-Sigma ADC (Simplified)................................... 444
Device Clock ............................................................... 25
Dual-Channel AFE .................................................... 435
EUSART Receive ..................................................... 250
EUSART Transmit .................................................... 248
External Power-on Reset Circuit
(Slow V
DD Power-up)..........................................45
Fail-Safe Clock Monitor (FSCM) ...............................329
Generic I/O Port Operation ....................................... 105
Interrupt Logic .............................................................90
LCD Clock Generation .............................................. 172
LCD Driver Module ................................................... 167
LCD Regulator Connections (M0 and M1)................ 174
MSSP (I
2
C Master Mode) ......................................... 223
MSSP (I
2
C Mode) ..................................................... 204
MSSP (SPI Mode)..................................................... 195
On-Chip Reset Circuit .................................................43
PIC18F8XJ72.............................................................. 12
PLL..............................................................................30
PWM Operation (Simplified) ..................................... 163
Reads From Flash Program Memory.......................... 81
Resistor Ladder Connections for
M2 Configuration............................................... 175
Resistor Ladder Connections for
M3 Configuration............................................... 176
RTCC ........................................................................139
Single Comparator ....................................................295
SPI Master/Slave Connection ................................... 199
Table Read Operation.................................................77
Table Write Operation.................................................78
Table Writes to Flash Program Memory .....................83
Timer0 in 16-Bit Mode............................................... 124
Timer0 in 8-Bit Mode.................................................124
Timer1 (16-Bit Read/Write Mode) ............................. 128
Timer1 (8-Bit Mode) .................................................. 128
Timer2....................................................................... 134
Timer3 (16-Bit Read/Write Mode) ............................. 136
Timer3 (8-Bit Mode) .................................................. 136
Watchdog Timer........................................................ 325
BN ..................................................................................... 343
BNC...................................................................................344
BNN...................................................................................344
BNOV................................................................................ 345
BNZ ...................................................................................345
BOR. See Brown-out Reset.
BOV...................................................................................348
BRA................................................................................... 346
Break Character (12-Bit) Transmit and Receive ............... 253
BRG. See Baud Rate Generator.
BRGH Bit
TXSTA1 Register...................................................... 243
TXSTA2 Register...................................................... 262
Brown-out Reset (BOR)...................................................... 45
and On-Chip Voltage Regulator................................ 328
Detecting .................................................................... 45
BSF................................................................................... 346
BTFSC .............................................................................. 347
BTFSS .............................................................................. 347
BTG .................................................................................. 348
BZ ..................................................................................... 349
C
C Compilers
MPLAB C18.............................................................. 386
CALL................................................................................. 349
CALLW ............................................................................. 378
Capture (CCP Module) ..................................................... 160
Associated Registers ................................................ 162
CCP Pin Configuration.............................................. 160
CCPR2H:CCPR2L Registers.................................... 160
Software Interrupt ..................................................... 160
Timer1/Timer3 Mode Selection................................. 160
Capture/Compare/PWM (CCP) ........................................ 157
Capture Mode. See Capture.
CCP Mode and Timer Resources............................. 158
CCPRxH Register..................................................... 158
CCPRxL Register ..................................................... 158
Compare Mode. See Compare.
Configuration ............................................................ 158
Interaction of CCP1 and CCP2 for
Timer Resources .............................................. 159
Interconnect Configurations...................................... 158
Charge Time Measurement Unit (CTMU)......................... 303
Associated Registers ................................................ 317
Calibrating the Module.............................................. 305
Creating a Delay ....................................................... 314
Effects of a Reset ..................................................... 314
Measuring Capacitance with the CTMU ................... 311
Measuring Time........................................................ 313
Module Initialization .................................................. 305
Operation.................................................................. 304
During Sleep and Idle Modes ........................... 314
CLKIA ................................................................................. 20
Clock Sources..................................................................... 27
Default System Clock on Reset.................................. 28
Selection Using OSCCON Register............................ 28
CLRF ................................................................................ 350
CLRWDT .......................................................................... 350
Code Examples
16 x 16 Signed Multiply Routine ................................. 88
16 x 16 Unsigned Multiply Routine ............................. 88
8 x 8 Signed Multiply Routine ..................................... 87
8 x 8 Unsigned Multiply Routine ................................. 87
AFE Clock Source and Interrupt Configuration......... 290
Capacitance Calibration Routine .............................. 310
Changing Between Capture Prescalers.................... 160
Computed GOTO Using an Offset Value.................... 59
Current Calibration Routine ...................................... 308
Erasing a Flash Program Memory Row...................... 82
Fast Register Stack .................................................... 59
How to Clear RAM (Bank 1) Using Indirect Addressing .
71