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

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 單片機(jī)試驗(yàn)8X8 LED點(diǎn)陣顯示技術(shù)

          單片機(jī)試驗(yàn)8X8 LED點(diǎn)陣顯示技術(shù)

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

          5 匯編源程序

          ORG 00H

          START: NOP

          MOV R3,#3

          LOP2: MOV R4,#8

          MOV R2,#0

          LOP1: MOV P1,#0FFH

          MOV DPTR,#TABA

          MOV A,R2

          MOVC A,@A+DPTR

          MOV P3,A

          INC R2

          LCALL DELAY

          DJNZ R4,LOP1

          DJNZ R3,LOP2

          MOV R3,#3

          LOP4: MOV R4,#8

          MOV R2,#7

          LOP3: MOV P1,#0FFH

          MOV DPTR,#TABA

          MOV A,R2

          MOVC A,@A+DPTR

          MOV P3,A

          DEC R2

          LCALL DELAY

          DJNZ R4,LOP3

          DJNZ R3,LOP4

          MOV R3,#3

          LOP6: MOV R4,#8

          MOV R2,#0

          LOP5: MOV P3,#00H

          MOV DPTR,#TABB

          MOV A,R2

          MOVC A,@A+DPTR

          MOV P1,A

          INC R2

          LCALL DELAY

          DJNZ R4,LOP5

          DJNZ R3,LOP6

          MOV R3,#3

          LOP8: MOV R4,#8

          MOV R2,#7

          LOP7: MOV P3,#00H

          MOV DPTR,#TABB

          MOV A,R2

          MOVC A,@A+DPTR

          MOV P1,A

          DEC R2

          LCALL DELAY

          DJNZ R4,LOP7

          DJNZ R3,LOP8

          LJMP START

          DELAY: MOV R5,#10

          D2: MOV R6,#20

          D1: MOV R7,#248

          DJNZ R7,$

          DJNZ R6,D1

          DJNZ R5,D2

          RET

          TABA: DB 0FEH,0FDH,0FBH,0F7H,0EFH,0DFH,0BFH,07FH

          TABB: DB 01H,02H,04H,08H,10H,20H,40H,80H

          END



          評(píng)論


          相關(guān)推薦

          技術(shù)專(zhuān)區(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); })();