红外遥控电子密码锁汇编程序(Infrared remote control electronic code lock assembler).doc

红外遥控电子密码锁汇编程序(Infrared remote control electronic code lock assembler).doc

  1. 1、本文档共29页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
红外遥控电子密码锁汇编程序(Infrared remote control electronic code lock assembler)

红外遥控电子密码锁汇编程序(Infrared remote control electronic code lock assembler) Infrared remote control electronic code lock program ORG 0000H; main program CLR P1.7; cleared MOV, RO, #OOH CLR P1.3; turn off the alarm CLR P1.7; P1.7 cleared CLR P1.4; turn off the alarm MOV, RO, #OOH, serial port initialization MOV, 52H, #02H; send an immediate number of 02H to 52H MOV, TMOD, #20H; set the T1 mode of operation 2 MOV, TL1, #OF4H; timed initial value to send TL1 MOV, TH1, #OF4H; timed initial value to send TH1 SETB TR1; start timer T1 MOV, SCON, #ODOH; define serial line operation 3 MOV, PCON, #OOH KEY:, JNB, P1.5, KEP1; select password 57618 LJMP KEP2 ******************************************************* password 57618 program KEP1:, MOV, P2, #0FFH, pass display MOV A, P0 to determine if there is a key press CPL A; take the data from the P0 port back ANL, A, #OFFH; immediate data OFF and PO data phase JNZ JP; press key to go to JP MOV, A, P1; determine whether the keyboard is pressed CPL A; take the data from the P1 port back ANL A, #O7H; the accumulator data is zero to the remote receive program JZ WAIT ACALL D10MS; calls 10 second delay MOV, A, P1 CPL A ANL, A, #O7H JZ WAIT PP1:, CJNE, A, #01H, JP1 MOV, P2, #89H; display characters, H LJMP K0P1 PP2:, CJNE, A, #02H, JP2 MOV, P2, #89H; display characters, H LJMP KOP1 JP2:, CJNE, A, #04H, KY MOV, P2, #89H; display characters, H JP3:, MOV, A, #O7H CJNE, A, #07H, JP3 LJMP LP1 KOP1:, MOV, A, P1 ANL, A, #07H cjne a # 07h, kop1 ljmp kep1 jp: lcall d10ms mov a, after cpl but. anl a # offh southwest c6 cjze a # 01h, key02 mov p2, # 89h ljmp key1 key02: cjne a # 02h, key03 mov p2, # 89h ljmp kjp1 keyo3: cjne a # 04h, key04 mov p2, # 89 ljmp kjp1 key04: cjze a # 08h, key05 mov p2, # 89h ljmp kjp1 key05: cjze a # 10, key06 mov p2, # 89h ljmp kjp1 key06: cjze a # 08h, key07 mov p2, # 89h ljmp kjp1 key07 cjze a # 10 key08 mov p2, # 89h ljmp kjp1 key08 cjze a # 10h, c6 mov p2, # 89h ljmp kjp1 kjp1: mov a, p0 cjne a # offh, kjp1 c6: ljmp wa

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档