欢迎来到人人文库网! | 帮助中心 人人文库renrendoc.com美如初恋!
人人文库网
首页 人人文库网 > 资源分类 > PDF文档下载

80C51 family programmer guide.pdf

  • 资源大小:271.94KB        全文页数:55页
  • 资源格式: PDF        下载权限:游客/注册会员/VIP会员    下载费用:5
游客快捷下载 游客一键下载
会员登录下载
下载资源需要5

邮箱/手机号:
您支付成功后,系统会自动为您创建此邮箱/手机号的账号,密码跟您输入的邮箱/手机号一致,以方便您下次登录下载和查看订单。注:支付完成后需要自己下载文件,并不会自动发送文件哦!

支付方式: 微信支付    支付宝   
验证码:   换一换

友情提示
2、本站资源不支持迅雷下载,请使用浏览器直接下载(不支持QQ浏览器)
3、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰   

80C51 family programmer guide.pdf

PHILIPSSEMICONDUCTORS80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSET80C51FAMILY1MARCH1995PROGRAMMER’SGUIDEANDINSTRUCTIONSETMEMORYORGANIZATIONPROGRAMMEMORYTHE80C51HASSEPARATEADDRESSSPACESFORPROGRAMANDDATAMEMORYTHEPROGRAMMEMORYCANBEUPTO64KBYTESLONGTHELOWER4KCANRESIDEONCHIPFIGURE1SHOWSAMAPOFTHE80C51PROGRAMMEMORYTHE80C51CANADDRESSUPTO64KBYTESOFDATAMEMORYTOTHECHIPTHEMOVXINSTRUCTIONISUSEDTOACCESSTHEEXTERNALDATAMEMORYTHE80C51HAS128BYTESOFONCHIPRAM,PLUSANUMBEROFSPECIALFUNCTIONREGISTERSSFRSTHELOWER128BYTESOFRAMCANBEACCESSEDEITHERBYDIRECTADDRESSINGMOVDATAADDRORBYINDIRECTADDRESSINGMOVRIFIGURE2SHOWSTHEDATAMEMORYORGANIZATIONDIRECTANDINDIRECTADDRESSAREATHE128BYTESOFRAMWHICHCANBEACCESSEDBYBOTHDIRECTANDINDIRECTADDRESSINGCANBEDIVIDEDINTOTHREESEGMENTSASLISTEDBELOWANDSHOWNINFIGURE31REGISTERBANKS03LOCATIONS0THROUGH1FH32BYTESTHEDEVICEAFTERRESETDEFAULTSTOREGISTERBANK0TOUSETHEOTHERREGISTERBANKS,THEUSERMUSTSELECTTHEMINSOFTWAREEACHREGISTERBANKCONTAINSEIGHT1BYTEREGISTERS0THROUGH7RESETINITIALIZESTHESTACKPOINTERTOLOCATION07H,ANDITISINCREMENTEDONCETOSTARTFROMLOCATION08H,WHICHISTHEFIRSTREGISTERR0OFTHESECONDREGISTERBANKTHUS,INORDERTOUSEMORETHANONEREGISTERBANK,THESPSHOULDBEINITIALIZEDTOADIFFERENTLOCATIONOFTHERAMWHEREITISNOTUSEDFORDATASTORAGEIE,THEHIGHERPARTOFTHERAM2BITADDRESSABLEAREA16BYTESHAVEBEENASSIGNEDFORTHISSEGMENT,20H2FHEACHONEOFTHE128BITSOFTHISSEGMENTCANBEDIRECTLYADDRESSED07FHTHEBITSCANBEREFERREDTOINTWOWAYS,BOTHOFWHICHAREACCEPTABLEBYMOSTASSEMBLERSONEWAYISTOREFERTOTHEIRADDRESSIE,07FHTHEOTHERWAYISWITHREFERENCETOBYTES20HTO2FHTHUS,BITS07CANALSOBEREFERREDTOASBITS200207,ANDBITS8FHARETHESAMEAS210217,ANDSOONEACHOFTHE16BYTESINTHISSEGMENTCANALSOBEADDRESSEDASABYTE3SCRATCHPADAREA30HTHROUGH7FHAREAVAILABLETOTHEUSERASDATARAMHOWEVER,IFTHESTACKPOINTERHASBEENINITIALIZEDTOTHISAREA,ENOUGHBYTESSHOULDBELEFTASIDETOPREVENTSPDATADESTRUCTIONFIGURE2SHOWSTHEDIFFERENTSEGMENTSOFTHEONCHIPRAMOR60KBYTESEXTERNALANDFFFF10000FFF00004KBYTESINTERNAL64KBYTESEXTERNALFFFF0000SU00567FIGURE180C51PROGRAMMEMORY80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19952SFRSDIRECTADDRESSINGONLYANDFF807F0064KBYTESEXTERNAL0FFF0000DRIECTANDINDIRECTADDRESSINGINTERNALSU00568FIGURE280C51DATAMEMORYSCRATCHPADAREA8BYTES787068605850484038302820181008007F776F675F574F473F372F271F170F077F03210BITADDRESSABLESEGMENTREGISTERBANKSSU00569FIGURE3128BYTESOFRAMDIRECTANDINDIRECTADDRESSABLE80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19953TABLE180C51SPECIALFUNCTIONREGISTERSSYMBOLDESCRIPTIONDIRECTADDRESSBITADDRESS,SYMBOL,ORALTERNATIVEPORTFUNCTIONMSBLSBRESETVALUEACCACCUMULATORE0HE7E6E5E4E3E2E1E000HBBREGISTERF0HF7F6F5F4F3F2F1F000HDPTRDATAPOINTER2BYTESDPHDATAPOINTERHIGH83H00HDPLDATAPOINTERLOW82H00HAFAEADACABAAA9A8IEINTERRUPTENABLEA8HEA––ESET1EX1ET0EX00X000000BBFBEBDBCBBBAB9B8IPINTERRUPTPRIORITYB8H–––PSPT1PX1PT0PX0XX000000B8786858483828180P0PORT080HAD7AD6AD5AD4AD3AD2AD1AD0FFH9796959493929190P1PORT190H––––––T2EXT2FFHA7A6A5A4A3A2A1A0P2PORT2A0HA15A14A13A12A11A10A9A8FFHB7B6B5B4B3B2B1B0P3PORT3B0HRDWRT1T0INT1INT0TXDRXDFFHPCON1POWERCONTROL87HSMOD–––GF1GF0PDIDL0XXXXXXXBD7D6D5D4D3D2D1D0PSWPROGRAMSTATUSWORDD0HCYACF0RS1RS0OV–P00HSBUFSERIALDATABUFFER99HXXXXXXXXB9F9E9D9C9B9A9998SCONSERIALCONTROLLER98HSM0SM1SM2RENTB8RB8TIRI00HSPSTACKPOINTER81H07H8F8E8D8C8B8A8988TCONTIMERCONTROL88HTF1TR1TF0TR0IE1IT1IE0IT0TH0TIMERHIGH08CH00HTH1TIMERHIGH18DH00HTL0TIMERLOW08AH00HTL1TIMERLOW18BH00HTMODTIMERMODE89HGATEC/TM1M0GATEC/TM1M000HNOTESBITADDRESSABLE1BITSGF1,GF0,PD,ANDIDLOFTHEPCONREGISTERARENOTIMPLEMENTEDONTHENMOS8051/803180C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19954F8F0E8E0D8D0C8C0B8B0A8A098908880FFF7EFE7DFD7CFC7BFB7AFA79F978F87TCON8BYTESBITADDRESSABLEP0P1SCONP2IEP3IPPSWACCBSBUFTMODTL0TL1TH0TH1SPDPLDPHPCONSU00570FIGURE4SFRMEMORYMAP80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19955THOSESFRSTHATHAVETHEIRBITSASSIGNEDFORVARIOUSFUNCTIONSARELISTEDINTHISSECTIONABRIEFDESCRIPTIONOFEACHBITISPROVIDEDFORQUICKREFERENCEFORMOREDETAILEDINFORMATIONREFERTOTHEARCHITECTURECHAPTEROFTHISBOOKPSWPROGRAMSTATUSWORDBITADDRESSABLECYACF0RS1RS0OV–PCYPSW7CARRYFLAGACPSW6AUXILIARYCARRYFLAGF0PSW5FLAG0AVAILABLETOTHEUSERFORGENERALPURPOSERS1PSW4REGISTERBANKSELECTORBIT1SEENOTE1RS0PSW3REGISTERBANKSELECTORBIT0SEENOTE1OVPSW2OVERFLOWFLAG–PSW1USABLEASAGENERALPURPOSEFLAGPPSW0PARITYFLAGSET/CLEAREDBYHARDWAREEACHINSTRUCTIONCYCLETOINDICATEANODD/EVENNUMBEROF‘1’BUSINTHEACCUMULATORNOTE1THEVALUEPRESENTEDBYRS0ANDRS1SELECTSTHECORRESPONDINGREGISTERBANKRS1RS0REGISTERBANKADDRESS00000H07H01108H0FH10210H17H11318H1FHPCONPOWERCONTROLREGISTERNOTBITADDRESSABLESMOD–––GF1GF0PDIDLSMODDOUBLEBAUDRATEBITIFTIMER1ISUSEDTOGENERATEBAUDRATEANDSMOD1,THEBAUDRATEISDOUBLEDWHENTHESERIALPORTISUSEDINMODES1,2,OR3–NOTIMPLEMENTED,RESERVEDFORFUTUREUSE–NOTIMPLEMENTEDRESERVEDFORFUTUREUSE–NOTIMPLEMENTEDRESERVEDFORFUTUREUSEGF1GENERALPURPOSEFLAGBITGF0GENERALPURPOSEFLAGBITPDPOWERDOWNBITSETTINGTHISBITACTIVATESPOWERDOWNOPERATIONINTHE80C51AVAILABLEONLYINCMOSIDLIDLEMODEBITSETTINGTHISBITACTIVATESIDLEMODEOPERATIONINTHE80C51AVAILABLEONLYINCMOSIF1SAREWRITTENTOPDANDIDLATTHESAMETIME,PDTAKESPRECEDENCEUSERSOFTWARESHOULDNOTWRITE1STORESERVEDBITSTHESEBITSMAYBEUSEDINFUTURE8051PRODUCTSTOINVOKENEWFEATURES80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19956INTERRUPTSTOUSEANYOFTHEINTERRUPTSINTHE80C51FAMILY,THEFOLLOWINGTHREESTEPSMUSTBETAKEN1SETTHEEAENABLEALLBITINTHEIEREGISTERTO12SETTHECORRESPONDINGINDIVIDUALINTERRUPTENABLEBITINTHEIEREGISTERTO13BEGINTHEINTERRUPTSERVICEROUTINEATTHECORRESPONDINGVECTORADDRESSOFTHATINTERRUPTSEETABLEBELOWINTERRUPTSOURCEVECTORADDRESSIE00003HTF0000BHIE10013HTF1001BHRITI0023HINADDITION,FOREXTERNALINTERRUPTS,PINSINT0ANDINT1P32ANDP33MUSTBESETTO1,ANDDEPENDINGONWHETHERTHEINTERRUPTISTOBELEVELORTRANSITIONACTIVATED,BITSIT0ORIT1INTHETCONREGISTERMAYNEEDTOBESETTO1ITX0LEVELACTIVATEDITX1TRANSITIONACTIVATEDIEINTERRUPTENABLEREGISTERBITADDRESSABLEIFTHEBITIS0,THECORRESPONDINGINTERRUPTISDISABLEDIFTHEBITIS1,THECORRESPONDINGINTERRUPTISENABLEDEA––ESET1EX1ET0EX0EAIE7DISABLESALLINTERRUPTSIFEA0,NOINTERRUPTWILLBEACKNOWLEDGEDIFEA1,EACHINTERRUPTSOURCEISINDIVIDUALLYENABLEDORDISABLEDBYSETTINGORCLEARINGITSENABLEBITIE6NOTIMPLEMENTED,RESERVEDFORFUTUREUSEIE5NOTIMPLEMENTED,RESERVEDFORFUTUREUSEESIE4ENABLEORDISABLETHESERIALPORTINTERRUPTET1IE3ENABLEORDISABLETHETIMER1OVERFLOWINTERRUPTEX1IE2ENABLEORDISABLEEXTERNALINTERRUPT1ET0IE1ENABLEORDISABLETHETIMER0OVERFLOWINTERRUPTEX0IE0ENABLEORDISABLEEXTERNALINTERRUPT0USERSOFTWARESHOULDNOTWRITE1STORESERVEDBITSTHESEBITSMAYBEUSEDINFUTURE80C51PRODUCTSTOINVOKENEWFEATURES80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19957ASSIGNINGHIGHERPRIORITYTOONEORMOREINTERRUPTSINORDERTOASSIGNHIGHERPRIORITYTOANINTERRUPTTHECORRESPONDINGBITINTHEIPREGISTERMUSTBESETTO1REMEMBERTHATWHILEANINTERRUPTSERVICEISINPROGRESS,ITCANNOTBEINTERRUPTEDBYALOWERORSAMELEVELINTERRUPTPRIORITYWITHINLEVELPRIORITYWITHINLEVELISONLYTORESOLVESIMULTANEOUSREQUESTSOFTHESAMEPRIORITYLEVELFROMHIGHTOLOW,INTERRUPTSOURCESARELISTEDBELOWIE0TF0IE1TF1RIORTIIPINTERRUPTPRIORITYREGISTERBITADDRESSABLEIFTHEBITIS0,THECORRESPONDINGINTERRUPTHASALOWERPRIORITYANDIFTHEBITIS1THECORRESPONDINGINTERRUPTHASAHIGHERPRIORITY–––PSPT1PX1PT0PX0–IP7NOTIMPLEMENTED,RESERVEDFORFUTUREUSE–IP6NOTIMPLEMENTED,RESERVEDFORFUTUREUSE–IP5NOTIMPLEMENTED,RESERVEDFORFUTUREUSEPSIP4DEFINESTHESERIALPORTINTERRUPTPRIORITYLEVELPT1IP3DEFINESTHETIMER1INTERRUPTPRIORITYLEVELPX1IP2DEFINESEXTERNALINTERRUPT1PRIORITYLEVELPT0IP1DEFINESTHETIMER0INTERRUPTPRIORITYLEVELPX0IP0DEFINESTHEEXTERNALINTERRUPT0PRIORITYLEVELUSERSOFTWARESHOULDNOTWRITE1STORESERVEDBITSTHESEBITSMAYBEUSEDINFUTURE80C51PRODUCTSTOINVOKENEWFEATURES80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19958TCONTIMER/COUNTERCONTROLREGISTERBITADDRESSABLETF1TR1TF0TR0IE1IT1IE0IT0TF1TCON7TIMER1OVERFLOWFLAGSETBYHARDWAREWHENTHETIMER/COUNTER1OVERFLOWSCLEAREDBYHARDWAREASPROCESSORVECTORSTOTHEINTERRUPTSERVICEROUTINETR1TCON6TIMER1RUNCONTROLBITSET/CLEAREDBYSOFTWARETOTURNTIMER/COUNTER1ON/OFFTF0TCON5TIMER0OVERFLOWFLAGSETBYHARDWAREWHENTHETIMER/COUNTER0OVERFLOWSCLEAREDBYHARDWAREASPROCESSORVECTORSTOTHESERVICEROUTINETR0TCON4TIMER0RUNCONTROLBITSET/CLEAREDBYSOFTWARETOTURNTIMER/COUNTER0ON/OFFIE1TCON3EXTERNALINTERRUPT1EDGEFLAGSETBYHARDWAREWHENEXTERNALINTERRUPTEDGEISDETECTEDCLEAREDBYHARDWAREWHENINTERRUPTISPROCESSEDIT1TCON2INTERRUPT1TYPECONTROLBITSET/CLEAREDBYSOFTWARETOSPECIFYFALLINGEDGE/LOWLEVELTRIGGEREDEXTERNALINTERRUPTIE0TCON1EXTERNALINTERRUPT0EDGEFLAGSETBYHARDWAREWHENEXTERNALINTERRUPTEDGEDETECTEDCLEAREDBYHARDWAREWHENINTERRUPTISPROCESSEDIT0TCON0INTERRUPT0TYPECONTROLBITSET/CLEAREDBYSOFTWARETOSPECIFYFALLINGEDGE/LOWLEVELTRIGGEREDEXTERNALINTERRUPTTMODTIMER/COUNTERMODECONTROLREGISTERNOTBITADDRESSABLEGATEC/TM1M0GATEC/TM1M0TIMER1TIMER0GATEWHENTRXINTCONISSETANDGATE1,TIMER/COUNTERXWILLRUNONLYWHILEINTXPINISHIGHHARDWARECONTROLWHENGATE0,TIMER/COUNTERXWILLRUNONLYWHILETRX1SOFTWARECONTROLC/TTIMERORCOUNTERSELECTORCLEAREDFORTIMEROPERATIONINPUTFROMINTERNALSYSTEMCLOCKSETFORCOUNTEROPERATIONINPUTFROMTXINPUTPINM1MODESELECTORBITNOTE1M0MODESELECTORBITNOTE1NOTE1M1M0OPERATINGMODE00013BITTIMER8048COMPATIBLE01116BITTIMER/COUNTER1028BITAUTORELOADTIMER/COUNTER113TIMER0TL0ISAN8BITTIMER/COUNTERCONTROLLEDBYTHESTANDARTTIMER0CONTROLBITSTH0ISAN8BITTIMERANDISCONTROLLEDBYTIMER1CONTROLBITS113TIMER1TIMER/COUNTER1STOPPED80C51FAMILYPROGRAMMER’SGUIDEANDINSTRUCTIONSETPHILIPSSEMICONDUCTORS80C51FAMILYMARCH19959TIMERSETUPTABLES2THROUGH5GIVESOMEVALUESFORTMODWHICHCANBEUSEDTOSETUPTIMER0INDIFFERENTMODESITISASSUMEDTHATONLYONETIMERISBEINGUSEDATATIMEIFITISDESIREDTORUNTIMERS0AND1SIMULTANEOUSLY,INANYMODE,THEVALUEINTMODFORTIMER0MUSTBEOREDWITHTHEVALUESHOWNFORTIMER1TABLES5AND6FOREXAMPLE,IFITISDESIREDTORUNTIMER0INMODE1GATEEXTERNALCONTROL,ANDTIMER1INMODE2COUNTER,THENTHEVALUETHATMUSTBELOADEDINTOTMODIS69H09HFROMTABLE2OREDWITH60HFROMTABLE5MOREOVER,ITISASSUMEDTHATTHEUSER,ATTHISPOINT,ISNOTREADYTOTURNTHETIMERSONANDWILLDOTHATATADIFFERENTPOINTINTHEPROGRAMBYSETTINGBITTRXINTCONTO1TIMER/COUNTER0TABLE2ASATIMERTMODMODETIMER0FUNCT

注意事项

本文(80C51 family programmer guide.pdf)为本站会员(baixue100)主动上传,人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知人人文库网(发送邮件至[email protected]或直接QQ联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。

关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服客服 - 联系我们

网站客服QQ:2846424093    人人文库上传用户QQ群:460291265   

[email protected] 2016-2018  renrendoc.com 网站版权所有   南天在线技术支持

经营许可证编号:苏ICP备12009002号-5