| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3804 人关注过本帖
标题:如何让点阵显示1-9循环飘出?我就是不会让它飘
只看楼主 加入收藏
小白1129
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-12-10
收藏
 问题点数:0 回复次数:0 
如何让点阵显示1-9循环飘出?我就是不会让它飘
             org 0000h
           swwc:mov r5,#10
                mov 20h,#00
           swwb:mov r4,#100
           swwa:lcall main
                djnz r4,swwa
                mov a,20h
                add a,#08
                mov 20h,a
                djnz r5,swwb
                ajmp swwc                这是主程序,控制循环次数,下面的是每次循环显示的内容
                ret
         main:mov r1,20h      
              mov r3,#08h     
              mov r2,#0feh
          gn1:mov p2,#0ffh
              mov dptr,#tab
              mov a,r1         
              movc a,@a+dptr  
              mov p0,a         
              inc r1           
              mov a,r2         
              mov p2,a
              lcall delay
              rl a              
              mov r2,a
              djnz r3,gn1                     
              ret
        delay:push 04h
              push 05h
              mov r4,#14h
         loop:mov r5,#18h
              djnz r5,$
              djnz r4,loop
              pop 05h
              pop 04h
              ret
         TAB: DB  00H,3CH,42H,81H,81H,42H,3CH,00H
              DB  00h,00h,00h,21h,7fh,01h,00h,00h
              DB  00H,00h,27h,45h,45h,45h,39h,00h
              DB  00h,00h,22h,49h,49h,49h,36h,00h
              DB  00H,04h,0ch,14h,24h,7fh,04h,00h
              DB  00h,00h,72h,51h,51h,51h,4eh,00h
              DB  00H,00h,3eh,49h,49h,49h,26h,00h
              DB  00H,00h,40h,40h,40h,4fh,70h,00h
              DB  00H,00h,36h,49h,49h,49h,36h,00h
              DB  00H,00h,32h,49h,49h,49h,3eh,00h
              end
我就是不知道怎么在主程序里加一些东西,让他能用点阵显示器轮流滚动显示数字0-9,而且所有数字采用渐渐移出显示器方式
谢谢大神,跪求大神了,    学知识不容易啊
搜索更多相关主题的帖子: 主程序 如何 
2013-12-10 22:06
快速回复:如何让点阵显示1-9循环飘出?我就是不会让它飘
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.031197 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved