四字移动LED显示程序(595)(精)_第1页
四字移动LED显示程序(595)(精)_第2页
四字移动LED显示程序(595)(精)_第3页
四字移动LED显示程序(595)(精)_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、/*/ /此程序是基于Proteus 7.4的仿真水院电子技术联盟/qq 群:27802734/制作人:卡姆昂 /2011.06 /*/ #in elude #in elude / #defi ne uehar un sig ned char #defi ne uint un sig ned int sbit SI = P 1八5; / 数据端口sbit SCK = P 1八6; / 时钟端口sbit RCK = P 1八7; /上升沿时移位寄存器的数据进入数据存储寄存器,下降沿时存 储寄存器数据不变。/*本文件为16X16点阵中文字库文件,字的纵向8点构成一字节,上方的点在字节的 低位,字符

2、点阵四角按左上角T左下角T右上角-右下角取字*/*如你想在以后继续用HZDotReader打开文件,追加汉字点阵数据,请不要修改或增 删所有注释*/un sig ned char code hzdot2532 = /*4.4 18*/ 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, /*空白19*/ 0x00,0x00,0

3、x00,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, /*空白20*/ 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,

4、0x00,0x00,0x00,0x00, /* 湖 0*/ 0x10,0x04,0x21,0xFC,0x86,0x03,0x60,0x00,0x90,0x1F,0x90,0x10,0xFF,0x10,0x90,0x90, 0x90,0x5F,0x00,0x30,0xFE,0x0F,0x92,0x40,0x92,0x80,0xFE,0x7F,0x00,0x00,0x00,0x00, /* 北 1 */ 0x00,0x10,0x20,0x30,0x20,0x18,0x20,0x08,0x20,0x04,0xFF,0x7F,0x00,0x00,0x00,0x00, 0x00,0x00,0xFF,0x

5、3F,0x40,0x40,0x20,0x40,0x30,0x40,0x18,0x40,0x10,0x78,0x00,0x00,/* 水 2 */ 0x00,0x10,0x10,0x10,0x10,0x08,0x10,0x06,0x90,0x01,0x70,0x40,0x00,0x80,0xFF,0x7F, 0x20,0x00,0x60,0x00,0x90,0x01,0x08,0x06,0x04,0x0C,0x00,0x18,0x00,0x08,0x00,0x00, /* 院 3 */ 0xFE,0xFF,0x02,0x00,0x32,0x02,0x4A,0x04,0x86,0x83,0x0C,

6、0x41,0x24,0x31,0x24,0x0 0x25,0x01,0x26,0x01,0x24,0x7F,0x24,0x81,0x24,0x81,0x0C,0x81,0x04,0xF1,0x00,0x00, /* 电 4 */监理服务0x48,0x44,0x48,0x44,0x48,0x44,0x48,0x44,0xF8,0x4F,0x00,0x40,0x00,0x70,0x00,0x00, /* 子 5 */ 0x00,0x01,0x00,0x01,0x02,0x01,0x02,0x01,0x02,0x01,0x02,0x41,0x02,0x81,0xE2,0x7F, 0x12,0x01,

7、0x0A,0x01,0x06,0x01,0x02,0x01,0x00,0x01,0x80,0x01,0x00,0x01,0x00,0x00, /* 技 6*/ 0x08,0x01,0x08,0x41,0x88,0x80,0xFF,0x7F,0x48,0x00,0x28,0x40,0x00,0x40,0xC8,0x20, 0x48,0x13,0x48,0x0C,0x7F,0x0C,0x48,0x12,0xC8,0x21,0x48,0x60,0x08,0x20,0x00,0x00, /* 术 7 */ 0x10,0x10,0x10,0x10,0x10,0x08,0x10,0x04,0x10,0x0

