<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 基于AT89C2051的紅外遙控學(xué)習(xí)器源程序

          基于AT89C2051的紅外遙控學(xué)習(xí)器源程序

          作者: 時(shí)間:2010-12-09 來(lái)源:網(wǎng)絡(luò) 收藏

          WRITNRT3: DEC RO
          WRITNET2: LCALL WRITEBYTE
          INC RO
          INC R3
          LJMP WRITNE1
          RET
          WRITBYTE: MOV R2,#08H
          BOUT1: CLR CLK
          RLC A
          MOV DATADUAN,C
          NOP
          SETB CLK
          NOPDJNZ R2,BOUT1
          CLRDATADUAN
          RET
          READBYTE: SETB DATAUAN
          MOV R2,#08H
          BIN1: CLR CLK
          NOP
          SETB CLK
          NOP
          MOV C,DATADUAN
          RLC A
          DJNZ R2,BIN1
          RET
          READCOM: CLR CS
          CLR CLK
          SETB DATADUAN
          SETB CS
          NOP
          SETB CLK ;1
          NOP
          CLR CLK
          NOP
          SETB CLK ;1
          NOP
          CLR DATAUAN
          CLR CLK
          NOP
          SETB CLK ;0
          RET
          WRITECOM: CLR CS
          NOP
          CLR CLK
          SETB DATADUAN
          SETB CS
          NOP
          SETB CLK ;1
          NOP
          CLR DATADUAN
          NOP
          CLR CLK
          NOP
          SETB CLK ;0
          NOP
          SETB DATADUAN
          NOP
          CLR CLK
          NOP
          SETB CLK ;1
          RET
          WRITEADRESS: MOV R2,#07H
          RLC A ;TIAO GUO
          DI 7 WEI
          BOUT2: CLR CLK
          RLC A
          MOV DATADUAN,C
          NOP
          DJNA R2,BOUT2
          CLR DATAUAN
          RET
          EQEN: CLR CS
          CLR CLK
          SETB DATADUAN
          SETB CS
          SETB CLK ;1
          NOP
          CLR CLK
          NOP
          CLR DATADUAN
          SETB CLK ;0
          NOP
          NOP
          CLR CLK
          NOP
          SETB CLK ;0
          NOP
          NOP
          SETB DATADUAN
          CLR CLK
          NOP
          SETB CLK ;1
          NOP
          NOP
          SETB CLK ;1
          NOP
          NOP
          CLR CLK
          NOP
          NOP
          CLR CS
          RET
          EWDS: CLR CS
          CLR CLK
          SETB DATADUAN
          SETB CS
          SETB CLK ;1
          NOP
          CLR CLK
          NOP
          CLR DATADUAN
          SETB CLK ;0
          NOP
          NOP
          CLR CLK
          NOP
          SETB CLK ;0
          NOP
          NOP
          CLR CLK
          NOP
          NOP
          RETB CLK ;0
          NOP
          NOP
          SETB CLK ;0
          NOP
          NOP
          CLR CLK
          NOP
          NOP
          SETB CLK ;0
          NOP
          NOP
          CLR CS
          CLR CLK
          RET
          DELAY: MOV R3,#96H
          DEL1: MOV R4,#OFFH
          DEL2: DJNZ R4,DEL2
          DJNZ R3,#DEL1
          RET
          END

          本文引用地址:http://www.ex-cimer.com/article/173092.htm

          上一頁(yè) 1 2 3 下一頁(yè)

          評(píng)論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();