已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《GB-T 20275-2021信息安全技术 网络入侵检测系统技术要求和测试评价方法》专题研究报告29
- 计算机及外部设备装配调试员班组评比竞赛考核试卷含答案
- 《GB-T 38064-2019球磨粉磨系统 矿物物料易磨性试验方法》专题研究报告
- 胶状化妆品制造工安全应急水平考核试卷含答案
- 网商岗前岗中考核试卷含答案
- 《GBT 17421.4-2016 机床检验通则 第 4 部分:数控机床的圆检验》专题研究报告
- 制冷工安全文明水平考核试卷含答案
- 公司棘皮类养殖工岗位职业健康、安全、环保技术规程
- 挂面制作工岗前设备性能考核试卷含答案
- 地毯设计师岗位现场作业技术规程
- 水利工程设计行业技术创新研究
- 河南科学技术出版社小学信息技术六年级上册教案
- 输变电工程施工质量验收统一表式附件1:线路工程填写示例
- 2023版马原专题课件:专题一马克思主义观;专题二辩证唯物主义世界观
- 砌块砌体施工课件
- Chinese Farming Civilization智慧树知到答案2024年东北农业大学
- 剖宫产术后快速康复专家共识解读(ERAC)
- 销售薪酬设计与绩效考核完全指南:理念、方法、技巧
- 老子二章完整版本
- DB-T29-279-2020天津市城市轨道交通结构安全保护技术规程
- 内燃机车柴油机 课件 项目2 内燃机车柴油机结构认知1
评论
0/150
提交评论