led点阵显示电子钟的程序

时间:2014-05-17 13:00:29
【文件属性】:

文件名称:led点阵显示电子钟的程序

文件大小:2KB

文件格式:TXT

更新时间:2014-05-17 13:00:29

单片机课程设计

#include #include #define num XBYTE[0Xcfa8] #define P8255 XBYTE[0xcfa3] #define PA XBYTE[0xcfa0] #define uint unsigned int #define uchar unsigned char uchar s1=0,s2=0,g1=0,g2=0; uchar sec=0,min=0,counter=0; uchar table[][8]={ {0x00,0x00,0x3C,0x42,0x42,0x42,0x3C,0x00},/*"0",0*/ {0x00,0x00,0x10,0x70,0x10,0x10,0x7C,0x00},/*"1",1*/ {0x00,0x00,0x3E,0x42,0x04,0x3A,0x7E,0x00},/*"2",2*/ {0x00,0x00,0x3E,0x58,0x06,0x42,0x3C,0x00},/*"3",3*/ {0x00,0x04,0x1C,0x24,0x44,0x3C,0x0C,0x00},/*"4",4*/ {0x00,0x00,0x7E,0x40,0x7C,0x42,0x3C,0x00},/*"5",5*/ {0x00,0x00,0x3C,0x40,0x7C,0x42,0x3C,0x00},/*"6",6*/ {0x00,0x00,0x7E,0x44,0x18,0x10,0x10,0x00},/*"7",7*/ {0x00,0x00,0x7E,0x42,0x3C,0x42,0x3C,0x00},/*"8",8*/ {0x00,0x00,0x3C,0x42,0x3E,0x06,0x3C,0x00},/*"9",9*/


网友评论

  • 缺少电路图,光有程序,理解起来比较困难。