English
Language : 

PIC18F66K80 Datasheet, PDF (612/628 Pages) Microchip Technology – 28/40/44/64-Pin, Enhanced Flash Microcontrollers, with ECAN™ and nanoWatt XLP Technology
PIC18F66K80 FAMILY
BRA................................................................................... 499
Break Character (12-Bit) Transmit and Receive ............... 356
BRG. See Baud Rate Generator.
Brown-out Reset (BOR) ...................................................... 84
Detecting ..................................................................... 84
Disabling in Sleep Mode ............................................. 84
Software Enabled........................................................ 84
BSF ................................................................................... 499
BTFSC .............................................................................. 500
BTFSS............................................................................... 500
BTG................................................................................... 501
BZ...................................................................................... 502
C
C Compilers
MPLAB C18 .............................................................. 538
CALL ................................................................................. 502
CALLW.............................................................................. 531
CAN Module
External-Internal Clock in HS-PLL
Based Oscillators .............................................. 451
Capture (CCP Module)...................................................... 263
CCP Pin Configuration .............................................. 263
CCPRxH:CCPRxL Registers .................................... 263
Software Interrupt ..................................................... 264
Timer1/3 Mode Selection .......................................... 263
Capture (ECCP Module) ................................................... 274
CCPR1H:CCPR1L Registers.................................... 274
ECCP Pin Configuration ........................................... 274
Prescaler ................................................................... 275
Software Interrupt ..................................................... 275
Timer1/2/3/4 Mode Selection .................................... 275
Capture, Compare, Timer1/3
Associated Registers ................................................ 267
Capture/Compare/PWM (CCP)......................................... 259
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 262
CCPRxH Register ..................................................... 262
CCPRxL Register...................................................... 262
Compare Mode. See Compare.
Configuration............................................................. 262
Open-Drain Output Option ........................................ 262
Charge Time Measurement Unit (CTMU) ......................... 241
Associated Registers ................................................ 258
Calibrating the Module .............................................. 246
Creating a Delay ....................................................... 256
Effects of a Reset...................................................... 258
Measuring Capacitance ............................................ 252
Measuring Time ........................................................ 254
Module Initialization .................................................. 246
Operation .................................................................. 245
During Sleep, Idle Modes.................................. 258
Temperature Measurement ...................................... 255
Clock Sources ..................................................................... 58
Default System Clock on Reset .................................. 59
Selection Using OSCCON Register ............................ 58
CLRF................................................................................. 503
CLRWDT........................................................................... 503
Code Examples
16 x 16 Signed Multiply Routine ............................... 152
16 x 16 Unsigned Multiply Routine ........................... 152
8 x 8 Signed Multiply Routine ................................... 151
8 x 8 Unsigned Multiply Routine ............................... 151
Capacitance Calibration Routine .............................. 251
Changing Between Capture Prescalers ............ 264, 275
Changing to Configuration Mode .............................. 400
Computed GOTO Using an Offset Value.................. 109
Current Calibration Routine ...................................... 249
Data EEPROM Read ................................................ 148
Data EEPROM Refresh Routine............................... 149
Data EEPROM Write ................................................ 148
Erasing a Flash Program Memory Row.................... 140
Fast Register Stack .................................................. 109
How to Clear RAM (Bank 1) Using
Indirect Addressing........................................... 128
Initializing PORTA..................................................... 181
Initializing PORTB..................................................... 184
Initializing PORTC .................................................... 187
Initializing PORTD .................................................... 190
Initializing PORTE..................................................... 193
Initializing PORTF..................................................... 195
Initializing PORTG .................................................... 196
Loading the SSPBUF (SSPSR) Register.................. 296
Reading a CAN Message ......................................... 416
Reading a Flash Program Memory Word ................. 139
Routine for Capacitive Touch Switch........................ 253
Routine for Temperature Measurement
Using Internal Diode ................................. 255, 257
Saving STATUS, WREG and BSR
Registers in RAM.............................................. 175
Setup for CTMU Calibration Routines ...................... 248
Transmitting a CAN Message Using
Banked Method ................................................ 408
Transmitting a CAN Message Using WIN Bits.......... 409
Ultra Low-Power Wake-up Initialization ...................... 79
WIN and ICODE Bits Usage in Interrupt Service
Routine to Access TX/RX Buffers..................... 400
Writing to Flash Program Memory .................... 142–143
Code Protection ................................................................ 461
COMF ............................................................................... 504
Comparator....................................................................... 377
Analog Input Connection Considerations ................. 380
Associated Registers ................................................ 384
Configuration ............................................................ 381
Control ...................................................................... 381
Effects of a Reset ..................................................... 384
Enable and Input Selection....................................... 381
Enable and Output Selection .................................... 381
Interrupts .................................................................. 383
Operation .................................................................. 380
Operation During Sleep ............................................ 384
Response Time......................................................... 380
Comparator Specifications................................................ 567
Comparator Voltage Reference ........................................ 385
Accuracy and Error ................................................... 386
Associated Registers ................................................ 387
Configuring ............................................................... 385
Connection Considerations....................................... 386
Effects of a Reset ..................................................... 386
Operation During Sleep ............................................ 386
Compare (CCP Module) ................................................... 265
CCP Pin Configuration.............................................. 265
Software Interrupt ..................................................... 265
Special Event Trigger ............................................... 265
Timer1/3 Mode Selection.......................................... 265
Compare (ECCP Module)................................................. 276
CCPR1 Register ....................................................... 276
Pin Configuration ...................................................... 276
Software Interrupt ..................................................... 276
Special Event Trigger ....................................... 238, 276
Timer1/2/3/4 Mode Selection.................................... 276
DS39977C-page 612
Preliminary
 2011 Microchip Technology Inc.