应用介绍
工厂屏
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define unit unsigned int
void display(void);
unsigned char code table[48];
uchar code table[]={
0x01,0x80,0x00,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x00,
0x01,0x80,0x01,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x01,
0x01,0x80,0x02,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x02,
0x01,0x80,0x03,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x03,
0x01,0x80,0x04,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x04,
0xFF,0xFF,0x05,//0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,/**/0x05,
0x01,0x80,0x06,//0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,/**/0x06,
0x03,0xC0,0x07,//0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,/**/0x07,
0x03,0xC0,0x08,//0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x03,0xC0,/**/0x08,
0x06,0xc0,0x09,//0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,0x03,0x60,/**/0x09,
0x06,0x60,0x0a,//0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,/**/0x0A,
0x0C,0x06,0x0b,//0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,0x06,0x30,/**/0x0B,
0x18,0x30,0x0c,//0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,0x0C,0x18,/**/0x0C,
0x38,0x18,0x0d,//0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,0x18,0x1C,/**/0x0D,
0xF0,0xC0,0x0e,//0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,0x30,0x0F,/**/0x0E,
0x60,0x06,0x0f,//0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,0x60,0x06,/**/0x0F,
};
sbit ds=P1^1;//数据打入口
sbit shcp=P1^0;//移位数据脉冲
sbit stcp=P1^3;//数据打出脉冲
//*****************************显示函数
void display(void)
{
unit rw,j=0;
uchar temp,i;
for(rw=0;rw<48;rw++)
{
j=j+1;
temp=table[rw];
for (i=0;i<8;i++)
{
temp=temp<<1;
ds=CY;
shcp=1;
shcp=0;
}
if (j==3)
{
stcp=0;
stcp=1;
j=0;
}
}
}
//********************************延时
//*******************************主函数
void main (void)
{
shcp=0;
stcp=0;
while(1)
{
display();
}
}
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 工厂屏
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Backup Of oem.DBK | 34.21 KB | 2019-06-24 |
bestsave.rte | 0.25 KB | 2019-06-24 |
Last Loaded oem.DBK | 34.88 KB | 2019-06-24 |
new 3 | 0.18 KB | 2019-06-24 |
new 3.C | 0.61 KB | 2019-06-24 |
new 3.LST | 1.24 KB | 2019-06-24 |
new 3.OBJ | 1.42 KB | 2019-06-24 |
new.c | 1.54 KB | 2019-06-24 |
oem.DO | 0.08 KB | 2019-06-24 |
oem.DSN | 34.87 KB | 2019-06-24 |
oem.EDF | 1.12 KB | 2019-06-24 |
oem.PWI | 0.38 KB | 2019-06-24 |
oem.rts | 0.04 KB | 2019-06-24 |
oem.ses | 0.28 KB | 2019-06-24 |
oem.sts | 0.36 KB | 2019-06-24 |
STARTUP.A51 | 1.73 KB | 2019-06-24 |
STARTUP.LST | 1.69 KB | 2019-06-24 |
STARTUP.OBJ | 0.43 KB | 2019-06-24 |
test | 1.94 KB | 2019-06-24 |
test.hex | 0.88 KB | 2019-06-24 |
test.lnp | 0.03 KB | 2019-06-24 |
test.M51 | 1.08 KB | 2019-06-24 |
test.Opt | 0.63 KB | 2019-06-24 |
test.plg | 0.57 KB | 2019-06-24 |
test.Uv2 | 0.88 KB | 2019-06-24 |
[编辑]1.lst | 1.89 KB | 2019-06-24 |
[编辑]1.obj | 2.21 KB | 2019-06-24 |
0040、工厂屏 | 0.00 KB | 2019-06-24 |
发表评论 取消回复