资源简介

基于51单片机的888光立方设计,自己设计的光立方,内附源码和原理图以及proteus仿真,采用STC89C52单片机进行控制,C语言编程

资源截图

代码片段和文件信息

#include 
#include 
#define uchar unsigned char

#define uint unsigned int

uchar display[8][8];

/*A1234I心U*/

uchar code table_cha[8][8]={0x510x510x510x4a0x4a0x4a0x440x440x180x1c0x180x180x180x180x180x3c0x3c0x660x660x300x180xc0x60xf60x3c0x660x600x380x600x600x660x3c0x300x380x3c0x3e0x360x7e0x300x300x3c0x3c0x180x180x180x180x3c0x3c0x660xff0xff0xff0x7e0x3c0x180x180x660x660x660x660x660x660x7e0x3c};

/*the “ideasoft“*/

uchar code table_id[40]={0x810xff0x810x000xff0x810x810x7e0x000xff0x890x890x000xf80x270x270xf80x000x8f0x890x890xf90x000xff0x810x810xff0x000xff0x090x090x090x010x00x010x010xff0x010x010x00};

/*railway*/

uchar code dat[128]={0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x40x250x450x650x850xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x390x350x310x2d0x290x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e0x6f0x8f0x930x730x6f0x8f0x930x730x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e0x250x450x650x850xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x390x350x310x2d0x290x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};

/*railway 2*/

uchar code dat2[28]={0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};

/*railway 3*/

uchar code dat3[24]={0x000x010x020x030x040x050x060x160x260x360x460x560x660x650x640x630x620x610x600x500x400x300x200x10};

/*3p char*/

uchar code table_3p[3][8]={0xff0x890xf50x930x930xf50x890xff0x0e0x1f0x3f0x7e0x7e0x3f0x1f0x0e0x180x3c0x7e0xff0x180x180x180x18};

/*initializtion

//初始化子程序
void sinter()

{

         IE=0x82;

         TCON=0x01;

         TH0=0xf0;

         TL0=0;

         TR0=1;

}


//延时子程序
void delay(uint i)

{                                                                                                     

         while (i--){
 _nop_();
 }
}



// 计算圈数

uchar abs(uchar a)

{

         uchar b;

         b=a/10;

         a=a-b*10;

         if (a>=5)

         b++;

         return b;

}

/*绝对值*/

uchar abss(char a)

{

         if (a<0)

         a=-a;

         return a;

}

/*比较字符串大小,大的移后边*/

void max(uchar *auchar *b)

{

   uchar t;

   if ((*a)>(*b))

   {

                   t=(*a);

                   (*a)=(*b);

                   (*b)=t;   

   }

}

/*计算最大数并返回*/

uchar maxt(uchar auchar buchar c)

{

         if (a
         a=b;

         if (a
         a=c;

         return a;

}
//清屏子程序
void clear(char le)

{

         uchar ij;

         for (j

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     207872  2013-01-31 20:23  实例63 888光立方\取模软件原理视图.doc

     文件      22973  2013-01-09 04:46  实例63 888光立方\光立方仿真\8X8X8.hex

     文件     157054  2012-12-04 05:40  实例63 888光立方\光立方仿真\点立方仿真.DSN

     文件        768  2013-01-29 06:13  实例63 888光立方\光立方仿真\点立方仿真.PWI

     文件      38400  2012-12-20 02:43  实例63 888光立方\光立方元件清单\光立方元器件清单.doc

     文件        193  2013-01-28 06:55  实例63 888光立方\光立方原理图和PCB\Status Report.Txt

     文件     347648  2012-12-02 04:37  实例63 888光立方\光立方原理图和PCB\光立方控制C51--2.SchDoc

     文件      10081  2013-01-28 06:55  实例63 888光立方\光立方原理图和PCB\光立方控制C51--2.xls

     文件    2299820  2012-12-03 21:22  实例63 888光立方\光立方原理图和PCB\光立方pcb.pdf

     文件     408064  2012-12-02 04:38  实例63 888光立方\光立方原理图和PCB\光立方上层--1.SchDoc

     文件       9228  2013-01-28 06:55  实例63 888光立方\光立方原理图和PCB\光立方上层--1.xls

     文件     354816  2012-12-02 04:43  实例63 888光立方\光立方原理图和PCB\光立方上层接口板.PcbDoc

     文件     376320  2013-01-02 17:53  实例63 888光立方\光立方原理图和PCB\光立方下层控制板C51.PCBDOC

     文件      10080  2013-01-28 06:55  实例63 888光立方\光立方原理图和PCB\Project Outputs for Free Documents\光立方控制C51--2.xls

     文件     543427  2013-01-07 23:30  实例63 888光立方\光立方实物照片\1.jpg

     文件      44726  2013-01-10 04:16  实例63 888光立方\光立方实物照片\10.jpg

     文件      34204  2013-01-10 04:17  实例63 888光立方\光立方实物照片\13.jpg

     文件     689286  2013-01-05 21:05  实例63 888光立方\光立方实物照片\2.jpg

     文件     218544  2013-01-09 07:12  实例63 888光立方\光立方实物照片\3.jpg

     文件     304778  2013-01-08 07:12  实例63 888光立方\光立方实物照片\4.jpg

     文件      24734  2013-01-10 04:13  实例63 888光立方\光立方实物照片\5.jpg

     文件      23209  2013-01-10 04:13  实例63 888光立方\光立方实物照片\6.jpg

     文件      36862  2013-01-10 04:15  实例63 888光立方\光立方实物照片\7.jpg

     文件      33938  2013-01-10 04:15  实例63 888光立方\光立方实物照片\9.jpg

     文件     645457  2013-01-11 22:55  实例63 888光立方\光立方实物照片\IMG_0009.JPG

     文件     668108  2013-01-11 22:55  实例63 888光立方\光立方实物照片\IMG_0010.JPG

     文件     394201  2013-01-11 22:55  实例63 888光立方\光立方实物照片\IMG_0011.JPG

     文件   14007554  2013-01-09 07:08  实例63 888光立方\光立方视频\光立方视频演示.mp4

     文件      35035  2013-01-10 04:49  实例63 888光立方\源程序\8X8X8完整程序.c

     目录          0  2013-10-30 22:08  实例63 888光立方\光立方原理图和PCB\Project Outputs for Free Documents

............此处省略10个文件信息

评论

共有 条评论