基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx

上传人:b****2 文档编号:2869502 上传时间:2023-05-04 格式:DOCX 页数:27 大小:40.81KB
下载 相关 举报
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第1页
第1页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第2页
第2页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第3页
第3页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第4页
第4页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第5页
第5页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第6页
第6页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第7页
第7页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第8页
第8页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第9页
第9页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第10页
第10页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第11页
第11页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第12页
第12页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第13页
第13页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第14页
第14页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第15页
第15页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第16页
第16页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第17页
第17页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第18页
第18页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第19页
第19页 / 共27页
基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx

《基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx》由会员分享,可在线阅读,更多相关《基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx(27页珍藏版)》请在冰点文库上搜索。

基于超声波检测的倒车雷达设计硬件设计 中英文献 精品.docx

基于超声波检测的倒车雷达设计硬件设计中英文献精品

2007级毕业(设计)论文

信息工程学院系(院)电子信息工程专业

中英文献翻译

题目基于超声波检测的倒车雷达设计(硬件设计)

学生姓名

班级2007电子信息工程

学号

指导教师

日期2011年03月21日

 

教务处订制

AT89C2051MicrocontrollerInstructions

1.1Features

∙CompatiblewithMCS-51Products

∙2KbytesofReprogrammableFlashMemory

Endurance:

1,000Write/EraseCycles

∙2.7Vto6VOperatingRange

∙FullyStaticOperation:

0Hzto24MHz

∙Two-LevelProgramMemoryLock

∙128x8-BitInternalRAM

∙15ProgrammableI/OLines

∙Two16-BitTimer/Counters

∙SixInterruptSources

∙ProgrammableSerialUARTChannel

∙DirectLEDDriveOutputs

∙On-ChipAnalogComparator

∙LowPowerIdleandPowerDownModes

1.2Description

TheAT89C2051isalow-voltage,high-performanceCMOS8-bitmicrocomputerwith2KbytesofFlashprogrammableanderasablereadonlymemory(PEROM).ThedeviceismanufacturedusingAtmel’shighdensitynonvolatilememorytechnologyandiscompatiblewiththeindustrystandardMCS-51instructionsetandpinout.Bycombiningaversatile8-bitCPUwithFlashonamonolithicchip,theAtmelAT89C2051isapowerfulmicrocomputerwhichprovidesahighlyflexibleandcosteffectivesolutiontomanyembeddedcontrolapplications.

TheAT89C2051providesthefollowingstandardfeatures:

2KbytesofFlash,128bytesofRAM,15I/Olines,two16-bittimer/counters,afivevectortwo-levelinterruptarchitecture,afullduplexserialport,aprecisionanalogcomparator,on-chiposcillatorandclockcircuitry.Inaddition,theAT89C2051isdesignedwithstaticlogicforoperationdowntozerofrequencyandsupportstwosoftwareselectablepowersavingmodes.TheIdleModestopstheCPUwhileallowingtheRAM,timer/counters,serialportandinterruptsystemtocontinuefunctioning.ThePowerDownModesavestheRAMcontentsbutfreezestheoscillatordisablingallotherchipfunctionsuntilthenexthardwarereset.

1.3PinConfiguration

1.4PinDescription

VCCSupplyvoltage.

GNDGround.

Port1

Port1isan8-bitbidirectionalI/Oport.PortpinsP1.2toP1.7provideinternalpullups.P1.0andP1.1requireexternalpullups.P1.0andP1.1alsoserveasthepositiveinput(AIN0)andthenegativeinput(AIN1),respectively,oftheon-chipprecisionanalogcomparator.ThePort1outputbufferscansink20mAandcandriveLEDdisplaysdirectly.When1sarewrittentoPort1pins,theycanbeusedasinputs.WhenpinsP1.2toP1.7areusedasinputsandareexternallypulledlow,theywillsourcecurrent(IIL)becauseoftheinternalpullups.

Port1alsoreceivescodedataduringFlashprogrammingandprogramverification.

Port3

