AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx

上传人:聆听****声音 文档编号:566483 上传时间:2023-04-29 格式:DOCX 页数:24 大小:34.65KB
下载 相关 举报
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第1页
第1页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第2页
第2页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第3页
第3页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第4页
第4页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第5页
第5页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第6页
第6页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第7页
第7页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第8页
第8页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第9页
第9页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第10页
第10页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第11页
第11页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第12页
第12页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第13页
第13页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第14页
第14页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第15页
第15页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第16页
第16页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第17页
第17页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第18页
第18页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第19页
第19页 / 共24页
AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx_第20页
第20页 / 共24页
亲,该文档总共24页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx

《AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx》由会员分享,可在线阅读,更多相关《AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx(24页珍藏版)》请在冰点文库上搜索。

AT89S52单片机 外文文献 英文文献 外文翻译中英对照.docx

AT89S52

Features

•CompatiblewithMCS-51Products

•8KBytesofIn-SystemProgrammable(ISP)FlashMemory一Endurance:

10,000Write/EraseCycles

•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.ThedeviceismanufacturedusingAtmeFshigh-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.WhenIsarewrittentoport0pins,thepinscanbeusedashigh-impedanceinputs.Port0canalsobeconfiguredtobethemultiplexedlow-orderaddress/databusduringaccessestoexternalprogramanddatamemory.Inthismode,P0hasinternalpull-ups.Port0alsoreceivesthecodebytesduringFlashprogrammingandoutputsthecodebytesdur-ingprogramverification.Externalpull-upsarerequiredduringprogramverification.

Port1:

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

Port1alsoreceivesthelow-orderaddressbytesduringFlashprogrammingandverification.

Tablel

PortPin

AlternateFunctions

Pl.0

T2(externalcountinputtoTimer/Counter2),clock-out

Pl.l

T2EX(Timer/Counter2capture/reloadtriggeranddirectioncontrol)

Pl.5

MOSI(usedforIn-SystemProgramming)

Pl.6

MISO(usedforIn-SystemProgramming)

Pl.7

SCK(usedforIn-SystemProgramming)

Port2:

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

Port3:

Port3isan8-bitbidirectionalI/Oportwithinternalpull-ups.ThePort3outputbufferscansink/sourcefourTTLinputs.WhenIsarewrittentoPort3pins,theyarepulledhighbytheinter-nalpull-upsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseofthepull-ups.Port3receivessomecontrolsignalsforFlashprogrammingandverification.Port3alsoservesthefunctionsofvariousspecialfeaturesoftheAT89S52,asshowninthefol-lowingtable.

Table2

PortPin

AlternateFunctions

P3.0

RXD(serialinputport)

P3.1

TXD(serialoutputport)

P3.2

INTO(externalinterrupt0)

P3.3

INTI(externalinterrupt1)

P3.4

TO(timer0externalinput)

P3.5

T1(timer1externalinput)

P3.6

WR(externaldatamemorywritestrobe)

P3.7

RD(externaldatamemoryreadstrobe)

RST:

Resetinput.Ahighonthispinfortwomachinecycleswhiletheoscillatorisrunningresetsthedevice.Thispindriveshighfor98oscillatorperiodsaftertheWatchdogtimesout.TheDISRTObitinSFRAUXR(address8EH)canbeusedtodisablethisfeature.InthedefaultstateofbitDISRTO,theRESETHIGHoutfeatureisenabled.

ALE/PROG:

AddressLatchEnable(ALE)isanoutputpulseforlatchingthelowbyteoftheaddressduringaccessestoexternalmemory.Thispinisalsotheprogrampulseinput(PROG)duringFlashprogramming.Innormaloperation,ALEisemittedataconstantrateof1/6theoscillatorfrequencyandmaybeusedforexternaltimingorclockingpurposes.Note,however,thatoneALEpulseisskippeddur-ingeachaccesstoexternaldatamemory.Ifdesired,ALEoperationcanbedisabledbysettingbit0ofSFRlocation8EH.Withthebitset,ALEisactiveonlyduringaMOVXorMOVCinstruction.Otherwise,thepinisweaklypulledhigh.SettingtheALE-disablebithasnoeffectifthemicrocontrollerisinexternalexecutionmode.

