1、逐行扫描,24M晶振脉冲,5V直流供电。16*64点阵滚动显示,滚动速度可调,从最快速到最慢速设置30级变速,以实现不同场合下的使用。显示内容可切换,可以将需要显示的不同内容分段写入单片机,然后可以自动定时切换内容,或者设置为手动切换显示内容。可以脱机工作,方便使用,不用总是连接电脑,板子上留有DS18B20数字温度传感器和1302时钟芯片的板载接口,可以实现时间、万年历、温度的实时滚动显示。留有备份电池接口实现掉电信息不丢失、时间不乱。设置八个轻触按钮,方便操作,预留有功能按钮可通过编程实现不同的操作#include #define uchar unsigned char#define ui
2、nt unsigned int/#define SPEED 4 /移动数度快慢值uchar col,disrow;uint word;uchar SPEED=2;uchar xuan=0;uchar code HZ5960;uchar BUFF10; /buff为要显示的数字*2+2void loadoneline(void);void sendoneline(void);void delay(void);void key(void);/*根据列指 , 字 合 为单字 的子程 */uchar two_onebyte(uchar h1,uchar h2)uchar temp,tempcol;if
3、(col(8-tempcol);temp=255-temp;return temp;/* 数*/void main(void)uchar i;col=0;word=0;while(1)while(col=832)word=0;/ 移动50个 字后,/* 载 点阵数据*/void loadoneline(void)uchar s;for(s=0;s=0+inc;s-) /s*2为要显示的数字+1SBUF=two_onebyte(BUFFs,BUFFs+1);while(!TI);TI=0;void delay(void)uint i=1000;while(i-);void key(void)P2
4、_0=1;if(P2_0=0)delay();if(P2_0=0)while(!P2_0);if(SPEED1)SPEED-;P2_1=1;if(P2_1=0)delay();if(P2_1=0)while(!P2_1);if(SPEED0)xuan-;else xuan=3;col=0;word=0;/* 字点阵*/uchar code HZ5960=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x
5、00,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,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,0x
6、00,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40,0x7F,0xFC,0x04,0x80,0x3F,0xF8, / 0x24,0x88,0x24,0xE8,0x28,0x08,0x3F,0xF8
7、,0x20,0x08,0x3F,0xF8,0x00,0x20,0xFF,0xFE,0x08,0x20,0x04,0x20,0x04,0xA0,0x00,0x40,0x12,0x20,0x12,0x20,0xFF,0xA0,0x12,0x24, / 0x20,0x7E,0x3F,0x84,0x41,0x44,0xBD,0x44,0x25,0x48,0x25,0x28,0x25,0x28,0x25,0x10,0x3D,0x28,0x21,0x28,0x05,0x46,0x02,0x84,0x10,0x40,0x10,0x40,0x22,0x44,0x7F,0x7E, / 的0x42,0x84,0x
8、43,0x04,0x42,0x04,0x42,0x84,0x7E,0x64,0x42,0x24,0x42,0x04,0x42,0x04,0x42,0x04,0x7E,0x04,0x42,0x28,0x00,0x10,0x00,0x08,0x47,0xFC,0x30,0x40,0x10,0x40, / currency10x04,0x44,0x03,0x4C,0xF1,0x50,0x10,0x44,0x1F,0xFE,0x10,0x40,0x10,0x40,0x10,0x40,0x14,0x40,0x18,0x40,0x10,0x40,0x00,0x40,0x00,0x30,0x3F,0xC0,
9、0x01,0x00,0x01,0x04, / 0xFF,0xFE,0x05,0x40,0x09,0x38,0x31,0x10,0x05,0x04,0xFF,0xFE,0x04,0x20,0x08,0x20,0x04,0x40,0x03,0x80,0x0C,0x60,0x30,0x10,0x02,0x00,0x02,0x00,0x02,0x88,0x3F,0xD8, / “0x02,0x20,0x02,0x44,0xFF,0xFE,0x01,0x00,0x02,0x00,0x04,0x10,0x0C,0x30,0x14,0xC0,0x27,0x00,0x44,0x04,0x84,0x04,0x0
10、3,0xFC,0x08,0x04,0x0B,0xFE,0x48,0x20,0x48,0x24, / 0x49,0xFE,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x11,0x34,0x11,0x28,0x20,0x20,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, / 、0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x1E,0x00,0x0F,0
11、x00,0x07,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x01,0x08,0x7F,0xFC,0x08,0x20, / 0x04,0x40,0x02,0x84,0xFF,0xFE,0x01,0x00,0x01,0x08,0x7F,0xFC,0x01,0x00,0x09,0x20,0x19,0x18,0x21,0x0C,0x45,0x04,0x02,0x00,0x00,0x78,0x3F,0x80,0x11,0x10,0x09,0x20, / 0x7F,0xFE,0x42,0x02,0x82,0x04,0x7F,0xF8,0x04,0x00,0x07,0xF0,
12、0x0A,0x20,0x09,0x40,0x10,0x80,0x11,0x60,0x22,0x1C,0x0C,0x08,0x10,0x40,0x10,0x40,0x22,0x44,0x7F,0x7E, / 的0x42,0x84,0x43,0x04,0x42,0x04,0x42,0x84,0x7E,0x64,0x42,0x24,0x42,0x04,0x42,0x04,0x42,0x04,0x7E,0x04,0x42,0x28,0x00,0x10,0x00,0x04,0x7F,0xFE,0x40,0x04,0x40,0x24, / 同0x5F,0xF4,0x40,0x04,0x40,0x24,0x
13、4F,0xF4,0x48,0x24,0x48,0x24,0x48,0x24,0x48,0x24,0x4F,0xE4,0x48,0x24,0x40,0x14,0x40,0x08,0x22,0x08,0x11,0x08,0x11,0x10,0x00,0x20, / fi0x7F,0xFE,0x40,0x02,0x80,0x04,0x1F,0xE0,0x00,0x40,0x01,0x84,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x05,0x00,0x02,0x00,0x10,0x00,0x12,0x04,0x11,0x7E,0x24,0x84, / fl0x
14、24,0x04,0x64,0x04,0xA4,0x04,0x24,0x04,0x24,0x04,0x24,0x04,0x24,0x04,0x24,0x04,0x24,0x04,0x24,0x04,0x24,0x14,0x24,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, / 0x00,0x00,0x00,0x00,0x06,0x00,0x0F,0x00,0x0F,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x0F,0x00,0x0F,0x00,0x06,0x00,0x00,0x00,0x01,0x00,0x01,0x00
15、,0x01,0x00,0x01,0x00, / 0x01,0x04,0xFF,0xFE,0x01,0x00,0x02,0x80,0x02,0x80,0x02,0x40,0x04,0x40,0x04,0x20,0x08,0x10,0x10,0x0E,0x60,0x04,0x00,0x00,0x02,0x00,0x01,0x00,0x7F,0xFE,0x40,0x02, / 0x80,0x04,0x3F,0xF8,0x04,0x00,0x1A,0x10,0x63,0x30,0x05,0x40,0x19,0x80,0x63,0x40,0x05,0x30,0x19,0x0E,0x65,0x04,0x0
16、2,0x00,0x00,0x80,0x08,0x80,0x7D,0xF8,0x4A,0x10, / 0x4C,0x24,0x4B,0xFE,0x4A,0x44,0x7A,0x44,0x4A,0x44,0x4B,0xFC,0x4A,0x64,0x48,0xA0,0x78,0xA2,0x49,0x22,0x02,0x1E,0x04,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00, / 上0x01,0x10,0x01,0xF8,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0
17、x00,0x01,0x04,0xFF,0xFE,0x00,0x00,0x10,0x00,0x11,0xFC,0x10,0x04,0x10,0x08, / 0xFC,0x10,0x24,0x20,0x24,0x24,0x27,0xFE,0x24,0x20,0x44,0x20,0x28,0x20,0x10,0x20,0x28,0x20,0x44,0x20,0x84,0xA0,0x00,0x40,0x00,0x00,0x01,0x80,0x03,0xC0,0x03,0xC0, / 0x03,0xC0,0x03,0xC0,0x03,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,
18、0x00,0x00,0x01,0x80,0x03,0xC0,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0xC0,0x03,0xC0, / 0x03,0xC0,0x03,0xC0,0x03,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,0x00,0x00,0x01,0x80,0x03,0xC0,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x
19、00,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,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,0x
20、00,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,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,0x
21、00,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,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,0x
22、00,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,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,0x
23、00,/*/0x08, 0x04, 0x08, 0x7E, 0x08, 0x44, 0x09, 0x44, 0xFF, 0xC4, 0x08, 0x7C, 0x08, 0x44, 0x0A, 0x44, 0x3F, 0x44, 0x22, 0x7C, 0x22, 0x44, 0x22, 0x44, 0x22, 0x44, 0x3E, 0x44, 0x22, 0x94, 0x01, 0x08,/*/0x10, 0x00, 0x13, 0xF8, 0x10, 0x10, 0x10, 0x20, 0xFC, 0x40, 0x10, 0x84, 0x33, 0xFE, 0x38, 0xA4, 0x54
24、, 0xA4, 0x50, 0xA4, 0x91, 0x24, 0x11, 0x44, 0x12, 0x44, 0x14, 0x84, 0x11, 0x28, 0x10, 0x10,/* */0x00, 0x00, 0x01, 0x80, 0x03, 0xC0, 0x03, 0xC0, 0x03, 0xC0, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0
25、x00, 0x00, 0x00, 0x00, 0x01, 0x8E, 0x02, 0x5B, 0x24, 0x31, 0x64, 0x11, 0xFF, 0xFF, 0x64, 0x11, 0x22, 0x0A, 0x01, 0x04, 0x00, 0x8A, 0x00, 0x51, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x48, 0x00, 0x84, 0x2A, 0x04, 0x55, 0xFF, 0xFE, 0x08, 0x55, 0x10, 0x2A, 0
26、x20, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0xC0, 0x01, 0x40, 0x02, 0x60, 0x02, 0x60, 0x04, 0x30, 0x04, 0x30, 0x07, 0xF0, 0x0C, 0x38, 0x08, 0x18, 0x08, 0x18, 0x1C, 0x3C, 0x00, 0x00, 0x00, 0x00,/*B*/0x00, 0x00, 0x00, 0x00, 0x1F, 0xE
27、0, 0x0C, 0x38, 0x0C, 0x18, 0x0C, 0x18, 0x0C, 0x30, 0x0F, 0xF0, 0x0C, 0x18, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x38, 0x1F, 0xE0, 0x00, 0x00, 0x00, 0x00,/*C*/0x00, 0x00, 0x00, 0x00, 0x03, 0xE0, 0x06, 0x38, 0x0C, 0x18, 0x18, 0x00, 0x18, 0x00, 0x18, 0x00, 0x18, 0x00, 0x18, 0x00, 0x18, 0x00, 0x0C,
28、 0x08, 0x06, 0x30, 0x03, 0xE0, 0x00, 0x00, 0x00, 0x00,/*D*/0x00, 0x00, 0x00, 0x00, 0x1F, 0xC0, 0x0C, 0x70, 0x0C, 0x18, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x18, 0x0C, 0x70, 0x1F, 0xC0, 0x00, 0x00, 0x00, 0x00,/*E*/0x00, 0x00, 0x00, 0x00, 0x1F, 0xF8, 0x0C, 0x1
29、8, 0x0C, 0x08, 0x0C, 0x00, 0x0C, 0x20, 0x0F, 0xE0, 0x0C, 0x20, 0x0C, 0x00, 0x0C, 0x00, 0x0C, 0x08, 0x0C, 0x18, 0x1F, 0xF8, 0x00, 0x00, 0x00, 0x00,/*F*/0x00, 0x00, 0x00, 0x00, 0x1F, 0xF8, 0x0C, 0x18, 0x0C, 0x08, 0x0C, 0x00, 0x0C, 0x20, 0x0F, 0xE0, 0x0C, 0x20, 0x0C, 0x00, 0x0C, 0x00, 0x0C, 0x00, 0x0C,
30、 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00,/*#*/0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x02, 0x20, 0x0F, 0xF8, 0x0F, 0xF8, 0x02, 0x20, 0x02, 0x20, 0x02, 0x20, 0x0F, 0xF8, 0x0F, 0xF8, 0x02, 0x20, 0x02, 0x20, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00,/*$*/0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x03, 0xF0, 0x0C, 0x9
31、0, 0x0C, 0x80, 0x06, 0x80, 0x01, 0xC0, 0x00, 0xB0, 0x00, 0x98, 0x18, 0x98, 0x0C, 0xB0, 0x03, 0xC0, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00,/*%*/0x00, 0x00, 0x00, 0x00, 0x0C, 0x04, 0x12, 0x08, 0x12, 0x10, 0x0C, 0x20, 0x00, 0x40, 0x00, 0x80, 0x01, 0x00, 0x02, 0x18, 0x04, 0x24, 0x08, 0x24, 0x10, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,/*