已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AT89C2051AT89C2051ismadeintheATMELCorporation,whichisthelow-voltage,high-performanceCMOS8-bitmicrocontroller,Tabletscontainingrepeated2kbytesofprogrammemoryerasableread-only(PEROM)andrandom128bytesdatamemory(RAM),deviceusingATMELshighdensity,non-volatilememorytechnology,CompatiblewiththestandardofMCS-51instructionset,built-chip8-bitgeneral-purposecentralprocessingunitandrepeatedlywritetheFlashmemory,whichcaneffectivelyreducethedevelopmentcosts.AT89C2051featuresapowerfulsingle-chipcanprovidecost-effectiveinmanyApplications.Mainfeatures:CompatibletheMCS51commandsystem;Containsthe2KBmemoryre-programmingFLASH(1000);2.76Vvoltagerange;thewholeStaticwork:0Hz24KHz;Secrets2ProgramMemoryLock1288-bitinternalRAM15programmableI/OlinesTwo16-bittimer/counter6interruptsources,twoexternalinterruptsourcesProgrammableSerialChannelHighPrecisionVoltageComparator(P1.0,P1.1,P3.6);HavetheoutputportoftheLEDdirectdriveLow-poweridleandpower-downmodeThepinPictureofAT89C2051PictureonethepinofAT89C2051123456ABCD654321DCBATitleNumberRevisionSizeBDate:21-May-2009SheetofFile:D:ProgramFilesDesignExplorer99SELibrarySchProtelDOSSchematicLibraries.ddbDrawnBy:20191817161514131211GNDP3.5P3.4P3.3P3.2XTAL1XTAL2P3.1P3.0RSTP3.7P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7VCC12345678910AT89C2051sfunctionaldescription:VCC:PowerSupplyVoltageGND:landP1port:P1mouthisagroupof8-bitbi-directionalI/Ointerface,P1.2P1.7provideinternalpull-upresistor,P1.0andP1.1internalsupremepull-upresistor.P1mouthoutputbuffercanabsorbthecurrent20mAanddirect-driveLED.WhenProgrammingandcalibration,P1mouthastheeighthaddressreceive.P3mouth:P3portP3.0P3.5,P3.7istheinternalpull-upresistorwiththesevenbi-directionalI/Ointerface.DidnotbringouttheP3.6,ItasagenericI/Oport,butcannotvisit.Canbeusedasafixed-chipinputcomparatoroutputsignal.whenP3write1,theywerehighedtheinternalpull-upresistorcanberaisedasaninputport.P3portspecialfunctionasshownintable1:Table1P3mouthsspecialfeatures引脚功能特性P3.0RXD(串行输入口)P3.1TXD(串行输出口)P3.20INT(外中断0)P3.31INT(外中断1)P3.4T0(定时/计数器0外部输入)P3.5T1(定时/计数器1外部输入)RST:Resetoutput.Whentheoscillatordevicereset,RSTpintomaintainthehighleveloftwomachinecycletime.XTAL1:theRP-oscillatoramplifierandinternalclockgeneratorinput.XTAL2:RP-oscillatoroutputamplifier.TimerOverviewoftheTimer89C2051single-chip-chiphastwo16-bittimer/counter,Thatisthetimer0(T0)andTimer1(T1).Theyallhavefromtimetotimeandeventcountfunction,Canbeusedfortimingcontrol,delayofexternalevents,suchascountingandtestingoccasions.TimersT0andT1two16-bittimersinfactis16-bitcounterplus1.Amongthem,T0compositionedbythetwo8-bitspecialfunctionregistersTH0andTL0;T1posedbytheTH1andTL1.ThesefunctionswerecontroledbythespecialfunctionregistersTMODandTCONWhensettotheworkinthetiming,Throughthepincountoftheexternalpulsesignal.Whentheinputpulsesignalgeneratedbythefallingedgeof1-0,Thevalueoftimerplus1.AtofeverymachinecycleduringtheS5P2samplingpinT0andT1theinputlevel,ifamachinecyclebeforesamplevalueof1,Thenextmachinecyclesamplingvalueis0,Thecounterplus1.SincethenduringS3P1ofthemachinecycle,Newvaluewillintothecounter.soDetectionofa1-0transitionofthetwomachinecycles,SoThemaximumcountfrequencyofoscillationfrequencyof1/24.Inadditiontotheoptionofworkfromtimetotimeorcount,Eachtimer/counterhavefourkindsofworkmode,Thatis,eachoftimercircuitkindsoffourconstituteastructuralmodelTwolow-powermodeIdlemodeInidlemode,CPUtomaintainsleepandall-chipperipheralsremainactive,thiswaygeneratedinSoftware,Atthispoint,ChipRAMandallthecontentsofspecialfunctionregistersremainunchanged.Idlemodewasterminatedbyanyinterruptrequestpermissiontoorhardwarereset.P1.0andP1.1,inthenon-useofexternalpull-upresistoronthecaseshouldbesetto0,Orintheuseofpull-upresistorissetto1.Itshouldbenotedthat:whenusesofhardwareresetTerminationidlemode,AT89C2051isusuallystoppedfromtheprogramuntiltheinternalresetcontrolofthetwomachinecyclesbeforetherestoreprocedureService.InthiscasethehardwarewithintheprohibitionofthereadingandwritingofinternalRAM,However,toallowaccesstoports,ToeliminatetheHardwareresetintheidlemodeofportaccidentsmaywrite,Inprinciple,toentertheidlemodeofinstructionshouldnotbeunderthecommandofapinoranexternalmemoryportforavisit.Power-downmodeInpower-downmode,theoscillatortostopworking,enterthepower-downmode,Instructions,whowasthelastone,theimplementationoftheDirective,ChipRAMandallthecontentsofspecialfunctionregisterstheterminationofthepreviouspower-downmodebefrozen.Towithdrawfrompower-downmodeistheonlywaytoresetthehardware,ResetwillredefinealltheSpecialFunctionRegistersbutDoesnotchangethecontentsofRAMbeforethetheVccworkreturnedtonormallevelsShallbenullandvoidandmustberesettomaintainacertainperiodoftimeinordertorestartandoscillatorstabilityP1.0andP1.1inthenon-useofexternalpull-upresistoronthecaseshouldbesetto0,Orintheuseofpull-upresistorissetto1.OscillatorOscillatorconnectedclientXTAL1:RP-oscillatoramplifierandinternalclockgeneratorinputXTAL2:RP-oscillatoramplifieroutputCharacteristicsofOscillatorXTAL1,XTAL2waretheRP-chiposcillatoramplifierinputsandoutputs,Quartzcrystalcanbecomposedoftheclockoscillatororceramicoscillator,Formoreinformati
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 黑龙江省海伦市2024届中考历史最后冲刺模拟试卷含解析
- 2024届江苏省江阴市澄西片中考历史模拟试题含解析
- 湖北省襄阳樊城区七校联考2024年中考联考历史试题含解析
- 2024届福建省三明市建宁县中考历史考试模拟冲刺卷含解析
- 2024届浙江省杭州市景成实验校中考五模数学试题含解析
- 2024届贵州省毕节市七星关区第三实验校中考历史四模试卷含解析
- 2024届四川省安岳县达标名校十校联考最后历史试题含解析
- 内蒙古巴彦淖尔市三县五校2024年初中历史毕业考试模拟冲刺卷含解析
- 2024届山东省淄博市桓台县重点名校中考五模历史试题含解析2
- 贵州思南中学2024年高三下学期一模考试数学试题含解析
- 6年级学生量感现状调查与分析
- DB37-T 5097-2021 山东省绿色建筑评价标准
- 创设情境化学习环境的教学设计
- 企业战略与可持续发展课件
- 砍树申请书范文模板
- 习概论练习题第八章 发展全过程人民民主
- 《考试后反思》课件
- GB/T 14308-2023旅游饭店星级的划分与评定
- 手机膜推广策划方案
- 人民建议范文10篇
- 《压铆件基本知识》课件
评论
0/150
提交评论