PIC18F2455/2550/4455/4550
Data Sheet
28/40/44-Pin High-Performance,
Enhanced Flash USB Microcontrollers
with nanoWatt Technology
2004 Microchip Technology Inc.
Preliminary
DS39632B
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 WAR-
RANTIES 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’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 Microchip intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
PICMASTER, SEEVAL, SmartSensor 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, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK,
MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel and Total
Endurance 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.
© 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.
DS39632B-page ii
Preliminary
2004 Microchip Technology Inc.
PIC18F2455/2550/4455/4550
28/40/44-Pin High-Performance, Enhanced Flash USB
Microcontrollers with nanoWatt Technology
Universal Serial Bus Features:
• USB V2.0 Compliant
• Low Speed (1.5 Mb/s) and Full Speed (12 Mb/s)
• Supports Control, Interrupt, Isochronous and Bulk
Transfers
• Supports up to 32 endpoints (16 bidirectional)
• 1-Kbyte dual access RAM for USB
• On-chip USB transceiver with on-chip voltage
regulator
• Interface for off-chip USB transceiver
• Streaming Parallel Port (SPP) for USB streaming
transfers (40/44-pin devices only)
Peripheral Highlights:
•
•
•
•
High-current sink/source 25 mA/25 mA
Three external interrupts
Four Timer modules (Timer0 to Timer3)
Up to 2 Capture/Compare/PWM (CCP) modules:
- 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:
- Multiple output modes
- Selectable polarity
- Programmable dead time
- Auto-Shutdown and Auto-Restart
Enhanced USART module:
- LIN bus support
Master Synchronous Serial Port (MSSP) module
supporting 3-wire SPI™ (all 4 modes) and I
2
C™
Master and Slave modes
10-bit, up to 13-channels Analog-to-Digital Converter
module (A/D) with programmable acquisition time
Dual analog comparators with input multiplexing
•
Power-Managed Modes:
•
•
•
•
•
•
•
•
Run: CPU on, peripherals on
Idle: CPU off, peripherals on
Sleep: CPU off, peripherals off
Idle mode currents down to 5.8
µA
typical
Sleep mode currents down to 0.1
µA
typical
Timer1 oscillator: 1.1
µA
typical, 32 kHz, 2V
Watchdog Timer: 2.1
µA
typical
Two-Speed Oscillator Start-up
•
•
•
•
Flexible Oscillator Structure:
• Four Crystal modes including High Precision PLL
for USB
• Two External Clock modes, up to 48 MHz
• Internal oscillator block:
- 8 user-selectable frequencies, from
31 kHz to 8 MHz
- User-tunable to compensate for frequency drift
• Secondary oscillator using Timer1 @ 32 kHz
• Dual oscillator options allow microcontroller and
USB module to run at different clock speeds
• Fail-Safe Clock Monitor
- Allows for safe shutdown if any clock stops
Special Microcontroller Features:
• C compiler optimized architecture with optional
extended instruction set
• 100,000 erase/write cycle Enhanced Flash
program memory typical
• 1,000,000 erase/write cycle Data EEPROM
memory typical
• Flash/Data EEPROM Retention: > 40 years
• Self-programmable under software control
• Priority levels for interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 41 ms to 131s
• Programmable Code Protection
• Single-Supply 5V In-Circuit Serial
Programming™ (ICSP™) via two pins
• In-Circuit Debug (ICD) via two pins
• Optional dedicated ICD/ICSP port (44-pin devices only)
• Wide operating voltage range (2.0V to 5.5V)
EAUSART
MSSP
I/O
10-bit CCP/ECCP
A/D (ch) (PWM)
10
10
13
13
2/0
2/0
1/1
1/1
SPP
Master
SPI™
I
2
C™
Y
Y
Y
Y
Y
Y
Y
Y
Comparators
2
2
2
2
Program Memory
Device
Data Memory
Flash # Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
24K
32K
24K
32K
12288
16384
12288
16384
2048
2048
2048
2048
256
256
256
256
Timers
8/16-bit
1/3
1/3
1/3
1/3
PIC18F2455
PIC18F2550
PIC18F4455
PIC18F4550
24
24
35
35
No
No
Yes
Yes
1
1
1
1
2004 Microchip Technology Inc.
Preliminary
DS39632B-page 1
PIC18F2455/2550/4455/4550
Pin Diagrams
28-Pin PDIP, SOIC
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
RA4/T0CKI/C1OUT/RCV
RA5/AN4/SS/HLVDIN/C2OUT
V
SS
OSC1/CLKI
OSC2/CLKO/RA6
RC0/T1OSO/T13CKI
RC1/T1OSI/CCP2
(1)
/UOE
RC2/CCP1
V
USB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RB7/KBI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PGM
RB4/AN11/KBI0
RB3/AN9/CCP2
(1)
/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1/SCK/SCL
RB0/AN12/INT0/FLT0/SDI/SDA
V
DD
V
SS
RC7/RX/DT/SDO
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
40-Pin PDIP
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
RA4/T0CKI/C1OUT/RCV
RA5/AN4/SS/HLVDIN/C2OUT
RE0/AN5/CK1SPP
RE1/AN6/CK2SPP
RE2/AN7/OESPP
V
DD
V
SS
OSC1/CLKI
OSC2/CLKO/RA6
RC0/T1OSO/T13CKI
RC1/T1OSI/CCP2
(1)
/UOE
RC2/CCP1/P1A
V
USB
RD0/SPP0
RD1/SPP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RB7/KBI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PGM
RB4/AN11/KBI0/CSSPP
RB3/AN9/CCP2
(1)
/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1/SCK/SCL
RB0/AN12/INT0/FLT0/SDI/SDA
V
DD
V
SS
RD7/SPP7/P1D
RD6/SPP6/P1C
RD5/SPP5/P1B
RD4/SPP4
RC7/RX/DT/SDO
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3/SPP3
RD2/SPP2
PIC18F2455
PIC18F2550
PIC18F4455
PIC18F4550
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
Note 1:
RB3 is the alternate pin for CCP2 multiplexing.
DS39632B-page 2
Preliminary
2004 Microchip Technology Inc.
PIC18F2455/2550/4455/4550
Pin Diagrams (Continued)
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3/SPP3
RD2/SPP2
RD1/SPP1
RD0/SPP0
V
USB
RC2/CCP1/P1A
RC1/T1OSI/CCP2
(1)
/UOE
NC/ICPORTS
(2)
44
43
42
41
40
39
38
37
36
35
34
44-Pin TQFP
44-Pin QFN
44
43
42
41
40
39
38
37
36
35
34
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3/SPP3
RD2/SPP2
RD1/SPP1
RD0/SPP0
V
USB
RC2/CCP1/P1A
RC1/T1OSI/CCP2
(1)
/UOE
RC0/T1OSO/T13CKI
NC/ICCK
(2)
/ICPGC
(2)
NC/ICDT
(2)
/ICPGD
(2)
RB4/AN11/KBI0/CSSPP
RB5/KBI1/PGM
RB6/KBI2/PGC
RB7/KBI3/PGD
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
12
13
14
15
16
17
18
19
20
21
22
RC7/RX/DT/SDO
RD4/SPP4
RD5/SPP5/P1B
RD6/SPP6/P1C
RD7/SPP7/P1D
V
SS
V
DD
RB0/AN12/INT0/FLT0/SDI/SDA
RB1/AN10/INT1/SCK/SCL
RB2/AN8/INT2/VMO
RB3/AN9/CCP2
(1)
/VPO
1
2
3
4
5
6
7
8
9
10
11
PIC18F4455
PIC18F4550
33
32
31
30
29
28
27
26
25
24
23
NC/ICRST
(2)
/ICV
PP
(2)
RC0/T1OSO/T13CKI
OSC2/CLKO/RA6
OSC1/CLKI
V
SS
V
DD
RE2/AN7/OESPP
RE1/AN6/CK2SPP
RE0/AN5/CK1SPP
RA5/AN4/SS/HLVDIN/C2OUT
RA4/T0CKI/C1OUT/RCV
Note 1:
2:
RB3 is the alternate pin for CCP2 multiplexing.
Special ICPORTS features available in select circumstances. See
Section 25.9 “Special ICPORT Features (Designated
Packages Only)”
for more information.
2004 Microchip Technology Inc.
Preliminary
RB3/AN9/CCP2
(1)
/VPO
NC
RB4/AN11/KBI0/CSSPP
RB5/KBI1/PGM
RB6/KBI2/PGC
RB7/KBI3/PGD
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
12
13
14
15
16
17
18
19
20
21
22
RC7/RX/DT/SDO
RD4/SPP4
RD5/SPP5/P1B
RD6/SPP6/P1C
RD7/SPP7/P1D
V
SS
V
DD
V
DD
RB0/AN12/INT0/FLT0/SDI/SDA
RB1/AN10/INT1/SCK/SCL
RB2/AN8/INT2/VMO
1
2
3
4
5
6
7
8
9
10
11
PIC18F4455
PIC18F4550
33
32
31
30
29
28
27
26
25
24
23
OSC2/CLKO/RA6
OSC1/CLKI
V
SS
V
SS
V
DD
V
DD
RE2/AN7/OESPP
RE1/AN6/CK2SPP
RE0/AN5/CK1SPP
RA5/AN4/SS/HLVDIN/C2OUT
RA4/T0CKI/C1OUT/RCV
DS39632B-page 3