Datasheet

PIC18F87J11 FAMILY
DS39778E-page 452 2007-2012 Microchip Technology Inc.
Break Character (12-Bit) Transmit and Receive .............. 302
BRG. See Baud Rate Generator.
Brown-out Reset (BOR) .....................................................57
and On-Chip Voltage Regulator ............................... 342
Detecting ....................................................................57
Disabling in Sleep Mode ............................................57
BSF ..................................................................................359
BTFSC .............................................................................360
BTFSS ..............................................................................360
BTG ..................................................................................361
BZ .....................................................................................362
C
C Compilers
MPLAB C18 .............................................................398
Calibration (A/D Converter) .............................................. 317
CALL ................................................................................ 362
CALLW .............................................................................391
Capture (CCP Module) ..................................................... 213
Associated Registers ...............................................215
CCP Pin Configuration ............................................. 213
CCPRxH:CCPRxL Registers ................................... 213
Prescaler ..................................................................213
Software Interrupt ....................................................213
Timer1/Timer3 Mode Selection ................................ 213
Capture (ECCP Module) ..................................................223
Capture/Compare/PWM (CCP) ........................................ 211
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................212
CCPRxH Register ....................................................212
CCPRxL Register ..................................................... 212
Compare Mode. See Compare.
Module Configuration ...............................................212
Timer Interconnect Configurations ........................... 212
Clock Sources ....................................................................39
Default System Clock on Reset Default
System Clock .....................................................40
Selection Using OSCCON Register ...........................40
CLRF ................................................................................363
CLRWDT ..........................................................................363
Code Examples
16 x 16 Signed Multiply Routine ..............................118
16 x 16 Unsigned Multiply Routine ..........................118
8 x 8 Signed Multiply Routine .................................. 117
8 x 8 Unsigned Multiply Routine ..............................117
A/D Calibration Routine ...........................................317
Changing Between Capture Prescalers ...................213
Communicating with the +5V System ...................... 136
Computed GOTO Using an Offset Value ...................73
Erasing a Flash Program Memory Row ...................100
Fast Register Stack ....................................................73
How to Clear RAM (Bank 1) Using
Indirect Addressing ............................................88
Implementing a Real-Time Clock Using a
Timer1 Interrupt Service ..................................201
Initializing PORTA ....................................................140
Initializing PORTB ....................................................143
Initializing PORTC .................................................... 146
Initializing PORTD .................................................... 149
Initializing PORTE ....................................................152
Initializing PORTF ....................................................155
Initializing PORTG ...................................................158
Initializing PORTH .................................................... 161
Initializing PORTJ ....................................................164
Loading the SSP1BUF (SSP1SR) Register ............. 241
Reading a Flash Program Memory Word .................. 99
Saving STATUS, WREG and BSR Registers
in RAM ............................................................. 134
Single-Word Write to Flash Program Memory ......... 103
Writing to Flash Program Memory ........................... 102
Code Protection ............................................................... 331
COMF .............................................................................. 364
Comparator ...................................................................... 319
Analog Input Connection Considerations ................ 322
Associated Registers ............................................... 326
Control and Configuration ........................................ 323
Effects of a Reset .................................................... 326
Enable, Input Selection ............................................ 323
Enable, Output Selection ......................................... 323
Interrupts ................................................................. 325
Operation ................................................................. 322
Operation During Sleep ........................................... 326
Response Time ........................................................ 322
Comparator Specifications ............................................... 415
Comparator Voltage Reference ....................................... 327
Accuracy and Error .................................................. 329
Associated Registers ............................................... 329
Configuring .............................................................. 328
Connection Considerations ...................................... 329
Effects of a Reset .................................................... 329
Operation During Sleep ........................................... 329
Compare (CCP Module) .................................................. 214
Associated Registers ............................................... 215
CCPRx Register ...................................................... 214
Pin Configuration ..................................................... 214
Software Interrupt .................................................... 214
Timer1/Timer3 Mode Selection ................................ 214
Compare (ECCP Module) ................................................ 223
Special Event Trigger ...................................... 223, 316
Compare (ECCPx Modules)
Special Event Trigger .............................................. 207
Computed GOTO ............................................................... 73
Configuration Bits ............................................................ 331
Configuration Mismatch Reset (CM) .................................. 57
Configuration Register Protection .................................... 345
Core Features ...................................................................... 7
Easy Migration ............................................................. 8
Expanded Memory ....................................................... 7
Extended Instruction Set ............................................. 7
External Memory Bus .................................................. 7
Oscillator Options and Features .................................. 7
Technology .................................................................. 7
CPFSEQ .......................................................................... 364
CPFSGT .......................................................................... 365
CPFSLT ........................................................................... 365
Crystal Oscillator/Ceramic Resonator ................................ 41
Customer Change Notification Service ............................ 449
Customer Notification Service ......................................... 449
Customer Support ............................................................ 449
D
Data Addressing Modes .................................................... 88
Comparing Addressing Modes with the
Extended Instruction Set Enabled ..................... 92
Direct ......................................................................... 88
Indexed Literal Offset ................................................ 91
BSR ................................................................... 93
Instructions Affected .......................................... 91
Mapping Access Bank ....................................... 93
Indirect ....................................................................... 88
Inherent and Literal .................................................... 88