1616LED点阵显示屏电路及程序docx.docx
- 文档编号:28758423
- 上传时间:2023-07-19
- 格式:DOCX
- 页数:15
- 大小:68.24KB
1616LED点阵显示屏电路及程序docx.docx
《1616LED点阵显示屏电路及程序docx.docx》由会员分享,可在线阅读,更多相关《1616LED点阵显示屏电路及程序docx.docx(15页珍藏版)》请在冰豆网上搜索。
1616LED点阵显示屏电路及程序docx
16×16LED点阵显示屏电路及程序
ORG0000H
AJMPST
ORG0003H
AJMPKUAI
ORG0013H
AJMPMAN
ORG0030H
ST:
MOVP0,#00H;开始
MOVP2,#00H
MOVIE,#05H
MOVIP,#01H
MOVTCON,#05H
SETBEA
MOVR0,#90H
MOV@R0,#180
MAIN:
JNBP3.0,K1
K1:
LCALLD1MS
JNBP3.0,BEGIN
AJMPMAIN
BEGIN:
JNBP3.1,K2
K2:
LCALLD1MS
JNBP3.1,K22
SJMPNEXT
K22:
LJMPMAIN
NEXT:
MOVDPTR,#TAB;主程序
MOVR1,#00H
MOVR4,#255;16*字数
CM:
MOVR5,#7
MOVR3,#16
C1:
MOVR2,#0
C16:
MOVP0,#00H
MOVP2,#00H
MOVA,R2
MOVCA,@A+DPTR
MOVP0,A
INCR2
MOVA,R2
MOVCA,@A+DPTR
MOVP2,A
INCR2
MOVP1,R1
INCR1
ACALLD1MS
DJNZR3,C16
MOVR3,#16
DJNZR5,C1
INCDPTR
INCDPTR
DJNZR4,CM
AJMPBEGIN
D1MS:
MOVA,@R0
MOVR6,#3
MOVR7,A
DJNZR7,$
DJNZR6,$-4
RET
KUAI:
MOV@R0,#120
RETI
MAN:
MOV@R0,#255
RETI
TAB:
zero:
DB000H,000H,000H,000H,000H,000H,000H,000H
DB000H,000H,000H,000H,000H,000H,000H,000H
DB000H,000H,000H,000H,000H,000H,000H,000H
DB000H,000H,000H,000H,000H,000H,000H,000H;0
ZHONG:
DB000H,000H,0F8H,003H,008H,001H,008H,001H
DB008H,001H,008H,001H,008H,001H,0FFH,0FFH
DB008H,001H,008H,001H,008H,001H,008H,001H
DB008H,001H,0FCH,003H,008H,000H,000H,000H
GUO:
DB000H,000H,0FEH,0FFH,002H,040H,00AH,050H
DB08AH,050H,08AH,050H,08AH,050H,0FAH,05FH
DB08AH,050H,0CAH,052H,08EH,054H,00AH,050H
DB002H,040H,0FFH,0FFH,002H,000H,000H,000H
KUANG:
DB004H,002H,004H,001H,0E4H,03FH,09CH,010H
DB084H,090H,0C6H,05FH,084H,020H,0F8H,01FH
DB008H,000H,009H,000H,00EH,000H,008H,000H
DB008H,000H,00CH,000H,008H,000H,000H,000H
YE:
DB000H,040H,010H,040H,060H,040H,080H,047H
DB000H,040H,0FFH,07FH,000H,040H,000H,040H
DB000H,040H,0FFH,07FH,000H,044H,000H,043H
DB0C0H,040H,030H,060H,000H,040H,000H,000H
DA1:
DB020H,000H,020H,040H,020H,040H,020H,020H
DB020H,010H,020H,00CH,0A0H,003H,07FH,000H
DB0A0H,001H,020H,006H,020H,008H,020H,010H
DB020H,020H,030H,060H,020H,020H,000H,000H
XUE:
DB040H,004H,030H,004H,011H,004H,096H,004H
DB090H,004H,090H,044H,091H,084H,096H,07EH
DB090H,006H,090H,005H,098H,004H,014H,004H
DB013H,004H,050H,006H,030H,004H,000H,000H
XIN:
DB080H,000H,040H,000H,020H,000H,0F8H,0FFH
DB007H,000H,024H,001H,024H,0FDH,024H,045H
DB025H,045H,026H,045H,024H,045H,024H,045H
DB0B4H,0FDH,026H,001H,004H,000H,000H,000H
XI:
DB000H,040H,000H,030H,000H,000H,0FCH,077H
DB0A4H,084H,0A6H,084H,0A5H,08CH,0A4H,094H
DB0A4H,0B4H,0A4H,084H,0A4H,084H,0FEH,0E7H
DB004H,000H,000H,010H,000H,060H,000H,000H
YU:
DB000H,008H,000H,008H,000H,008H,0FFH,008H
DB088H,008H,088H,008H,088H,008H,088H,008H
DB088H,008H,088H,04CH,088H,088H,088H,040H
DB0CCH,03FH,088H,000H,000H,000H,000H,000H
DIAN:
DB000H,000H,0F8H,007H,048H,002H,048H,002H
DB048H,002H,048H,002H,0FFH,03FH,048H,042H
DB048H,042H,048H,042H,048H,042H,0FCH,047H
DB008H,040H,000H,070H,000H,000H,000H,000H
QI:
DB040H,000H,020H,000H,058H,000H,047H,000H
DB054H,000H,054H,000H,054H,000H,054H,000H
DB054H,000H,054H,000H,0D4H,01FH,014H,020H
DB006H,040H,004H,080H,000H,070H,000H,000H
GONG:
DB000H,020H,004H,020H,004H,020H,004H,020H
DB004H,020H,004H,020H,004H,020H,0FCH,03FH
DB004H,020H,004H,020H,004H,020H,004H,020H
DB004H,020H,004H,020H,000H,020H,000H,000H
CHENG:
DB024H,008H,024H,006H,0A4H,001H,0FEH,0FFH
DB0A3H,000H,022H,041H,020H,041H,07EH,049H
DB042H,049H,042H,049H,042H,07FH,042H,049H
DB042H,049H,07EH,069H,000H,041H,000H,000H
XUE1:
DB040H,004H,030H,004H,011H,004H,096H,004H
DB090H,004H,090H,044H,091H,084H,096H,07EH
DB090H,006H,090H,005H,098H,004H,014H,004H
DB013H,004H,050H,006H,030H,004H,000H,000H
YUAN:
DB000H,000H,0FEH,0FFH,022H,004H,05AH,008H
DB096H,087H,00CH,081H,024H,041H,024H,031H
DB025H,00FH,026H,001H,024H,03FH,034H,041H
DB0A4H,041H,014H,041H,00CH,070H,000H,000H
END
#include
#defineucharunsignedchar
#defineuintunsignedint
sbits1=P3^0;
sbits2=P3^1;
sbits3=P3^2;
sbits4=P3^3;
sbits5=P3^4;
bitd=1;
ucharcodetab[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0,0x0,0x0,0x0,0x20,0x30,0x70,0x38,0x78,0x38,0x8,0x3C,0x8,0x34,0x8,0x36,0x8,0x32,0x8,0x33,0x88,0x31,0xD8,0x31,0xF8,0x30,0x70,0x38,0x0,0x0,0x0,0x0,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0x4,0xF,0x43,0x8,0x80,0xC8,0x7F,0x8,0x0,0x8,0x1,0x28,0x6,0x18,0xC,0x0,0x0,0x0,0x0,//你
0x8,0x8,0x8,0x4,0x8,0x2,0x8,0xFF,0xC8,0x0,0x38,0x40,0xF,0x41,0x8,0x41,0x8,0x41,0xE8,0x7F,0x8,0x41,0x88,0x41,0x8,0x41,0xC,0x60,0x8,0x40,0x0,0x0,//在
0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0x80,0x0,0xC0,0x0,0x80,0x0,0x0,0x0,//一
0x40,0x40,0x48,0x20,0x48,0x1F,0x48,0x20,0xFF,0x7F,0x48,0x42,0x48,0x42,0x0,0x40,0xC4,0x47,0x44,0x48,0x44,0x48,0x44,0x48,0xFE,0x48,0x4,0x6E,0x0,0x20,0x0,0x0,//起
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00//N个字,32*(N+1)
};
voiddelay(uintz)
{
uintx;
for(;z>0;z--)
for(x=100;x>0;x--);
}
voidshow1(uchardat1)
{
P0=0;
P0=dat1;
}
voidshow2(uchardat2)
{
P2=0;
P2=dat2;
}
intmain()
{
uinti,j,a,b,k=4;
loop:
P0=0;
P2=0;
while
(1)
{
if(s1==0)
{
delay(5);
if(s1==0)
{
while
(1)
{
P0=0;
P2=0;
a=0;
loop2:
if(d==1)
{
while
(1)
{
for(;b<416;b+=2)
{
a+=b;
for(j=0;j { if(s2==0) { delay(5); if(s2==0) {P0=0;P2=0; a=0;b=0;k=4; gotoloop;} } if(s3==0) { delay(5); if(s3==0) k=2; }
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 1616 LED 点阵 显示屏 电路 程序 docx