English
Language : 

PIC18F6585 Datasheet, PDF (476/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
PORTD in I/O Port Mode .......................................... 133
PORTD in System Bus Mode ................................... 134
PORTE in I/O Mode .................................................. 137
PORTE in System Bus Mode.................................... 137
PORTF
RF1/AN6/C2OUT and
RF2/AN7/C1OUT Pins .............................. 139
RF6:RF3 and RF0 Pins..................................... 140
RF7 Pin ............................................................. 140
PORTG
RG0/CANTX1 Pin ............................................. 142
RG1/CANTX2 Pin ............................................. 143
RG2/CANRX Pin............................................... 143
RG3 Pin ............................................................ 143
RG4/P1D Pin .................................................... 144
RG5/MCLR/VPP Pin .......................................... 144
PORTH
RH3:RH0 Pins in I/O Mode ............................... 146
RH3:RH0 Pins in
System Bus Mode..................................... 147
RH7:RH4 Pins in I/O Mode ............................... 146
PORTJ
RJ4:RJ0 Pins in
System Bus Mode..................................... 150
RJ7:RJ6 Pins in
System Bus Mode..................................... 150
PORTJ in I/O Mode................................................... 149
PWM (CCP Module) ................................................. 173
Reads from Flash Program
Memory ............................................................... 87
Single Comparator .................................................... 261
Table Read Operation................................................. 83
Table Write Operation ................................................. 84
Table Writes to Flash Program
Memory ............................................................... 89
Timer0 in 16-bit Mode ............................................... 156
Timer0 in 8-bit Mode ................................................. 156
Timer1 ....................................................................... 160
Timer1 (16-bit Read/Write Mode) ............................. 160
Timer2 ....................................................................... 163
Timer3 ....................................................................... 165
Timer3 in 16-bit Read/Write Mode ............................ 165
USART Receive ........................................................ 240
USART Transmit ....................................................... 238
Voltage Reference
Output Buffer (example).................................... 267
Watchdog Timer........................................................ 356
BN ..................................................................................... 374
BNC................................................................................... 375
BNN................................................................................... 375
BNOV ................................................................................ 376
BNZ ................................................................................... 376
BOR. See Brown-out Reset.
BOV................................................................................... 379
BRA................................................................................... 377
Break Character (12-bit)
Transmit and Receive ............................................... 243
BRG. See Baud Rate Generator.
Brown-out Reset (BOR) .............................................. 34, 345
BSF ................................................................................... 377
BTFSC .............................................................................. 378
BTFSS............................................................................... 378
BTG................................................................................... 379
BZ...................................................................................... 380
C
C Compilers
MPLAB C17 .............................................................. 408
MPLAB C18 .............................................................. 408
MPLAB C30 .............................................................. 408
CALL................................................................................. 380
Capture (CCP Module) ..................................................... 169
CAN Message Time-Stamp ...................................... 170
CCP Pin Configuration.............................................. 169
CCPRxH:CCPRxL Registers .................................... 169
Software Interrupt ..................................................... 170
Timer1/Timer3 Mode Selection................................. 169
Capture, Compare (CCP Module),
Timer1 and Timer3
Associated Registers ................................................ 172
Capture/Compare/PWM (CCP) ........................................ 167
Capture Mode.
See Capture (CCP Module).
CCP Module ............................................................. 169
CCPRxH Register..................................................... 169
CCPRxL Register ..................................................... 169
Compare Mode.
See Compare (CCP Module).
Interaction of CCP1 and
CCP2 Modules ................................................. 169
PWM Mode.
See PWM (CCP Module).
Timer Resources ...................................................... 169
Capture/Compare/PWM
Requirements ........................................................... 435
CLKO and I/O Timing Requirements ........................ 430, 431
Clocking Scheme/Instruction Cycle .................................... 56
CLRF ................................................................................ 381
CLRWDT .......................................................................... 381
Code Examples
16 x 16 Signed Multiply Routine ............................... 108
16 x 16 Unsigned Multiply Routine ........................... 108
8 x 8 Signed Multiply Routine ................................... 107
8 x 8 Unsigned Multiply Routine ............................... 107
Changing Between Capture
Prescalers......................................................... 170
Changing to Configuration Mode .............................. 281
Data EEPROM Read ................................................ 103
Data EEPROM Refresh Routine............................... 104
Data EEPROM Write ................................................ 103
Erasing a Flash Program
Memory Row ...................................................... 88
Fast Register Stack .................................................... 56
How to Clear RAM (Bank 1) Using
Indirect Addressing............................................. 79
Initializing PORTA..................................................... 125
Initializing PORTB..................................................... 128
Initializing PORTC .................................................... 131
Initializing PORTD .................................................... 133
Initializing PORTE..................................................... 136
Initializing PORTF..................................................... 139
Initializing PORTG .................................................... 142
Initializing PORTH .................................................... 146
Initializing PORTJ ..................................................... 149
Loading the SSPBUF (SSPSR)
Register ............................................................ 192
Reading a Flash Program
Memory Word ..................................................... 87
DS30491C-page 474
 2004 Microchip Technology Inc.