ATmega8-16AU

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

2486QS–AVR–10/06Features�High-performance,Low-powerAVR®8-bitMicrocontroller�AdvancedRISCArchitecture–130PowerfulInstructions–MostSingle-clockCycleExecution–32x8GeneralPurposeWorkingRegisters–FullyStaticOperation–Upto16MIPSThroughputat16MHz–On-chip2-cycleMultiplier�NonvolatileProgramandDataMemories–8KBytesofIn-SystemSelf-ProgrammableFlashEndurance:10,000Write/EraseCycles–OptionalBootCodeSectionwithIndependentLockBitsIn-SystemProgrammingbyOn-chipBootProgramTrueRead-While-WriteOperation–512BytesEEPROMEndurance:100,000Write/EraseCycles–1KByteInternalSRAM–ProgrammingLockforSoftwareSecurity�PeripheralFeatures–Two8-bitTimer/CounterswithSeparatePrescaler,oneCompareMode–One16-bitTimer/CounterwithSeparatePrescaler,CompareMode,andCaptureMode–RealTimeCounterwithSeparateOscillator–ThreePWMChannels–8-channelADCinTQFPandQFN/MLFpackageEightChannels10-bitAccuracy–6-channelADCinPDIPpackageEightChannels10-bitAccuracy–Byte-orientedTwo-wireSerialInterface–ProgrammableSerialUSART–Master/SlaveSPISerialInterface–ProgrammableWatchdogTimerwithSeparateOn-chipOscillator–On-chipAnalogComparator�SpecialMicrocontrollerFeatures–Power-onResetandProgrammableBrown-outDetection–InternalCalibratedRCOscillator–ExternalandInternalInterruptSources–FiveSleepModes:Idle,ADCNoiseReduction,Power-save,Power-down,andStandby�I/OandPackages–23ProgrammableI/OLines–28-leadPDIP,32-leadTQFP,and32-padQFN/MLF�OperatingVoltages–2.7-5.5V(ATmega8L)–4.5-5.5V(ATmega8)�SpeedGrades–0-8MHz(ATmega8L)–0-16MHz(ATmega8)�PowerConsumptionat4Mhz,3V,25°C–Active:3.6mA–IdleMode:1.0mA–Power-downMode:0.5µA8-bitwith8KBytesIn-SystemProgrammableFlashATmega8ATmega8L2ATmega8(L)2486QS–AVR–10/06PinConfigurations123456782423222120191817(INT1)PD3(XCK/T0)PD4GNDVCCGNDVCC(XTAL1/TOSC1)PB6(XTAL2/TOSC2)PB7PC1(ADC1)PC0(ADC0)ADC7GNDAREFADC6AVCCPB5(SCK)3231302928272625910111213141516(T1)PD5(AIN0)PD6(AIN1)PD7(ICP1)PB0(OC1A)PB1(SS/OC1B)PB2(MOSI/OC2)PB3(MISO)PB4PD2(INT0)PD1(TXD)PD0(RXD)PC6(RESET)PC5(ADC5/SCL)PC4(ADC4/SDA)PC3(ADC3)PC2(ADC2)TQFPTopView12345678910111213142827262524232221201918171615(RESET)PC6(RXD)PD0(TXD)PD1(INT0)PD2(INT1)PD3(XCK/T0)PD4VCCGND(XTAL1/TOSC1)PB6(XTAL2/TOSC2)PB7(T1)PD5(AIN0)PD6(AIN1)PD7(ICP1)PB0PC5(ADC5/SCL)PC4(ADC4/SDA)PC3(ADC3)PC2(ADC2)PC1(ADC1)PC0(ADC0)GNDAREFAVCCPB5(SCK)PB4(MISO)PB3(MOSI/OC2)PB2(SS/OC1B)PB1(OC1A)PDIP1234567824232221201918173231302928272625910111213141516MLFTopView(INT1)PD3(XCK/T0)PD4GNDVCCGNDVCC(XTAL1/TOSC1)PB6(XTAL2/TOSC2)PB7PC1(ADC1)PC0(ADC0)ADC7GNDAREFADC6AVCCPB5(SCK)(T1)PD5(AIN0)PD6(AIN1)PD7(ICP1)PB0(OC1A)PB1(SS/OC1B)PB2(MOSI/OC2)PB3(MISO)PB4PD2(INT0)PD1(TXD)PD0(RXD)PC6(RESET)PC5(ADC5/SCL)PC4(ADC4/SDA)PC3(ADC3)PC2(ADC2)NOTE:ThelargecenterpadunderneaththeMLFpackagesismadeofmetalandinternallyconnectedtoGND.ItshouldbesolderedorgluedtothePCBtoensuregoodmechanicalstability.Ifthecenterpadisleftunconneted,thepackagemightloosenfromthePCB.3ATmega8(L)2486QS–AVR–10/06OverviewTheATmega8isalow-powerCMOS8-bitmicrocontrollerbasedontheAVRRISCarchitecture.Byexecutingpowerfulinstructionsinasingleclockcycle,theATmega8achievesthroughputsapproaching1MIPSperMHz,allowingthesystemdesignertooptimizepowerconsumptionversusprocessingspeed.BlockDiagramFigure1.BlockDiagramINTERNALOSCILLATOROSCILLATORWATCHDOGTIMERMCUCTRL.&TIMINGOSCILLATORTIMERS/COUNTERSINTERRUPTUNITSTACKPOINTEREEPROMSRAMSTATUSREGISTERUSARTPROGRAMCOUNTERPROGRAMFLASHINSTRUCTIONREGISTERINSTRUCTIONDECODERPROGRAMMINGLOGICSPIADCINTERFACECOMP.INTERFACEPORTCDRIVERS/BUFFERSPORTCDIGITALINTERFACEGENERALPURPOSEREGISTERSXYZALU+-PORTBDRIVERS/BUFFERSPORTBDIGITALINTERFACEPORTDDIGITALINTERFACEPORTDDRIVERS/BUFFERSXTAL1XTAL2CONTROLLINESVCCGNDMUX&ADCAGNDAREFPC0-PC6PB0-PB7PD0-PD7AVRCPUTWIRESET4ATmega8(L)2486QS–AVR–10/06TheAVRcorecombinesarichinstructionsetwith32generalpurposeworkingregisters.Allthe32registersaredirectlyconnectedtotheArithmeticLogicUnit(ALU),allowingtwoindependentregisterstobeaccessedinonesingleinstructionexecutedinoneclockcycle.TheresultingarchitectureismorecodeefficientwhileachievingthroughputsuptotentimesfasterthanconventionalCISCmicrocontrollers.TheATmega8providesthefollowingfeatures:8KbytesofIn-SystemProgrammableFlashwithRead-While-Writecapabilities,512bytesofEEPROM,1KbyteofSRAM,23generalpurposeI/Olines,32generalpurposeworkingregisters,threeflexibleTimer/Counterswithcomparemodes,internalandexternalinterrupts,aserialprogram-mableUSART,abyteorientedTwo-wireSerialInterface,a6-channelADC(eightchannelsinTQFPandQFN/MLFpackages)with10-bitaccuracy,aprogrammableWatchdogTimerwithInternalOscillator,anSPIserialport,andfivesoftwareselectablepowersavingmodes.TheIdlemodestopstheCPUwhileallowingtheSRAM,Timer/Counters,SPIport,andinterruptsystemtocontinuefunctioning.ThePower-downmodesavestheregistercontentsbutfreezestheOscillator,disablingallotherchipfunctionsuntilthenextInterruptorHardwareReset.InPower-savemode,theasynchronoustimercontinuestorun,allowingtheusertomaintainatimerbasewhiletherestofthedeviceissleeping.TheADCNoiseReductionmodestopstheCPUandallI/OmodulesexceptasynchronoustimerandADC,tominimizeswitchingnoiseduringADCconver

1 / 23
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功