已阅读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北京市城市管理委员会所属事业单位招聘13人笔试模拟试题及答案解析
- 第四章练习完整版本
- 系统集成类项目技术培训方案
- 数字孪生整体架构解决方案
- 房屋拆除工程施工组织设计方案方案
- 四年级数学下册脱式计算题260道
- 小型构件预制施工方案
- 猜猜这是谁的包-PPT
- CNAS-TRL-004:2017《测量设备校准周期的确定和调整方法指南》
- 尼尔斯骑鹅旅行记阅读交流课.ppt
- 工地材料提料单
- 有趣的问答歌演示文稿送教
- 苗木采购投标文件
- 电解制氢系统自动控制及联锁保护分析优化
- 九年级化学专题复习(常见气体的制取)
评论
0/150
提交评论