Port3pinsP3.0toP3.5,P3.7aresevenbidirectionalI/Opinswithinternalpullups.P3.6ishard-wiredasaninputtotheoutputoftheon-chipcomparatorandisnotaccessibleasageneralpurposeI/Opin.ThePort3outputbufferscansink20mA.When1sarewrittentoPort3pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseofthepullups.

PortPin

AlternateFunctions

P3.0

RXD(serialinputport)

P3.1

TXD(serialoutputport)

P3.2

INT0(externalinterrupt0)

P3.3

INT1(externalinterrupt1)

P3.4

T0(timer0externalinput)

P3.5

T1(timer1externalinput)

Port3alsoservesthefunctionsofvariousspecialfeaturesoftheAT89C2051aslistedbelow:

1.5OscillatorCharacteristics

XTAL1andXTAL2aretheinputandoutput,respectively,ofaninvertingamplifierwhichcanbeconfiguredforuseasanon-chiposcillator,asshowninFigure1.Eitheraquartzcrystalorceramicresonatormaybeused.Todrivethedevicefromanexternalclocksource,XTAL2shouldbeleftunconnectedwhileXTAL1isdrivenasshowninFigure2.Therearenorequirementsonthedutycycleoftheexternalclocksignal,sincetheinputtotheinternalclockingcircuitryisthroughadivideby-twoflip-flop,butminimumandmaximumvoltagehighandlowtimespecificationsmustbeobserved.

1.6SpecialFunctionRegisters

Amapoftheon-chipmemoryareacalledtheSpecialFunctionRegister(SFR)spaceisshowninthetablebelow.

Notethatnotalloftheaddressesareoccupied,andunoccupiedaddressesmaynotbeimplementedonthechip.Readaccesses.totheseaddresseswillingeneralreturnrandomdata,andwriteaccesseswillhaveanindeterminateeffect.

Usersoftwareshouldnotwrite1stotheseunlistedlocations,sincetheymaybeusedinfutureproductstoinvokenewfeatures.Inthatcase,theresetorinactivevaluesofthenewbitswillalwaysbe0.

1.7RestrictionsonCertainInstructions

TheAT89C2051andisaneconomicalandcost-effectivememberofAtmel’sgrowingfamilyofmicrocontrollers.Itcontains2Kbytesofflashprogrammemory.ItisfullycompatiblewiththeMCS-51architecture,andcanbeprogrammedusingtheMCS-51instructionset.However,thereareafewconsiderationsonemustkeepinmindwhenutilizingcertaininstructionstoprogramthisdevice.

Alltheinstructionsrelatedtojumpingorbranchingshouldberestrictedsuchthatthedestinationaddressfallswithinthephysicalprogrammemoryspaceofthedevice,whichis2KfortheAT89C2051.Thisshouldbetheresponsibilityofthesoftwareprogrammer.Forexample,LJMP7E0HwouldbeavalidinstructionfortheAT89C2051(with2Kofmemory),whereasLJMP900Hwouldnot.

1.Branchinginstructions:

LCALL,LJMP,ACALL,AJMP,SJMP,JMP@A+DPTR

Theseunconditionalbranchinginstructionswillexecutecorrectlyaslongastheprogrammerkeepsinmindthatthedestinationbranchingaddressmustfallwithinthephysicalboundariesoftheprogrammemorysize(locations00Hto7FFHforthe89C2051).Violatingthephysicalspacelimitsmaycauseunknownprogrambehavior.

CJNE[...],DJNZ[...],JB,JNB,JC,JNC,JBC,JZ,JNZWiththeseconditionalbranchinginstructionsthesameruleaboveapplies.Again,violatingthememoryboundariesmaycauseerraticexecution.

Forapplicationsinvolvinginterruptsthenormalinterruptserviceroutineaddresslocationsofthe80C51familyarchitecturehavebeenpreserved.

2.MOVX-relatedinstructions,DataMemory:

