AT89S52Word文件下载.docx

上传人:b****3 文档编号:14934488 上传时间:2022-10-26 格式:DOCX 页数:9 大小:48.46KB
下载 相关 举报
AT89S52Word文件下载.docx_第1页
第1页 / 共9页
AT89S52Word文件下载.docx_第2页
第2页 / 共9页
AT89S52Word文件下载.docx_第3页
第3页 / 共9页
AT89S52Word文件下载.docx_第4页
第4页 / 共9页
AT89S52Word文件下载.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

AT89S52Word文件下载.docx

《AT89S52Word文件下载.docx》由会员分享,可在线阅读,更多相关《AT89S52Word文件下载.docx(9页珍藏版)》请在冰豆网上搜索。

AT89S52Word文件下载.docx

•4.0Vto5.5VOperatingRange

•FullyStaticOperation:

0Hzto33MHz

•Three-levelProgramMemoryLock

•256x8-bitInternalRAM

•32ProgrammableI/OLines

•Three16-bitTimer/Counters

•EightInterruptSources

•FullDuplexUARTSerialChannel

•Low-powerIdleandPower-downModes

•InterruptRecoveryfromPower-downMode

•WatchdogTimer•DualDataPointer

•Power-offFlag•FastProgrammingTime

•FlexibleISPProgramming(ByteandPageMode)

•Green(Pb/Halide-free)PackagingOption

1.Description

TheAT89S52isalow-power,high-performanceCMOS8-bitmicrocontrollerwith8Kbytesofin-systemprogrammableFlashmemory.ThedeviceismanufacturedusingAtmel’shigh-densitynonvolatilememorytechnologyandiscompatiblewiththeindus-try-standard80C51instructionsetandpinout.Theon-chipFlashallowstheprogrammemorytobereprogrammedin-systemorbyaconventionalnonvolatilememorypro-grammer.Bycombiningaversatile8-bitCPUwithin-systemprogrammableFlashonamonolithicchip,theAtmelAT89S52isapowerfulmicrocontrollerwhichprovidesahighly-flexibleandcost-effectivesolutiontomanyembeddedcontrolapplications.

TheAT89S52providesthefollowingstandardfeatures:

8KbytesofFlash,256bytesofRAM,32I/Olines,Watchdogtimer,twodatapointers,three16-bittimer/counters,asix-vectortwo-levelinterruptarchitecture,afullduplexserialport,on-chiposcillator,andclockcircuitry.Inaddition,theAT89S52isdesignedwithstaticlogicforoperationdowntozerofrequencyandsupportstwosoftwareselectablepowersavingmodes.TheIdleModestopstheCPUwhileallowingtheRAM,timer/counters,serialport,andinterruptsystemtocontinuefunctioning.ThePower-downmodesavestheRAMcon-tentsbutfreezestheoscillator,disablingallotherchipfunctionsuntilthenextinterruptorhardwarereset.

2.PinDescription

VCC:

Supplyvoltage.

GND:

Ground.

Port0:

Port0isan8-bitopendrainbidirectionalI/Oport.Asanoutputport,eachpincansinkeightTTLinputs.When1sarewrittentoport0pins,thepinscanbeusedashigh-impedanceinputs.Port0canalsobeconfiguredtobethemultiplexedlow-orderaddress/databusduringaccessestoexternalprogramanddatamemory.Inthismode,P0hasinternalpull-ups.Port0alsoreceivesthecodebytesduringFlashprogrammingandoutputsthecodebytesdur-ingprogramverification.Externalpull-upsarerequiredduringprogramverification.

Port1:

Port1isan8-bitbidirectionalI/Oportwithinternalpull-ups.ThePort1outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort1pins,theyarepulledhighbytheinter-nalpull-upsandcanbeusedasinputs.Asinputs,Port1pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpull-ups.Inaddition,P1.0andP1.1canbeconfiguredtobethetimer/counter2externalcountinput(P1.0/T2)andthetimer/counter2triggerinput(P1.1/T2EX),respectively,asshowninthefollow-ingtable.

Port1alsoreceivesthelow-orderaddressbytesduringFlashprogrammingandverification.

Table1

PortPin

AlternateFunctions

P1.0

T2(externalcountinputtoTimer/Counter2),clock-out

P1.1

T2EX(Timer/Counter2capture/reloadtriggeranddirectioncontrol)

P1.5

MOSI(usedforIn-SystemProgramming)

P1.6

MISO(usedforIn-SystemProgramming)

P1.7

SCK(usedforIn-SystemProgramming)

Port2:

Port2isan8-bitbidirectionalI/Oportwithinternalpull-ups.ThePort2outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort2pins,theyarepulledhighbytheinter-nalpull-upsandcanbeusedasinputs.Asinputs,Port2pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpull-ups.Port2emitsthehigh-orderaddressbyteduringfetchesfromexternalprogrammemoryanddur-ingaccessestoexternaldatamemorythatuse16-bitaddresses(MOVX@DPTR).Inthisapplication,Port2usesstronginternalpull-upswhenemitting1s.Duringaccessestoexternaldatamemorythatuse8-bitaddresses(MOVX@RI),Port2emitsthecontentsoftheP2SpecialFunctionRegister.Port2alsoreceivesthehigh-orderaddressbitsandsomecontrolsignalsduringFlashprogram-mingandverification.

Port3:

Port3isan8-bitbidirectionalI/Oportwithinternalpull-ups.ThePort3outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort3pins,theyarepulledhighbytheinter-nalpull-upsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseofthepull-ups.Port3receivessomecontrolsignalsforFlashprogrammingandverification.Port3alsoservesthefunctionsofvariousspecialfeatu

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 小学教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1