PIC18F2450/4450
Data Sheet
24/40/44-Pin High-Performance,
12 MIPS, Enhanced Flash,
USB Microcontrollers
with nanoWatt Technology
©
2008 Microchip Technology Inc.
DS39760D
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, Accuron,
dsPIC, K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro,
PICSTART, PRO MATE, rfPIC and SmartShunt are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
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, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, In-Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total
Endurance, UNI/O, 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.
© 2008, 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, 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.
DS39760D-page ii
©
2008 Microchip Technology Inc.
PIC18F2450/4450
28/40/44-Pin High-Performance, 12 MIPS, 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)
• 256-Byte Dual Access RAM for USB
• On-Chip USB Transceiver with On-Chip Voltage
Regulator
• Interface for Off-Chip USB Transceiver
Peripheral Highlights:
•
•
•
•
High-Current Sink/Source: 25 mA/25 mA
Three External Interrupts
Three Timer modules (Timer0 to Timer2)
Capture/Compare/PWM (CCP) module:
- Capture is 16-bit, max. resolution 5.2 ns
- Compare is 16-bit, max. resolution 83.3 ns
- PWM output: PWM resolution is 1 to 10-bit
• Enhanced USART module:
- LIN bus support
• 10-Bit, Up to 13-Channel Analog-to-Digital Converter
module (A/D):
- Up to 100 ksps sampling rate
- Programmable acquisition time
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.8
μA
Typical, 32 kHz, 2V
Watchdog Timer: 2.1
μA
Typical
Two-Speed Oscillator Start-up
Special Microcontroller Features:
• C Compiler Optimized Architecture with Optional
Extended Instruction Set
• Flash Memory 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 4 ms to 131s
• Programmable Code Protection
• Single-Supply In-Circuit Serial Programming™
(ICSP™) via Two Pins
• In-Circuit Debug (ICD) via Two Pins
• Optional Dedicated ICD/ICSP Port
(44-pin TQFP devices only)
• Wide Operating Voltage Range (2.0V to 5.5V)
Flexible Oscillator Structure:
• Four Crystal modes, including High-Precision PLL
for USB
• Two External Clock modes, up to 48 MHz
• Internal 31 kHz Oscillator
• 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
Program Memory
Device
Flash
(bytes)
16K
16K
# Single-Word
Instructions
8192
8192
Data
Memory
SRAM
(bytes)
768*
768*
I/O
10-Bit A/D
(ch)
10
13
CCP
EUSART
Timers
8/16-Bit
1/2
1/2
PIC18F2450
PIC18F4450
*
23
34
1
1
1
1
Includes 256 bytes of dual access RAM used by USB module and shared with data memory.
©
2008 Microchip Technology Inc.
DS39760D-page 1
PIC18F2450/4450
Pin Diagrams
28-Pin SPDIP, SOIC
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-
RA3/AN3/V
REF
+
RA4/T0CKI/RCV
RA5/AN4/HLVDIN
V
SS
OSC1/CLKI
OSC2/CLKO/RA6
RC0/T1OSO/T1CKI
RC1/T1OSI/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/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1
RB0/AN12/INT0
V
DD
V
SS
RC7/RX/DT
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
28-Pin QFN
RA1/AN1
RA0/AN0
MCLR/V
PP
/RE3
RB7/KBI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PGM
RB4/AN11/KBI0
28 27 26 25 24 23 22
RA2/AN2/V
REF
-
RA3/AN3/V
REF
+
RA4/T0CKI/RCV
RA5/AN4/HLVDIN
V
SS
OSC1/CLKI
OSC2/CLKO/RA6
1
2
3
4
5
6
7
21
20
19
18
17
16
15
RB3/AN9/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1
RB0/AN12/INT0
V
DD
V
SS
RC7/RX/DT
PIC18F2450
8 9 10 11 12 13 14
RC0/T1OSO/T1CKI
RC1/T1OSI/UOE
RC2/CCP1
V
USB
RC4/D-/VM
RC5/D+/VP
RC6/TX/CK
PIC18F2450
DS39760D-page 2
©
2008 Microchip Technology Inc.
PIC18F2450/4450
Pin Diagrams (Continued)
40-Pin PDIP
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-
RA3/AN3/V
REF
+
RA4/T0CKI/RCV
RA5/AN4/HLVDIN
RE0/AN5
RE1/AN6
RE2/AN7
V
DD
V
SS
OSC1/CLKI
OSC2/CLKO/RA6
RC0/T1OSO/T1CKI
RC1/T1OSI/UOE
RC2/CCP1
V
USB
RD0
RD1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/KBI3/PGD
RB6/KBI2/PGC
RB5/KBI1/PGM
RB4/AN11/KBI0
RB3/AN9/VPO
RB2/AN8/INT2/VMO
RB1/AN10/INT1
RB0/AN12/INT0
V
DD
V
SS
RD7
RD6
RD5
RD4
RC7/RX/DT
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3
RD2
44
43
42
41
40
39
38
37
36
35
34
RC6/TX/CK
RC5/D+/VP
RC4/D-/VM
RD3
RD2
RD1
RD0
V
USB
RC2/CCP1
RC1/T1OSI/UOE
RC0/T1OSO/T1CKI
44-Pin QFN
PIC18F4450
©
2008 Microchip Technology Inc.
RB3/AN9/VPO
NC
RB4/AN11/KBI0
RB5/KBI1/PGM
RB6/KBI2/PGC
RB7/KBI3/PGD
MCLR/V
PP
/RE3
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-
RA3/AN3/V
REF
+
12
13
14
15
16
17
18
19
20
21
22
RC7/RX/DT
RD4
RD5
RD6
RD7
V
SS
AV
DD
V
DD
RB0/AN12/INT0
RB1/AN10/INT1
RB2/AN8/INT2/VMO
1
2
3
4
5
6
7
8
9
10
11
PIC18F4450
33
32
31
30
29
28
27
26
25
24
23
OSC2/CLKO/RA6
OSC1/CLKI
V
SS
AV
SS
V
DD
AV
DD
RE2/AN7
RE1/AN6
RE0/AN5
RA5/AN4/HLVDIN
RA4/T0CKI/RCV
DS39760D-page 3