Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 11|Likes:
Published by Isilare
Datasheet 18f4520
Datasheet 18f4520

More info:

Published by: Isilare on Oct 24, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





2008 Microchip Technology Inc.DS39631E
PIC18F2420/2520/4420/4520Data Sheet
28/40/44-Pin Enhanced FlashMicrocontrollers with 10-Bit A/Dand nanoWatt Technology
DS39631E-page ii
2008 Microchip Technology Inc.Information 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 specifications.MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, PERFORMANCE, MERCHANTABILITY ORFITNESS FOR PURPOSE
Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer’s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use. No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property rights.
The Microchip name and logo, the Microchip logo, Accuron,dsPIC, K
, K
logo, MPLAB, PIC, PICmicro,PICSTART, rfPIC, SmartShunt and UNI/O are registeredtrademarks of Microchip Technology Incorporated in theU.S.A. and other countries.FilterLab, Linear Active Thermistor, MXDEV, MXLAB,SEEVAL, SmartSensor and The Embedded Control SolutionsCompany are registered trademarks of Microchip TechnologyIncorporated in the U.S.A.Analog-for-the-Digital Age, Application Maestro, CodeGuard,dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,ECONOMONITOR, FanSense, In-Circuit SerialProgramming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLABCertified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,PICDEM.net, PICtail, PIC
logo, PowerCal, PowerInfo,PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, TotalEndurance, 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 Incorporatedin the U.S.A.All other trademarks mentioned herein are property of their respective companies.© 2008, Microchip Technology Incorporated, Printed in theU.S.A., All Rights Reserved.Printed on recycled paper.
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 theintended 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 DataSheets. 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 notmean 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 actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
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 
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.
2008 Microchip Technology Inc.DS39631E-page 1
Power Management Features:
Run: CPU on, Peripherals onIdle: CPU off, Peripherals onSleep: CPU off, Peripherals off Ultra Low 50nA Input LeakageRun mode Currents Down to 11
A TypicalIdle mode Currents Down to 2.5
A TypicalSleep mode Current Down to 100nA TypicalTimer1 Oscillator: 900 nA, 32kHz, 2VWatchdog Timer: 1.4
A, 2V TypicalTwo-Speed Oscillator Start-up
Flexible Oscillator Structure:
Four Crystal modes, up to 40MHz4x Phase Lock Loop (PLL) – Available for Crystaland Internal OscillatorsTwo External RC modes, up to 4 MHzTwo External Clock modes, up to 40 MHzInternal Oscillator Block:-Fast wake from Sleep and Idle, 1
s typical-8 use-selectable frequencies, from 31kHz to8MHz-Provides a complete range of clock speedsfrom 31kHz to 32MHz when used with PLL-User-tunable to compensate for frequency driftSecondary Oscillator using Timer1 @ 32 kHzFail-Safe Clock Monitor:-Allows for safe shutdown if peripheral clock stops
Peripheral Highlights:
High-Current Sink/Source 25mA/25mAThree Programmable External InterruptsFour Input Change InterruptsUp to 2 Capture/Compare/PWM (CCP) modules,one with Auto-Shutdown (28-pin devices)Enhanced Capture/Compare/PWM (ECCP)module (40/44-pin devices only):-One, two or four PWM outputs-Selectable polarity-Programmable dead time-Auto-shutdown and auto-restart
Peripheral Highlights (Continued):
Master Synchronous Serial Port (MSSP) moduleSupporting 3-Wire SPI (all 4 modes) and I
C™Master and Slave modesEnhanced Addressable USART module:-Supports RS-485, RS-232 and LIN/J2602-RS-232 operation using internal oscillator block (no external crystal required)-Auto-wake-up on Start bit-Auto-Baud Detect10-Bit, up to 13-Channel Analog-to-Digital (A/D)Converter module:-Auto-acquisition capability-Conversion available during SleepDual Analog Comparators with Input MultiplexingProgrammable 16-Level High/Low-VoltageDetection (HLVD) module:-Supports interrupt on High/Low-Voltage Detection
Special Microcontroller Features:
C Compiler Optimized Architecture:-Optional extended instruction set designed tooptimize re-entrant code100,000 Erase/Write Cycle Enhanced FlashProgram Memory Typical1,000,000 Erase/Write Cycle Data EEPROMMemory TypicalFlash/Data EEPROM Retention: 100 Years TypicalSelf-Programmable under Software ControlPriority Levels for Interrupts8 x 8 Single-Cycle Hardware Multiplier Extended Watchdog Timer (WDT):-Programmable period from 4ms to 131sSingle-Supply 5V In-Circuit SerialProgramming™ (ICSP™) via Two PinsIn-Circuit Debug (ICD) via Two PinsWide Operating Voltage Range: 2.0V to 5.5VProgrammable Brown-out Reset (BOR) withSoftware Enable Option
DeviceProgram MemoryData MemoryI/O10-BitA/D (ch)CCP/ECCP(PWM)MSSP
   E   U   S   A   R   T
Comp.Timers8/16-BitFlash(bytes)# Single-WordInstructionsSRAM(bytes)EEPROM(bytes)SPIMasterI
28/40/44-Pin Enhanced Flash Microcontrollers with10-Bit A/D and nanoWatt Technology

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->