看仿真视频 有对应的代码哦~
http://v.youku.com/v_show/id_XMTUwNTk5NDM2.html如果看不清 或喜欢该视频可以下载原版
下面是代码支持下载回去自己玩:
#include<reg51.h>
sbit clk=P1^0;
sbit dat=P1^1;
sbit dis=P1^2;
sbit soe=P3^0;
void delay(unsigned int t)
{while(t--);
}
void display(unsigned char x)
{unsigned char i;
for(i=0;i<8;i++)
{clk=0;
if(x&0x01)
dat=1;
else
dat=0;
x>>=1;
clk=1;
}
}
main()
{unsigned char x={
{0x00,0x04,0x04,0xFE,0x7E,0x84,0x44,0x84,
0x44,0x84,0x44,0xFC,0x7C,0x84,0x44,0x84,
0x44,0x84,0x44,0xFC,0x7C,0x84,0x44,0x84,
0x01,0x04,0x01,0x04,0x02,0x14,0x04,0x08},
{0x10,0x40,0x10,0x44,0x2F,0xFE,0x20,0x40,
0x47,0xFC,0x94,0xA4,0x14,0xA4,0x27,0xFC,
0x60,0x00,0xAF,0xFE,0x20,0x40,0x21,0x20,
0x25,0x24,0x25,0x0A,0x28,0xFA,0x20,0x00},
{0x01,0x00,0x01,0x00,0x01,0x08,0x7F,0xFC,
0x01,0x00,0x01,0x00,0x01,0x10,0x3F,0xF8,
0x01,0x00,0x01,0x00,0x01,0x04,0xFF,0xFE,
0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00}};
unsigned char i,k,tt;
soe=0;
while(1)
{
for(k=0;k<10;k++)
for(i=0;i<16;i++)
{P2=i;
dis=0;
display(x);
display(x);
display(x);
display(x);
display(x);
display(x);
dis=1;
delay(300);
}
for(i=0;i<16;i++)
{tt=x>>7;
x<<=1;
x|=(x>>7);
x<<=1;
x|=(x>>7);
x<<=1;
x|=(x>>7);
x<<=1;
x|=(x>>7);
x<<=1;
x|=(x>>7);
x<<=1;
x|=tt;
}
}
} 不错。好。。学习了。
不知道是用什么软件做的呀? 是protel99吗? 回复 2# lubingbing
是用protuse做的 资料非常不错,很值得技术人员分享,先顶了~ 很好 谢谢谢!你是学单片机的吗?我初学 向你学习 你用什么仿真的 软件能发一份吗 745591666 看帖要顶帖,做人要厚道,楼主的知识非常不错,分享了。。。 没有程序说明嘛??????
页:
[1]