English
Language : 

PIC18F2585_07 Datasheet, PDF (10/482 Pages) Microchip Technology – Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
PIC18F2585/2680/4585/4680
1.2 Other Special Features
• Memory Endurance: The Enhanced Flash cells
for both program memory and data EEPROM are
rated to last for many thousands of erase/write
cycles – up to 100,000 for program memory and
1,000,000 for EEPROM. Data retention without
refresh is conservatively estimated to be greater
than 40 years.
• Self-programmability: These devices can write
to their own program memory spaces under inter-
nal software control. By using a bootloader rou-
tine located in the protected Boot Block at the top
of program memory, it becomes possible to create
an application that can update itself in the field.
• Extended Instruction Set: The
PIC18F2585/2680/4585/4680 family introduces
an optional extension to the PIC18 instruction set,
which adds 8 new instructions and an Indexed
Addressing mode. This extension, enabled as a
device configuration option, has been specifically
designed to optimize re-entrant application code
originally developed in high-level languages, such
as C.
• Enhanced CCP1 module: In PWM mode, this
module provides 1, 2 or 4 modulated outputs for
controlling half-bridge and full-bridge drivers.
Other features include Auto-Shutdown, for
disabling PWM outputs on interrupt or other select
conditions and Auto-Restart, to reactivate outputs
once the condition has cleared.
• Enhanced Addressable USART: This serial
communication module is capable of standard
RS-232 operation and provides support for the LIN
bus protocol. Other enhancements include
automatic baud rate detection and a 16-bit Baud
Rate Generator for improved resolution. When the
microcontroller is using the internal oscillator
block, the EUSART provides stable operation for
applications that talk to the outside world without
using an external crystal (or its accompanying
power requirement).
• 10-bit A/D Converter: This module incorporates
programmable acquisition time, allowing for a
channel to be selected and a conversion to be
initiated without waiting for a sampling period and
thus, reduce code overhead.
• Extended Watchdog Timer (WDT): This
enhanced version incorporates a 16-bit prescaler,
allowing a time-out range from 4 ms to over
131 seconds, that is stable across operating
voltage and temperature.
1.3 Details on Individual Family
Members
Devices in the PIC18F2585/2680/4585/4680 family are
available in 28-pin (PIC18F2X8X) and 40/44-pin
(PIC18F4X8X) packages. Block diagrams for the two
groups are shown in Figure 1-1 and Figure 1-2.
The devices are differentiated from each other in six
ways:
1. Flash program memory (48 Kbytes for
PIC18FX585 devices, 64 Kbytes for
PIC18FX680).
2. A/D channels (8 for PIC18F2X8X devices, 11 for
PIC18F4X8X devices).
3. I/O ports (3 bidirectional ports and 1 input only
port on PIC18F2X8X devices, 5 bidirectional
ports on PIC18F4X8X devices).
4. CCP1 and Enhanced CCP1 implementation
(PIC18F2X8X devices have 1 standard CCP1
module, PIC18F4X8X devices have one
standard CCP1 module and one ECCP1
module).
5. Parallel Slave Port (present only on
PIC18F4X8X devices).
6. PIC18F4X8X devices provide two comparators.
All other features for devices in this family are identical.
These are summarized in Table 1-1.
The pinouts for all devices are listed in Table 1-2 and
Table 1-3.
Like all Microchip PIC18 devices, members of the
PIC18F2585/2680/4585/4680 family are available as
both standard and low-voltage devices. Standard
devices with Enhanced Flash memory, designated with
an “F” in the part number (such as PIC18F2585),
accommodate an operating VDD range of 4.2V to 5.5V.
Low-voltage parts, designated by “LF” (such as
PIC18LF2585), function over an extended VDD range
of 2.0V to 5.5V.
DS39625C-page 8
Preliminary
© 2007 Microchip Technology Inc.