8、2,0x90,0x01,0x50,0x00,0xFF,0x7F, 0x50,0x00,0x90,0x00,0x12,0x01,0x14,0x06,0x10,0x0C,0x10,0x18,0x10,0x08,0x00,0x00, /* 联 8*/ 0x02,0x08,0xFE,0x1F,0x92,0x08,0x92,0x08,0x92,0x04,0xFE,0xFF,0x12,0x05,0x11,0x81, 0x12,0x41,0x1C,0x31,0xF0,0x0F,0x18,0x11,0x17,0x21,0x12,0xC1,0x10,0x41,0x00,0x00, /* 盟 9*/ 0x00,0

9、x40,0xFE,0x40,0x92,0x7C,0x92,0x44,0x92,0x44,0xFE,0x7C,0x00,0x46,0x80,0x45, 0x7E,0x44,0x2A,0x7C,0x2A,0x44,0x2A,0x45,0x2A,0x7E,0xFE,0x41,0x00,0x40,0x00,0x00, /*, 10*/ 0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

10、,0x00,0x00,0x00,0x00,0x00, /*QQ 11*/ 0xE0,0x0F,0x10,0x18,0x08,0x24,0x08,0x24,0x08,0x38,0x10,0x50,0xE0,0x4F,0x00,0x00, 0xE0,0x0F,0x10,0x18,0x08,0x24,0x08,0x24,0x08,0x38,0x10,0x50,0xE0,0x4F,0x00,0x00, /* 群 12*/ 0x08,0x08,0x4A,0x04,0x4A,0x7F,0xFE,0x22,0x4A,0x22,0x4A,0x22,0x7E,0x7E,0x00,0x00,0x09,0x04,0

11、x4A,0x04,0x4C,0x04,0xF8,0xFF,0x4C,0x04,0x4B,0x04,0x0A,0x04,0x00,0x00, /* 730 13*/ 0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,日历天0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*27 14*/ 0x00,0x00,0x70,0x30,0x08,0x28,0x08,0x24,0x08

12、,0x22,0x88,0x21,0x70,0x30,0x00,0x00, 0x00,0x00,0x38,0x00,0x08,0x00,0x08,0x3F,0xC8,0x00,0x38,0x00,0x08,0x00,0x00,0x00, /*80 154*/ 0x00,0x00,0x70,0x1C,0x88,0x22,0x08,0x21,0x08,0x21,0x88,0x22,0x70,0x1C,0x00,0x00, 0x00,0x00,0xE0,0x0F,0x10,0x10,0x08,0x20,0x08,0x20,0x10,0x10,0xE0,0x0F,0x00,0x00, /*27 16*/

13、 0x00,0x00,0x70,0x30,0x08,0x28,0x08,0x24,0x08,0x22,0x88,0x21,0x70,0x30,0x00,0x00, 0x00,0x00,0x38,0x00,0x08,0x00,0x08,0x3F,0xC8,0x00,0x38,0x00,0x08,0x00,0x00,0x00,/*34 17*/ 0x00,0x00,0x30,0x18,0x08,0x20,0x88,0x20,0x88,0x20,0x48,0x11,0x30,0x0E,0x00,0x00, 0x00,0x00,0x00,0x07,0xC0,0x04,0x20,0x24,0x10,0x

14、24,0xF8,0x3F,0x00,0x24,0x00,0x00, /* 12 18*/ 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, /*空白19*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x0

15、0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*空白20*/ 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, /*空白21*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

16、0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; /*/ /*函数功能:ms级延时函数*/ /*形参:uchar z */ /*返回值:无*/ /*/ void delay( uint z uchar a,b;uint x;for(x=z;x>0;x- for(b=142;b>0;b- for(a=2;a>0;a-;/*/ /*函数功能:向595发送一个字节的数据*/ /*形参:uchar dat */ /*返回值:无*/ /*/ void sen d_bit(uchar dat uchar n;for(n=0;nv8;n+ SCK=0; /拉低时钟线Sl=dat&0x01; / 准备数据dat>>=1; /数据右移SCK=1; /拉高时钟线 _nop_(; /时钟线保持就1us高电平/*/ /*函数功能:主线程*/ /*形参:无*/ /*返回值:无*/ /*/ void main (void uchar i,k ,p, zi=0;uchar j=0;while(1 for(k=0;k<

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论