Transcription of PIC18F2455/2550/4455/4550 Data Sheet
1 2004 Microchip Technology Sheet28/40/44-Pin High-Performance,Enhanced Flash USB Microcontrollerswith nanoWatt TechnologyDS39632B-page iiPreliminary 2004 Microchip Technology contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your 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 NOTLIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,MERCHANTABILITY OR FITNESS FOR disclaims all liability arising from this information andits use.
2 Use of Microchip s products as critical components inlife support systems is not authorized except with expresswritten approval by Microchip. No licenses are conveyed,implicitly or otherwise, under any Microchip intellectual Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfPIC, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the and other , FilterLab, Migratable Memory, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the Age, Application Maestro, dsPICDEM, , dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, , PICLAB, PICtail.
3 PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the and other is a service mark of Microchip Technology Incorporated in the other trademarks mentioned herein are property of their respective companies. 2004, Microchip Technology Incorporated, Printed in the , All Rights Reserved. Printed on recycled 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.
4 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 ourproducts.
5 Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that 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, 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.
6 2004 Microchip Technology 1 PIC18F2455/2550/4455/4550 Universal Serial Bus Features: USB Compliant Low Speed ( 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)Power-Managed Modes: Run: CPU on, peripherals on Idle: CPU off, peripherals on Sleep: CPU off, peripherals off Idle mode currents down to A typical Sleep mode currents down to A typical Timer1 oscillator: A typical, 32 kHz, 2V Watchdog Timer: A typical Two-Speed Oscillator Start-upFlexible 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 stopsPeripheral Highlights.
7 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 ns (TCY/16)- Compare is 16-bit, max. resolution 100 ns (TCY)- 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 I2C 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 multiplexingSpecial Microcontroller Features.
8 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 ( to )DeviceProgram MemoryData MemoryI/O10-bit A/D (ch)CCP/ECCP(PWM)SPPMSSPEAUSARTC omparatorsTimers8/16-bitFlash(bytes)# Single-WordInstructionsSRAM(bytes)EEPROM (bytes)
9 SPI MasterI2C PIC18F245524K12288204825624102/0 NoYY121/3 PIC18F255032K16384204825624102/0 NoYY121/3 PIC18F445524K12288204825635131/1 YesYY121/3 PIC18F455032K16384204825635131/1 YesYY121/328/40/44-Pin High-Performance, Enhanced Flash USB Microcontrollers with nanoWatt TechnologyPIC18F2455/2550/4455/4550DS396 32B-page 2 Preliminary 2004 Microchip Technology Diagrams 40-Pin PDIPPIC18F245528-Pin PDIP, SOICPIC18F255010112345618791213141516171 819202324252627282221 MCLR/VPP/RE3RA0/AN0RA1/AN1RA2/AN2/VREF-/ CVREFRA3/AN3/VREF+RA4/T0 CKI/C1 OUT/RCVRA5/AN4/SS/HLVDIN/C2 OUTVSSOSC1/CLKIOSC2/CLKO/RA6RC0/T1 OSO/T13 CKIRC1/T1 OSI/CCP2(1)/UOERC2/CCP1 VUSBRB7/KBI3/PGDRB6/KBI2/PGCRB5/KBI1/PGM RB4/AN11/KBI0RB3/AN9/CCP2(1)/VPORB2/AN8/ INT2/VMORB1/AN10/INT1/SCK/SCLRB0/AN12/IN T0/FLT0/SDI/SDAVDDVSSRC7/RX/DT/SDORC6/TX /CKRC5/D+/VPRC4/D-/VMRB7/KBI3/PGDRB6/KBI 2/PGCRB5/KBI1/PGMRB4/AN11/KBI0/CSSPPRB3/ AN9/CCP2(1)/VPORB2/AN8/INT2/VMORB1/AN10/ INT1/SCK/SCLRB0/AN12/INT0/FLT0/SDI/SDAVD DVSSRD7/SPP7/P1 DRD6/SPP6/P1 CRD5/SPP5/P1 BRD4/SPP4RC7/RX/DT/SDORC6/TX/CKRC5/D+/VP RC4/D-/VMRD3/SPP3RD2/SPP2 MCLR/VPP/RE3RA0/AN0RA1/AN1RA2/AN2/VREF-/ CVREFRA3/AN3/VREF+RA4/T0 CKI/C1 OUT/RCVRA5/AN4/SS/HLVDIN/C2 OUTRE0/AN5/CK1 SPPRE1/AN6/CK2 SPPRE2/AN7/OESPPVDDVSSOSC1/CLKIOSC2/CLKO /RA6RC0/T1 OSO/T13 CKIRC1/T1 OSI/CCP2(1)/UOERC2/CCP1/P1 AVUSBRD0/SPP0RD1/SPP11234567891011121314 1516171819204039383736353433323130292827 262524232221 PIC18F4455 PIC18F4550 Note 1.
10 RB3 is the alternate pin for CCP2 multiplexing. 2004 Microchip Technology 3 PIC18F2455/2550/4455/4550 Pin Diagrams (Continued) PIC18F445544-Pin TQFP44-Pin QFNPIC18F4455 PIC18F4550 PIC18F4550101123611819202122121314153887 4443424140391617293031323323242526272836 3435937RA3/AN3/VREF+RA2/AN2/VREF-/CVREFR A1/AN1RA0/AN0 MCLR/VPP/RE3NC/ICCK(2)/ICPGC(2)RB7/KBI3/ PGDRB6/KBI2/PGCRB5/KBI1/PGMRB4/AN11/KBI0 /CSSPPNC/ICDT(2)/ICPGD(2)RC6/TX/CKRC5/D+ /VPRC4/D-/VMRD3/SPP3RD2/SPP2RD1/SPP1RD0/ SPP0 VUSBRC2/CCP1/P1 ARC1/T1 OSI/CCP2(1)/UOENC/ICPORTS(2)NC/ICRST(2)/ ICVPP(2)RC0/T1 OSO/T13 CKIOSC2/CLKO/RA6 OSC1/CLKIVSSVDDRE2/AN7/OESPPRE1/AN6/CK2 SPPRE0/AN5/CK1 SPPRA5/AN4/SS/HLVDIN/C2 OUTRA4/T0 CKI/C1 OUT/RCVRC7/RX/DT/SDORD4/SPP4RD5/SPP5/P1 BRD6/SPP6/P1 CVSSVDDRB0/AN12/INT0/FLT0/SDI/SDARB1/AN1 0/INT1/SCK/SCLRB2/AN8/INT2/VMORB3/AN9/CC P2(1)/VPORD7/SPP7/P1D5410112361181920212 2121314153887444342414039161729303132332 32425262728363435937RA3/AN3/VREF+RA2/AN2 /VREF-/CVREFRA1/AN1RA0/AN0 MCLR/VPP/RE3RB7/KBI3/PGDRB6/KBI2/PGCRB5/ KBI1/PGMRB4/AN11/KBI0/CSSPPNCRC6/TX/CKRC 5/D+/VPRC4/D-/VMRD3/SPP3RD2/SPP2RD1/SPP1 RD0/SPP0 VUSBRC2/CCP1/P1 ARC1/T1 OSI/CCP2(1)