工厂屏

工厂屏

应用介绍

工厂屏

#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();
  
   }
	
   
}   

文件列表(部分)

名称 大小 修改日期
Backup Of oem.DBK34.21 KB2019-06-24
bestsave.rte0.25 KB2019-06-24
Last Loaded oem.DBK34.88 KB2019-06-24
new 30.18 KB2019-06-24
new 3.C0.61 KB2019-06-24
new 3.LST1.24 KB2019-06-24
new 3.OBJ1.42 KB2019-06-24
new.c1.54 KB2019-06-24
oem.DO0.08 KB2019-06-24
oem.DSN34.87 KB2019-06-24
oem.EDF1.12 KB2019-06-24
oem.PWI0.38 KB2019-06-24
oem.rts0.04 KB2019-06-24
oem.ses0.28 KB2019-06-24
oem.sts0.36 KB2019-06-24
STARTUP.A511.73 KB2019-06-24
STARTUP.LST1.69 KB2019-06-24
STARTUP.OBJ0.43 KB2019-06-24
test1.94 KB2019-06-24
test.hex0.88 KB2019-06-24
test.lnp0.03 KB2019-06-24
test.M511.08 KB2019-06-24
test.Opt0.63 KB2019-06-24
test.plg0.57 KB2019-06-24
test.Uv20.88 KB2019-06-24
[编辑]1.lst1.89 KB2019-06-24
[编辑]1.obj2.21 KB2019-06-24
0040、工厂屏0.00 KB2019-06-24

立即下载

相关下载

[工厂屏] 工厂屏

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部