English
Language : 

PIC18F6390 Datasheet, PDF (400/412 Pages) Microchip Technology – 64/80-Pin Flash Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F6390/6490/8390/8490
Timer1 (16-Bit Read/Write Mode) ............................ 136
Timer2 ...................................................................... 142
Timer3 ...................................................................... 144
Timer3 (16-Bit Read/Write Mode) ............................ 144
Voltage Reference Output Buffer Example .............. 249
Watchdog Timer ....................................................... 287
BN .................................................................................... 304
BNC .................................................................................. 305
BNN .................................................................................. 305
BNOV ............................................................................... 306
BNZ .................................................................................. 306
BOR. See Brown-out Reset.
BOV .................................................................................. 309
BRA .................................................................................. 307
Break Character (12-Bit) Transmit and Receive .............. 211
BRG. See Baud Rate Generator.
Brown-out Reset (BOR) ............................................. 54, 281
Disabling in Sleep Mode ............................................ 54
BSF .................................................................................. 307
BSR .................................................................................... 86
BTFSC ............................................................................. 308
BTFSS .............................................................................. 308
BTG .................................................................................. 309
BZ ..................................................................................... 310
C
C Compilers
MPLAB C17 ............................................................. 346
MPLAB C18 ............................................................. 346
MPLAB C30 ............................................................. 346
CALL ................................................................................ 310
CALLW ............................................................................. 339
Capture (CCP Module) ..................................................... 150
Associated Registers ............................................... 152
CCP Pin Configuration ............................................. 150
CCPR2H:CCPR2L Registers ................................... 150
Software Interrupt .................................................... 150
Timer1/Timer3 Mode Selection ................................ 150
Capture/Compare/PWM (CCP) ........................................ 147
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................ 148
CCPRxH Register .................................................... 148
CCPRxL Register ..................................................... 148
Compare Mode. See Compare.
Interaction of CCP1 and CCP2 for
Timer Resources .............................................. 149
Interconnect Configurations ..................................... 148
Module Configuration ............................................... 148
Clock Sources .................................................................... 36
Selecting the 31 kHz Source ...................................... 37
Selection Using OSCCON Register ........................... 37
CLRF ................................................................................ 311
CLRWDT .......................................................................... 311
Code Examples
16 x 16 Signed Multiply Routine ................................ 92
16 x 16 Unsigned Multiply Routine ............................ 92
8 x 8 Signed Multiply Routine .................................... 91
8 x 8 Unsigned Multiply Routine ................................ 91
Changing Between Capture Prescalers ................... 150
Computed GOTO Using an Offset Value ................... 68
Fast Register Stack .................................................... 68
How to Clear RAM (Bank 1) Using
Indirect Addressing ............................................ 81
Implementing a Real-Time Clock Using
a Timer1 Interrupt Service ............................... 139
Initializing PORTA .................................................... 109
Initializing PORTB .................................................... 112
Initializing PORTC ................................................... 115
Initializing PORTD ................................................... 118
Initializing PORTE .................................................... 120
Initializing PORTF .................................................... 122
Initializing PORTG ................................................... 125
Initializing PORTH ................................................... 127
Initializing PORTJ .................................................... 129
Loading the SSPBUF (SSPSR) Register ................. 160
Reading a Flash Program Memory Word .................. 89
Saving Status, WREG and
BSR Registers in RAM .................................... 108
Code Protection ............................................................... 281
COMF .............................................................................. 312
Comparator ...................................................................... 241
Analog Input Connection Considerations ................ 245
Associated Registers ............................................... 245
Configuration ........................................................... 242
Effects of a Reset .................................................... 244
Interrupts ................................................................. 244
Operation ................................................................. 243
Operation During Sleep ........................................... 244
Outputs .................................................................... 243
Reference ................................................................ 243
External Signal ................................................ 243
Internal Signal .................................................. 243
Response Time ........................................................ 243
Comparator Specifications ............................................... 366
Comparator Voltage Reference ....................................... 247
Accuracy and Error .................................................. 248
Associated Registers ............................................... 249
Configuring .............................................................. 247
Connection Considerations ...................................... 248
Effects of a Reset .................................................... 248
Operation During Sleep ........................................... 248
Compare (CCP Module) .................................................. 151
Associated Registers ............................................... 152
CCP Pin Configuration ............................................. 151
CCPR2 Register ...................................................... 151
Software Interrupt .................................................... 151
Special Event Trigger .............................. 145, 151, 240
Timer1/Timer3 Mode Selection ................................ 151
Computed GOTO ............................................................... 68
Configuration Bits ............................................................ 281
Configuration Register Protection .................................... 292
Context Saving During Interrupts ..................................... 108
Conversion Considerations .............................................. 394
CPFSEQ .......................................................................... 312
CPFSGT .......................................................................... 313
CPFSLT ........................................................................... 313
Crystal Oscillator/Ceramic Resonator ................................ 31
D
Data Addressing Modes .................................................... 81
Comparing Addressing Modes with the
Extended Instruction Set Enabled ..................... 85
Direct ......................................................................... 81
Indexed Literal Offset ................................................ 84
Indirect ....................................................................... 81
Inherent and Literal .................................................... 81
DS39629B-page 398
Preliminary
 2004 Microchip Technology Inc.