PIC18F2585/2680/4585/4680
Data Sheet
28/40/44-Pin, High-Temperature,
High-Performance Microcontrollers
with ECAN™, 10-Bit A/D
and nanoWatt Technology
© 2009 Microchip Technology Inc.
DS39963A
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 provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
rfPIC and UNI/O are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Octopus, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, PIC32 logo, REAL ICE, rfLAB, Select Mode, Total
Endurance, TSHARC, UniWinDriver, WiperLock and ZENA
are trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
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.
© 2009, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® 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.
DS39963A-page 2
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
28/40/44-Pin, High-Temperature, High-Performance MCUs
with ECAN™, 10-Bit A/D and nanoWatt Technology
High-Temperature Features:
Special Microcontroller Features:
• Ambient Temperature Range of -40°C to 150°C
• C Compiler Optimized Architecture with Optional
Extended Instruction Set
• Priority Levels for Interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 41 ms to 131s
• Single-Supply 5V In-Circuit Serial
Programming™ (ICSP™) via Two Pins
• In-Circuit Debug (ICD) via Two Pins
ECAN Module Features:
• 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 w/ Dynamic Association
• DeviceNet™ Data Byte Filter Support
• Automatic Remote Frame Handling
• Advanced Error Management Features
Peripheral Highlights:
Power-Managed Modes:
•
•
•
•
Run: CPU on, Peripherals on
Idle: CPU off, Peripherals on
Sleep: CPU off, Peripherals off
Two-Speed Oscillator Start-up
•
•
Flexible Oscillator Structure:
• Four Crystal modes, up to 40 MHz
• 4x Phase Lock Loop (PLL) – Available for Crystal
and Internal Oscillators
• Two External RC modes, up to 4 MHz
• Two External Clock modes, up to 40 MHz
• Internal Oscillator Block:
- 8 user-selectable frequencies,
from 31 kHz to 8 MHz
- Provides a complete range of clock speeds,
from 31 kHz to 32 MHz when used with PLL
- User-tunable to compensate for frequency drift
• Secondary Oscillator using Timer1 @ 32 kHz
• Fail-Safe Clock Monitor
- Allows for safe shutdown if peripheral clock stops
Program Memory
Device
PIC18F2585
PIC18F2680
PIC18F4585
PIC18F4680
24576
32768
24576
32768
© 2009 Microchip Technology Inc.
•
Note:
Data Memory
Flash # Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
48K
64K
48K
64K
•
3328
3328
3328
3328
1024
1024
1024
1024
High-Current Sink/Source 25 mA/25 mA
Three External Interrupts
One Capture/Compare/PWM (CCP1) module
Enhanced Capture/Compare/PWM (ECCP1) module
(40/44-pin devices only):
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-shutdown and auto-restart
Master Synchronous Serial Port (MSSP) module
Supporting 3-Wire SPI (all 4 modes) and
I2C™ Master and Slave modes
Enhanced Addressable USART module:
- Supports RS-485, RS-232 and LIN/J2602 support
- RS-232 operation using internal oscillator block
(no external crystal required)
- Auto-wake-up on Start bit
- Auto-Baud Detect (ABD)
10-bit, up to 11-Channel Analog-to-Digital Converter
module (A/D), up to 100 ksps
- Auto-acquisition capability
- Conversion available during Sleep
Dual Analog Comparators with Input Multiplexing
I/O
28
28
44
40/44
This document is supplemented by the
“PIC18F2585/2680/4585/4680 Data Sheet”
(DS39625). See Section 1.0 “Device
Overview”.
CCP1/
10-Bit
ECCP1
A/D (ch)
(PWM)
8
8
11
11
1/0
1/0
1/1
1/1
MSSP
SPI
Master
I2C™
Y
Y
Y
Y
Y
Y
Y
Y
EUSART
•
•
•
•
Comp.
Timers
8/16-Bit
1
1
1
1
0
0
2
2
1/3
1/3
1/3
1/3
DS39963A-page 3
PIC18F2585/2680/4585/4680
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Special Features of the CPU ........................................................................................................................................................ 9
3.0 Electrical Characteristics ............................................................................................................................................................ 11
Appendix A: Revision History............................................................................................................................................................... 13
The Microchip Web Site ....................................................................................................................................................................... 15
Customer Change Notification Service ................................................................................................................................................ 15
Customer Support ................................................................................................................................................................................ 15
Reader Response ................................................................................................................................................................................ 16
Product Identification System............................................................................................................................................................... 17
DS39963A-page 4
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. We
welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DS39963A-page 5
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
NOTES:
DS39963A-page 6
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
1.0
DEVICE OVERVIEW
This document contains device-specific information for
the following devices, operating in an ambient
temperature range between -40°C and 150°C:
• PIC18F2585
• PIC18F4585
• PIC18F2680
• PIC18F4680
Note: This data sheet documents only the devices’
features and specifications that are in addition
to the features and specifications of the
non-specialty PIC18F2585/2680/4585/4680
devices. For information on the features and
specifications shared by this document’s HighTemperature devices and the non-specialty
devices, see the “PIC18F2585/2680/4585/
4680 Data Sheet” (DS39625).
The primary differentiating features and specifications
of the High-Temperature PIC18F2585/2680/4585/4680
family devices are:
• Above 125°C, writes are not allowed for Flash
program memory
• All AC timing specifications are increased by 30%
This de-rating factor includes parameters, such as
TPWRT
• Maximum HS frequency of operation is 20 MHz
Note:
The test duration for AEC-Q100 reliability
testing for devices operating at 150°C is
1,000 hours. Any design operating at
125°C to 150°C for longer than that period
is not warranted without prior written
approval from Microchip Technology Inc.
This family of devices offers the advantages of all
PIC18 microcontrollers – namely, high computational
performance at an economical price. In addition to
these features, the PIC18F2585/2680/4585/4680
family introduces design enhancements that make
these microcontrollers a logical choice for many
high-performance, power-sensitive applications.
DS39963A-page 7
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
NOTES:
DS39963A-page 8
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
2.0
SPECIAL FEATURES OF THE
CPU
2.1
The Device ID registers are read-only registers. They
identify the device type and revision for device
programmers and can be read by firmware using table
reads.
Note: For additional details on the Configuration bits,
refer to Section 24.1 “Configuration Bits” in
the “PIC18F2585/2680/4585/4680 Data Sheet”
(DS39625). Device ID information presented in
this section is for the High-Temperature
PIC18F2585/2680/4585/4680 family only.
TABLE 2-1:
Device ID Registers
DEVICE IDs
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Default/
Unprogrammed
Value
3FFFFEh DEVID1
DEV2
DEV1
DEV0
REV4
REV3
REV2
REV1
REV0
xxxx xxxx(1)
3FFFFFh
DEVID2
DEV10
DEV9
DEV8
DEV7
DEV6
DEV5
DEV4
DEV3
000 1100
Legend:
Note 1:
x = unknown, u = unchanged, — = unimplemented. Shaded cells are unimplemented, read as ‘0’.
See Register 2-1 for DEVID1 values. DEVID registers are read-only and cannot be programmed by the user.
File Name
REGISTER 2-1:
DEVID1: DEVICE ID REGISTER 1
R
R
R
R
R
R
R
R
DEV2
DEV1
DEV0
REV4
REV3
REV2
REV1
REV0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7-5
DEV: Device ID bits
111 = PIC18F2585
110 = PIC18F2680
101 = PIC18F4585
100 = PIC18F4680
bit 4-0
REV: Revision ID bits
These bits are used to indicate the device revision.
DS39963A-page 9
x = Bit is unknown
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
REGISTER 2-2:
DEVID2: DEVICE ID REGISTER 2
R
R
R
R
R
R
R
R
DEV10
DEV9
DEV8
REV7
REV6
REV5
REV4
REV3
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7-0
x = Bit is unknown
DEV: Device ID bits
These bits are used with the DEV bits in the Device ID Register 1 to identify the part number.
0000 1110 = PIC18F2585/2680/4585/4680 family devices
Note:
DS39963A-page 10
These values for DEV may be shared with other devices. The specific device is
always identified by using the entire DEV bit sequence.
© 2009 Microchip Technology Inc.
PIC18F2585/2680/4585/4680
3.0
ELECTRICAL CHARACTERISTICS
Note: Other than some basic data, this section documents only the High-Temperature PIC18F2585/2680/4585/4680
family devices’ specifications that differ from those of the non-specialty PIC18F2585/2680/4585/4680 devices.
For detailed information on the electrical specifications shared by the High-Temperature and non-specialty
devices, see the “PIC18F2585/2680/4585/4680 Data Sheet” (DS39625).
Unless otherwise noted, this section’s parameters assume a minimum voltage of 4.2V.
3.1
Absolute Maximum Ratings(†)
Maximum ambient temperature............................................................................................................................... 150°C
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
3.2
DC Characteristics
TABLE 3-1:
SUPPLY VOLTAGE (HIGH TEMPERATURE)
PIC18F2585/2680/4585/4680
(High Temperature)
Param
Symbol
No.
IDD
Characteristic
Supply Current
Standard Operating Conditions (unless otherwise stated)
Operating temperature
125°C ≤ TA ≤ 150°C for high temperature
Min
Typ
Max
Units
VDD
—
—
3.5
mA
5.0
FOSC = 1.5 MHz
(PRI_RU mode, EC oscillator)
—
—
8.5
mA
5.0
FOSC = 4 MHz
(PRI_RU mode, EC oscillator)
—
—
25
mA
5.0
FOSC = 16 MHz
(PRI_RU mode, EC oscillator)
—
—
34
mA
5.0
FOSC = 25 MHz
(PRI_RU mode, EC oscillator)
A/D on, not converting
D026
IPD
ΔIA/D
—
2.0
30
mA
5.0
D030
VIL
I/O Ports with TTL Buffer
VSS
—
0.15 VDD
V