




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
About89c51pinsingle-chipfunctionpowerpinVcc(40feet):atypicalvalueof+5V.Vss(20feet):low-levelaccess.externalcrystalX1,X2,respectively,connectedwiththecrystalatbothends.groundingpininputandoutputport:P0port:I/Obi-directionalport.Forinput,theywouldfirstbuythesoftware1.P1port:I/Obi-directionalport.Forinput,theywouldfirstbuythesoftware1.P2port:I/Obi-directionalport.Forinput,theywouldfirstbuythesoftware1.P3port:I/Obi-directionalport.Forinput,theywouldfirstbuythesoftware1.controlpin:RST,ALE/-PROG,-PSEN,-EA/VppformedthecontrolofMSC-51bus.RST(9feet):resetinputsignal(highactive).ALE/-PROG(30feet):Addresslatchoutputsignal.Thesecondfunction:programmingpulseinput.-PSEN(29feet):theelectionofexternalprogrammemoryreadsignal.-EA/Vpp(31feet):externalprogrammemoryenableclient.Thesecondfunction:inputprogrammingvoltage(+21V).AT89C51single-chipfeaturesofthePport:P0port:P0portisan8-bitopen-drainoutput-basedtwo-wayI/Oport.Asoutputports,eachabletoabsorbthecurrenteightTTLdriveninput,writetotheport1,whileforhigh-impedanceinputwith.Duringhisvisittoanexternalprogramordatamemory,itistimedivisionmultipleconversionoftheaddress(lower8bits)/databus,duringthevisitwillbetoactivatetheinternalpull-upresistor.P1port:P1portiswithapull-upresistorinternal8-bitbi-directionalI/Oport.P1Icandrivetheoutputbuffer(oroutputcurrentabsorptionmethod)4TTLinput.Writetotheport1,throughaninternalpull-upresistortotheportpulledhighpotentials,canbeinputatthistime.P2fortheinputIuse,becausetheinternalpull-upresistors,externalsignalsthataredrivingdownthepinwilloutputacurrent(Iil).P2port:P2portisaninternalpull-upresistorwithan8-bitbi-directionalI/Oport.P2portoutputbuffercandrive(oroutputcurrentabsorptionmethod)4TTLinput.Writetotheport1,throughaninternalpull-upresistortotheportpulledhighpotentials,canbeinputatthistime.P2fortheinputIuse,becausetheinternalpull-upresistors,externalsignalsthataredrivingdownthepinwilloutputacurrent(Iil).Duringhisvisit,whentheexternalprogrammemoryand16-bitexternaladdressoftheexternaldatamemory(suchastheimplementationofMOVXDPTR)when,P2Isendaddresshigh8.Duringhisvisittoeightoftheexternaldatamemoryaddress(suchastheimplementationofMOVXRI),when,P2pinonthecontentsofthemouth(thatis,exclusiveregister(SFR)areainthecontentsofP2register),andwillnotchangeduringtheentirevisit.P3port:P3portisaninternalpull-upresistorwithan8-bitbi-directionalI/Oport.P3Icandrivetheoutputbuffer(oroutputcurrentabsorptionmethod)4TTLinput.Writetotheport1,throughaninternalpull-upresistortotheportpulledhighpotentials,canbeinputatthistime.P3portinputforuseasaninternalpull-upresistors,externalsignalsthataredrivingdownthepinwilloutputacurrent(Iil).Internalmodules:operator:1,arithmetic/logicunitALU:+,-,*,/tocompletethearithmeticoperationsandBooleanalgebraoflogicoperations,andproceduresforcomputingtheresultsoftheimpactofsomeofthestateofregisterPSWbit,soastodetermine,transfer,themetricsystem,suchasamendmentsandprovidethebasisforanerror.2,accumulatorA:Inthearithmetic/logicoperationsinastoreortheresultsofoperations,withtheexternalmemoryandI/OinterfacewhendealingwithdatatransmissiontogothroughtheAtocomplete.3,registerB:inthe*,/registertobeusedincomputingB.Multiplicationtime,Bisusedtostorethemultiplieraswellastheplotofthehigh-byte;divisionwhen,Bisusedtostoredivisorandremainder.Whenmultiplicationanddivisiondoesnot,Bcanbeusedforgeneral-purposeregister.4,theprogramstatusregistersignPSW:commandisusedtostorethecurrentoperatingresultsaftertheimplementationofcertaincharacteristicsinorderforthenextoneprovidethebasisfortheimplementationofdirectives.【PSW】(D0H)D7 D6D5D4D3D2D1D0CyACF0RS1RS0 OV-Pcy:binarylogo.Therebinaryorbybit,theCy=1,otherwise,Cy=0;whentheBooleanoperation,Cy(referredtoasC)asaBooleanprocessor.AC:Auxiliarycarryflag.F0:Userflag:UserscanpurchasesoftwareF0-bit1ormoney0totheflowofdecision-makingprocess.OV:Overflowflag:Whenoverflowwhencomputingtheresults,OV1,otherwise0.D.1:undefined.P:paritybit:WhentheaccumulatorAofthe1whenthenumberisodd,PPurchase1,otherwisePPurchase0。RS1,RS0:choiceofplaceofworkstoragearea:registerRS1,RS0-chipworkwiththecorrespondencebetweenregisters。RS1RS0RegisterDistrict-chipRAMaddressregisterthenameofcommon00000H07HR0R701108H0FHR0R710210H17HR0R711318H1FHR0R7controller:1,instructionregisterandinstructiondecoderIR.2,theprogramcounter:thestorageofaCPUtothenextinstructionaddress.Isa16-bitregisters,addressable64KB.3,thestackpointerSP:forsubroutinecallsandinterrupthandling.【Afterresetthemachine,SP#07H,thereforepushthefirstunitofdatainthe08H】.4,datapointerregisterDPTR:16-bitregisters,butalsocanbeusedastwo8-bitregisterDPHandDPL.DPTRmainindicatorsforexternaldata,64KBexternalRAMcanbeindirectlyaddressed.89c51单片机功能引脚简介电源引脚Vcc(40脚):典型值5V。Vss(20脚):接低电平。外部晶振XTAL1、XTAL2分别与晶振两端相连接。输入输出口引脚:P0口:I/O双向口。作输入口时,应先软件置“1”。P1口:I/O双向口。作输入口时,应先软件置“1”。P2口:I/O双向口。作输入口时,应先软件置“1”。P3口:I/O双向口。作输入口时,应先软件置“1”。控制引脚:RST、ALE/-PROG、-PSEN、-EA/Vpp组成了MSC-51的控制总线。RST(9脚):复位信号输入端(高电平有效)。ALE/-PROG(30脚):地址锁存信号输出端。第二功能:编程脉冲输入。-PSEN(29脚):外部程序存储器读选通信号。-EA/Vpp(31脚):外部程序存储器使能端。第二功能:编程电压输入端(+21V)。AT89C51单片机的P口特点:P0口:是一个8位漏极开路输出型双向I/O端口。作为输出端口时,每位能以吸收电流的方式驱动8个TTL输入,对端口写1时,又可作高阻抗输入端用。在访问外部程序或数据存储器时,它是时分多路转换的地址(低8位)/数据总线,在访问期间将激活内部的上拉电阻。P1口:P1口是一个带有内部上拉电阻的8位双向I/O端口。P1口的输出缓冲器可驱动(吸收或输出电流方式)4个TTL输入。对端口写1时,通过内部的上拉电阻把端口拉到高电位,这时可作输入口。P2口作输入口使用时,因为内部有上拉电阻,那些被外部信号拉低的引脚会输出一个电流(Iil)。P2口:P2口是一个带有内部上拉电阻的8位双向I/O端口。P2口的输出缓冲器可驱动(吸收或输出电流方式)4个TTL输入。对端口写1时,通过内部的上拉电阻把端口拉到高电位,这时可作输入口。P2口作输入口使用时,因为内部有上拉电阻,那些被外部信号拉低的引脚会输出一个电流(Iil)。在访问外部程序存储器时和16位外部地址的外部数据存储器(如执行MOVXDPTR)时,P2口送出高8位地址。在访问8位地址的外部数据存储器(如执行MOVXRI)时,P2口引脚上的内容(就是专用寄存器(SFR)区中的P2寄存器的内容),在整个访问期间不会改变。P3口:P3口是一个带有内部上拉电阻的8位双向I/O端口。P3口的输出缓冲器可驱动(吸收或输出电流方式)4个TTL输入。对端口写1时,通过内部的上拉电阻把端口拉到高电位,这时可作输入口。P3口作输入口使用时,因为内部有上拉电阻,那些被外部信号拉低的引脚会输出一个电流(Iil)。运算器:1、算术逻辑部件ALU:用以完成+、-、*、/的算术运算及布尔代数的逻辑运算,并通过运算结果影响程序状态寄存器PSW的某些位,从而为判断、转移、十进制修正和出错等提供依据。2、累加器A:在算术逻辑运算中存放一个操作数或结果,在与外部存储器和I/O接口打交道时,进行数据传送都要经过A来完成。3、寄
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 信用评估与担保服务的协同效应研究-洞察阐释
- 2023年中国统计学研究行业竞争格局变化分析-洞察阐释
- 文控提升能力计划
- 水平井井眼清洁动态评价与评估系统研发
- 2024年深圳市龙岗区区属公办中小学招聘教师真题
- 福建中烟工业有限责任公司真题2024
- 浙江商业职业技术学院《新能源试验设计与统计分析》2023-2024学年第二学期期末试卷
- 四川电子机械职业技术学院《文献检索与科研写作B》2023-2024学年第二学期期末试卷
- 新疆工业职业技术学院《安全投入与工程概算》2023-2024学年第二学期期末试卷
- 常州工业职业技术学院《体育四》2023-2024学年第二学期期末试卷
- 【MOOC】证券投资学-江西财经大学 中国大学慕课MOOC答案
- 《BOM培训资料》课件
- 网络工程师职称评定个人工作经历总结
- 手卫生知识答题及答案
- 海洋权益《基本概念》教案
- ()初中语文必背古诗文填空题附完整答案【题】
- 专题06手拉手模型(原卷版+解析)
- 2023日语专四真题专业四级真题
- 高中物理教学中物理实验的改进与创新
- 2024年河南高考成绩一分一段表(理科+文科)
- 2024年会计知识竞赛考试题库及答案(共170题)
评论
0/150
提交评论