




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 江西省南昌第二中学2025年物理高三第一学期期末联考试题
- 2025-2026学年吉林省长春市“BEST合作体”物理高三上期末达标测试试题
- 2026届山西省大同市煤矿第四中学物理高三第一学期期末经典试题
- 河北省唐山市唐县第一中学2025-2026学年物理高三上期末质量跟踪监视试题
- 第1课 笔墨千秋-说课稿2024-2025学年湘美版初中美术八年级上册
- 10.1 第4课时 溶液的导电性 酸和碱的相似性2025-2026学年九年级下册化学同步说课稿(人教版)
- 2.2 复杂多样的气候 说课稿-2025-2026学年八年级地理上学期晋教版
- 接插件零件制造工培训考核试卷及答案
- 硝酸铵结晶造粒工工艺考核试卷及答案
- 公共风险管理师专业技能考核试卷及答案
- MOOC 知识创新与学术规范-南京大学 中国大学慕课答案
- 人教版八年级下学期期末考试英语试题(附听力原文及答案解析)
- 移动公司个人求职简历模板
- 燃气巡线员专业知识考试题库(附答案)
- 小学二年级学生心理健康教育内容
- 数控机床概述
- 《高一数学开学第一课:学好高中数学》课件
- 五年级美术 《感受漫画造型》 公开课比赛一等奖
- 红帽认证管理员RHCSA(习题卷1)
- 2021地质灾害治理工程施工质量验收规范
- 煤矿重大危险源的辨识与控制课件
评论
0/150
提交评论