PIC18F6585/8585/6680/8680
Data Sheet
64/68/80-Pin High-Performance,
64-Kbyte Enhanced Flash
Microcontrollers with ECAN Module
2004 Microchip Technology Inc.
DS30491C
Note the following details of the code protection feature on Microchip devices:
•
•
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
•
•
•
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
No representation or warranty is given and no liability is
assumed by Microchip Technology Incorporated with respect
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such
use or otherwise. Use of Microchip’s products as critical
components in life support systems is not authorized except
with express written approval by Microchip. No licenses are
conveyed, implicitly or otherwise, under any intellectual
property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart and rfPIC are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER,
SEEVAL, SmartShunt and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Application Maestro, dsPICDEM, dsPICDEM.net,
dsPICworks, ECAN, ECONOMONITOR, FanSense,
FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP,
ICEPIC, Migratable Memory, MPASM, MPLIB, MPLINK,
MPSIM, PICkit, PICDEM, PICDEM.net, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, rfLAB, Select Mode,
SmartSensor, SmartTel and Total Endurance are trademarks
of Microchip Technology Incorporated in the U.S.A. and other
countries.
Serialized Quick Turn Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2004, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in October
2003. The Company’s quality system processes and procedures are for
its PICmicro
®
8-bit MCUs, K
EE
L
OQ
®
code hopping devices, Serial
EEPROMs, microperipherals, nonvolatile memory and analog
products. In addition, Microchip’s quality system for the design and
manufacture of development systems is ISO 9001:2000 certified.
DS30491C-page ii
2004 Microchip Technology Inc.
PIC18F6585/8585/6680/8680
64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash
Microcontrollers with ECAN Module
High-Performance RISC CPU:
• Source code compatible with the PIC16 and
PIC17 instruction sets
• Linear program memory addressing to 2 Mbytes
• Linear data memory addressing to 4096 bytes
• 1 Kbyte of data EEPROM
• Up to 10 MIPs operation:
- DC – 40 MHz osc./clock input
- 4 MHz-10 MHz osc./clock input with PLL active
• 16-bit wide instructions, 8-bit wide data path
• Priority levels for interrupts
• 31-level, software accessible hardware stack
• 8 x 8 Single-Cycle Hardware Multiplier
Analog Features:
• Up to 16-channel, 10-bit Analog-to-Digital
Converter module (A/D) with:
- Fast sampling rate
- Programmable acquisition time
- Conversion available during Sleep
• Programmable 16-level Low-Voltage Detection
(LVD) module:
- Supports interrupt on Low-Voltage Detection
• Programmable Brown-out Reset (BOR)
• Dual analog comparators:
- Programmable input/output configuration
ECAN Module Features:
External Memory Interface
(PIC18F8X8X Devices Only):
• Address capability of up to 2 Mbytes
• 16-bit interface
• Message bit rates up to 1 Mbps
• Conforms to CAN 2.0B ACTIVE Specification
• Fully backward compatible with PIC18XXX8 CAN
modules
• Three modes of operation:
- Legacy, Enhanced Legacy, FIFO
• Three dedicated transmit buffers with prioritization
• Two dedicated receive buffers
• Six programmable receive/transmit buffers
• Three full 29-bit acceptance masks
• 16 full 29-bit acceptance filters with dynamic association
• DeviceNet™ data byte filter support
• Automatic remote frame handling
• Advanced Error Management features
Peripheral Features:
•
•
•
•
•
•
•
•
High current sink/source 25 mA/25 mA
Four external interrupt pins
Timer0 module: 8-bit/16-bit timer/counter
Timer1 module: 16-bit timer/counter
Timer2 module: 8-bit timer/counter
Timer3 module: 16-bit timer/counter
Secondary oscillator clock option – Timer1/Timer3
One Capture/Compare/PWM (CCP) module:
- Capture is 16-bit, max. resolution 6.25 ns
(T
CY
/16)
- Compare is 16-bit, max. resolution 100 ns (T
CY
)
- PWM output: PWM resolution is 1 to 10-bit
Enhanced Capture/Compare/PWM (ECCP) module:
- Same Capture/Compare features as CCP
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-shutdown on external event
- Auto-restart
Master Synchronous Serial Port (MSSP) module
with two modes of operation:
- 3-wire SPI™ (supports all 4 SPI modes)
- I
2
C™ Master and Slave mode
Enhanced Addressable USART module:
- Supports RS-232, RS-485 and LIN 1.2
- Programmable wake-up on Start bit
- Auto-baud detect
Parallel Slave Port (PSP) module
Special Microcontroller Features:
• 100,000 erase/write cycle Enhanced Flash
program memory typical
• 1,000,000 erase/write cycle Data EEPROM
memory typical
• 1-second programming time
• Flash/Data EEPROM Retention: > 40 years
• Self-reprogrammable under software control
• Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own On-Chip
RC Oscillator
• Programmable code protection
• Power saving Sleep mode
• Selectable oscillator options including:
- Software enabled 4x Phase Lock Loop (of
primary oscillator)
- Secondary Oscillator (32 kHz) clock input
• In-Circuit Serial Programming™ (ICSP™) via two pins
• MPLAB
®
In-Circuit Debug (ICD) via two pins
•
•
•
•
2004 Microchip Technology Inc.
DS30491C-page 1
PIC18F6585/8585/6680/8680
CMOS Technology:
•
•
•
•
Low-power, high-speed Flash technology
Fully static design
Wide operating voltage range (2.0V to 5.5V)
Industrial and Extended temperature ranges
Program Memory
Device
Data Memory
I/O
# Single-Word SRAM EEPROM
Bytes
Instructions (bytes) (bytes)
48K
64K
48K
64K
24576
32768
24576
32768
3328
3328
3328
3328
1024
1024
1024
1024
CCP/
10-bit
ECCP
A/D (ch)
(PWM)
12
12
16
16
1/1
1/1
1/1
1/1
MSSP
ECAN/
Timers
Master AUSART 8-bit/16-bit EMA
SPI
I
2
C
Y
Y
Y
Y
Y
Y
Y
Y
Y/Y
Y/Y
Y/Y
Y/Y
2/3
2/3
2/3
2/3
N
N
Y
Y
PIC18F6585
PIC18F6680
PIC18F8585
PIC18F8680
53
53
69
69
DS30491C-page 2
2004 Microchip Technology Inc.
PIC18F6585/8585/6680/8680
Pin Diagrams
64-Pin TQFP
RE7/CCP2
(1)
RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RD4/PSP4
RD5/PSP5
RD6/PSP6
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
RD7/PSP7
RE5/P1C
RE6/P1B
RE2/CS
RE3
RE4
V
DD
V
SS
RE1/WR
RE0/RD
RG0/CANTX1
RG1/CANTX2
RG2/CANRX
RG3
RG5/MCLR/V
PP
RG4/P1D
V
SS
V
DD
RF7/SS
RF6/AN11/C1IN-
RF5/AN10/C1IN+/CV
REF
RF4/AN9/C2IN-
RF3/AN8/C2IN+
RF2/AN7/C1OUT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
RB0/INT0
RB1/INT1
RB2/INT2
RB3/INT3
RB4/KBI0
RB5/KBI1/PGM
RB6/KBI2/PGC
V
SS
OSC2/CLKO/RA6
OSC1/CLKI
V
DD
RB7/KBI3/PGD
RC5/SDO
RC4/SDI/SDA
RC3/SCK/SCL
RC2/CCP1/P1A
PIC18F6X8X
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
RF1/AN6/C2OUT
RF0/AN5
RA4/T0CKI
RC1/T1OSI/CCP2
(1)
RA2/AN2/V
REF
-
RC0/T1OSO/T13CKI
RA5/AN4/LVDIN
AV
SS
RA3/AN3/V
REF
+
RC6/TX/CK
Note 1:
CCP2 pin placement depends on CCP2MX setting.
2004 Microchip Technology Inc.
RC7/RX/DT
RA1/AN1
RA0/AN0
AV
DD
V
DD
V
SS
DS30491C-page 3