微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 立体旋转LED汇编程序设计

立体旋转LED汇编程序设计

时间:11-30 来源:互联网 点击:
org 00h
jmp cfgorg 03hclr 00hreticfg: ;setb ea;  setb ex0;  setb it0mov dptr,#tabMM00: CLR 00Hmm: mov a,r2movc a,@a+dptrcpl acall hbitmov r4,adeC r2mov a,r2movc a,@a+dptrdec r2cpl acall hbitjb 01h,gr0mov p1,amov p3,r4jmp gr00gr0:mov p2,amov p0,r4gr00:djnz r6,$djnz r6,$;djnz r6,$cjne r2,#0ffh,mmmmov p0,#0ffhmov p1,#0ffhmov p2,#0ffhmov p3,#0ffhjb 0e8h.3,$   ;检测是否低电平mmm:  jb 0e8h.3,MM00   ;检测是否低电平jb 00h,mmsetb 00hmov r2,#0ffhinc dptrinc dptrinc dptrinc dptrmov a,dphcjne a,#tab2/256,e0dmov dptr,#tabcpl 01he0d: jmp mmhbit:  ;这是一个位交换子程序,用来实现字倒着显示或者正着显示,倒着显示时适合电动机在上面挂起来安装的情况。mov c,acc.0mov b.7,cmov c,acc.1mov b.6,cmov c,acc.2mov b.5,cmov c,acc.3mov b.4,cmov c,acc.4mov b.3,cmov c,acc.5mov b.2,cmov c,acc.6mov b.1,cmov c,acc.7mov b.0,cmov a,bretorg 200h;org 300h,下面是显示的数据内容,是用本站软件自动生成的供码,请自行修改,其中的0000000000数据是加进去的空白代码,用来显示开头和结尾的空白;;………………数据内容省略,请用本站的自动数码代码程序自动生成tab:db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0db 00h,04h,40h,04h,41h,04h,41h,04hdb 41h,04h,41h,0fch,7fh,04h,41h,04hdb 41h,04h,41h,04h,43h,0fch,41h,04hdb 40h,04h,00h,0ch,00h,04h,00h,00hdb 00h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,01h,00h,01h,00h,01h,00hdb 01h,00h,03h,00h,01h,00h,00h,00hdb 00h,00h,00h,00h,1fh,0f0h,12h,20hdb 12h,20h,12h,20h,12h,20h,0ffh,0fchdb 12h,22h,12h,22h,12h,22h,12h,22hdb 1fh,0f2h,00h,02h,00h,0eh,00h,00hdb 00h,80h,00h,80h,40h,80h,40h,80hdb 40h,80h,40h,82h,40h,81h,47h,0fehdb 48h,80h,50h,80h,60h,80h,40h,80hdb 00h,80h,01h,80h,00h,80h,00h,00hdb 10h,04h,1fh,0fch,00h,84h,01h,00hdb 01h,00h,01h,04h,00h,0fch,00h,04hdb 00h,00h,01h,00h,01h,00h,07h,0f8hdb 01h,04h,01h,04h,00h,00h,00h,00hdb 00h,00h,01h,00h,01h,00h,07h,0f8hdb 01h,04h,01h,04h,00h,00h,00h,00hdb 01h,01h,01h,0ffh,00h,85h,01h,04hdb 01h,04h,00h,88h,00h,70h,00h,00hdb 00h,00h,00h,00h,00h,00h,03h,0chdb 03h,0ch,00h,00h,00h,00h,00h,00hdb 00h,00h,00h,06h,00h,18h,00h,60hdb 01h,80h,06h,00h,18h,00h,20h,00hdb 00h,00h,00h,06h,00h,18h,00h,60hdb 01h,80h,06h,00h,18h,00h,20h,00htab1:db 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 01h,0f0h,01h,0ch,00h,30h,01h,0c0hdb 00h,30h,01h,0ch,01h,0f0h,01h,00hdb 00h,00h,00h,0ch,00h,0ch,00h,00hdb 00h,00h,00h,00h,00h,00h,00h,00hdb 00h,00h,1fh,98h,10h,84h,11h,04hdb 11h,04h,10h,88h,10h,70h,00h,00htab2:end

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top