PSEN:

ProgramStoreEnable(PSEN)isthereadstrobetoexternalprogrammemory.

WhentheAT89S52isexecutingcodefromexternalprogrammemory,PSENisactivatedtwiceeachmachinecycle,exceptthattwoPSENactivationsareskippedduringeachaccesstoexter-naldatamemory.

EA/VPP:

ExternalAccessEnable.EAmustbestrappedtoGNDinordertoenablethedevicetofetchcodefromexternalprogrammemorylocationsstartingat0000HuptoFFFFH.Note,however,thatiflockbit1isprogrammed,EAwillbeinternallylatchedonreset.EAshouldbestrappedtoVCCforinternalprogramexecutions.Thispinalsoreceivesthe12-voltprogrammingenablevoltage(VPP)duringFlashprogramming.

XTAL1:

Inputtotheinvertingoscillatoramplifierandinputtotheinternalclockoperatingcircuit.

XTAL2:

Outputfromtheinvertingoscillatoramplifier.

3.MemoryOrganization

MCS-51deviceshaveaseparateaddressspaceforProgramandDataMemory.Upto64KbyteseachofexternalProgramandDataMemorycanbeaddressed.

3.1ProgramMemory

IftheEApinisconnectedtoGND,allprogramfetchesaredirectedtoexternalmemory.OntheAT89S52,ifEAisconnectedtoVCC,programfetchestoaddresses0000Hthrough1FFFHaredirectedtointernalmemoryandfetchestoaddresses2000HthroughFFFFHaretoexternalmemory.

3.2DataMemory

TheAT89S52implements256bytesofon-chipRAM.Theupper128bytesoccupyaparalleladdressspacetotheSpecialFunctionRegisters.Thismeansthattheupper128byteshavethesameaddressesastheSFRspacebutarephysicallyseparatefromSFRspace.Whenaninstructionaccessesaninternallocationaboveaddress7FH,theaddressmodeusedintheinstructionspecifieswhethertheCPUaccessestheupper128bytesofRAMortheSFRspace.InstructionswhichusedirectaddressingaccesstheSFRspace.Forexample,thefollowingdirectaddressinginstructionaccessestheSFRatlocationOAOH(whichisP2).

MOVOAOH,#data

Instructionsthatuseindirectaddressingaccesstheupper128bytesofRAM.Forexample,thefollowingindirectaddressinginstruction,whereROcontainsOAOH,accessesthedatabyteataddressOAOH,ratherthanP2(whoseaddressisOAOH).

MOV@R0,#data

Notethatstackoperationsareexamplesofindirectaddressing,sotheupper128bytesofdataRAMareavailableasstackspace.

4.WatchdogTimer(One-timeEnabledwithReset-out)

TheWDTisintendedasarecoverymethodinsituationswheretheCPUmaybesubjectedtosoftwareupsets.TheWDTconsistsofa14-bitcounterandtheWatchdogTimerReset(WDTRST)SFR.TheWDTisdefaultedtodisablefromexitingreset.ToenabletheWDT,ausermustwrite01EHand0E1HinsequencetotheWDTRSTregister(SFRlocation0A6H).WhentheWDTisenabled,itwillincrementeverymachinecyclewhiletheoscillatorisrunning.TheWDTtimeoutperiodisdependentontheexternalclockfrequency.ThereisnowaytodisabletheWDTexceptthroughreset(eitherhardwareresetorWDToverflowreset).WhenWDTover-flows,itwilldriveanoutputRESETHIGHpulseattheRSTpin.

4.1UsingtheWDT

ToenabletheWDT,ausermustwrite01EHand0E1HinsequencetotheWDTRSTregister(SFRlocation0A6H).WhentheWDTisenabled,theuserneedstoserviceitbywriting01EHand0E1HtoWDTRSTtoavoidaWDToverflow.The14-bitcounteroverflowswhenitreaches16383(3FFFH),andthiswillresetthedevice.WhentheWDTisenabled,itwillincrementeverymachinecyclewhiletheoscillatorisrunning.T

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

当前位置:首页 > IT计算机 > 电脑基础知识

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2