TheAT89C2051contains128bytesofinternaldatamemory.Thus,intheAT89C2051thestackdepthislimitedto128bytes,theamountofavailableRAM.ExternalDATAmemoryaccessisnotsupportedinthisdevice,norisexternalPROGRAMmemoryexecution.Therefore,noMOVX[...]instructionsshouldbeincludedintheprogram.

Atypical80C51assemblerwillstillassembleinstructions,eveniftheyarewritteninviolationoftherestrictionsmentionedabove.Itistheresponsibilityofthecontrollerusertoknowthephysicalfeaturesandlimitationsofthedevicebeingusedandadjusttheinstructionsusedcorrespondingly.

1.8ProgramMemoryLockBits

Onthechiparetwolockbitswhichcanbeleftunprogrammed(U)orcanbeprogrammed(P)toobtaintheadditionalfeatureslistedinthetablebelow:

LockBitProtectionModes

(1)

ProgramLockBits

LB1

LB2

ProtectionType

1

U

U

Noprogramlockfeatures.

2

P

U

Furtherprogrammingofthe

Flashisdisabled.

3

P

P

Sameasmode2,alsoverify

isdisabled.

Note:

1.TheLockBitscanonlybeerasedwiththeChipEraseoperation

1.9IdleMode

Inidlemode,theCPUputsitselftosleepwhilealltheon-chipperipheralsremainactive.Themodeisinvokedbysoftware.Thecontentoftheon-chipRAMandallthespecialfunctionsregistersremainunchangedduringthismode.Theidlemodecanbeterminatedbyanyenabledinterruptorbyahardwarereset.

P1.0andP1.1shouldbesetto’0’ifnoexternalpullupsareused,orsetto’1’ifexternalpullupsareused.

Itshouldbenotedthatwhenidleisterminatedbyahardwarereset,thedevicenormallyresumesprogramexecution,fromwhereitleftoff,uptotwomachinecyclesbeforetheinternalresetalgorithmtakescontrol.On-chiphardwareinhibitsaccesstointernalRAMinthisevent,butaccesstotheportpinsisnotinhibited.ToeliminatethepossibilityofanunexpectedwritetoaportpinwhenIdleisterminatedbyreset,theinstructionfollowingtheonethatinvokesIdleshouldnotbeonethatwritestoaportpinortoexternalmemory.

1.10PowerDownMode

Inthepowerdownmodetheoscillatorisstopped,andtheinstructionthatinvokespowerdownisthelastinstructionexecuted.Theon-chipRAMandSpecialFunctionRegistersretaintheirvaluesuntilthepowerdownmodeisterminated.Theonlyexitfrompowerdownisahardwarereset.ResetredefinestheSFRsbutdoesnotchangetheon-chipRAM.TheresetshouldnotbeactivatedbeforeVCCisrestoredtoitsnormaloperatinglevelandmustbeheldactivelongenoughtoallowtheoscillatortorestartandstabilize.

P1.0andP1.1shouldbesetto’0’ifnoexternalpullupsareused,orsetto’1’ifexternalpullupsareused.

1.11ProgrammingTheFlash

TheAT89C2051isshippedwiththe2Kbytesofon-chipPEROMcodememoryarrayintheerasedstate(i.e.,contents=FFH)andreadytobeprogrammed.Thecodememoryarrayisprogrammedonebyteatatime.Oncethearrayisprogrammed,tore-programanynon-blankbyte,theentirememoryarrayneedstobeerasedelectrically.

InternalAddressCounter:

TheAT89C2051containsaninternalPEROMaddresscounterwhichisalwaysresetto000HontherisingedgeofRSTandisadvancedbyapplyingapositivegoingpulsetopinXTAL1.

ProgrammingAlgorithm:

ToprogramtheAT89C2051,thefollowingsequenceisrecommended.

1.Power-upsequence:

ApplypowerbetweenVCCandGNDpinsSetRSTandXTAL1toGND

Withallotherpinsfloating,waitforgreaterthan10milliseconds

2.SetpinRSTto’H’SetpinP3.2to’H’

3.Applytheappropriatecombinationof’H’or’L

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

当前位置:首页 > 初中教育 > 语文

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

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