资源简介

课程设计制作的建议电子琴,MUC用的是c8051f120,利用LED点阵显示音符频谱。压缩包里包括keil工程文件以及硬件电路图。

资源截图

代码片段和文件信息

//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------

#include                  // SFR declarations

//-----------------------------------------------------------------------------
// Global CONSTANTS
//----------------------------------------------------------------------------
unsigned char time;
//-----------------------------------------------------------------------------
//sbit
//-----------------------------------------------------------------------------
sbit beep=P0^0;
//-----------------------------------------------------------------------------
//LED table
//-----------------------------------------------------------------------------
//H
//-----------------------------------------------------------------------------
unsigned char code LED_begin_H_P1[]=
{0x000xA00xA00xE0
0xA00xA00x000x00
};
unsigned char code LED_begin_H_P2[]=
{0x7f0xbf0xdf0xef
0xf70xfb0xfd0xfe
};
unsigned char code LED_begin_H_P3[]=
{0x000x000x000x00
0x000x000x000x00
};
//-----------------------------------------------------------------------------
//HE
//-----------------------------------------------------------------------------
unsigned char code LED_begin_HE_P1[]=
{0x000xAC0xA80xEC
0xA80xAC0x000x00
};
unsigned char code LED_begin_HE_P2[]=
{0x7f0xbf0xdf0xef
0xf70xfb0xfd0xfe
};
unsigned char code LED_begin_HE_P3[]=
{0x000x000x000x00
0x000x000x000x00
};
//-----------------------------------------------------------------------------
//HEL
//-----------------------------------------------------------------------------
unsigned char code LED_begin_HEL_P1[]=
{0x000xAD0xA90xED
0xA90xAD0x000x00
};
unsigned char code LED_begin_HEL_P2[]=
{0x7f0xbf0xdf0xef
0xf70xfb0xfd0xfe
};
unsigned char code LED_begin_HEL_P3[]=
{0x000x000x000x00
0x000x800x000x00
};
//-----------------------------------------------------------------------------
//HEL
//-----------------------------------------------------------------------------
unsigned char code LED_begin_HELL_P1[]=
{0x000xAD0xA90xED
0xA90xAD0x000x00
};
unsigned char code LED_begin_HELL_P2[]=
{0x7f0xbf0xdf0xef
0xf70xfb0xfd0xfe
};
unsigned char code LED_begin_HELL_P3[]=
{0x000x200x200x20
0x200xb00x000x00
};
//-----------------------------------------------------------------------------
//HELLO
//-----------------------------------------------------------------------------
unsigned char code LED_begin_HELLO_P1[]=
{0x000xad0xa90xed
0xa90xad0x000x00
};
unsigned char code LED_begin_HELLO_P2[]=
{0x7f0xbf0xdf0xef
0xf70xfb0xfd0xfe
};
unsigned char code LED_begin_HELLO_P3[]=
{0x000x270x250x25
0x250xb70x000x00
};

//-----------------------------------------------------------------------------
//timer TH0 TLO
//
//--

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-19 22:07  代码\
     文件        6376  2012-12-10 10:20  代码\STARTUP.A51
     文件       15024  2014-11-25 12:43  代码\STARTUP.LST
     文件         984  2014-11-25 12:43  代码\STARTUP.OBJ
     文件       37448  2014-11-26 15:23  代码\project
     文件       57246  2014-11-26 15:23  代码\project.MAP
     文件       21632  2014-11-26 15:23  代码\project.SBR
     文件       12796  2014-11-26 15:23  代码\project.hex
     文件          48  2014-11-26 15:23  代码\project.lnp
     文件         166  2015-07-19 22:07  代码\project.plg
     文件      134741  2015-07-19 22:07  代码\project.uvgui.孙裕鑫
     文件      134741  2015-07-19 22:04  代码\project.uvgui_孙裕鑫.bak
     文件        5878  2015-07-19 22:07  代码\project.uvopt
     文件       13627  2014-11-25 16:17  代码\project.uvproj
     文件        5878  2015-07-19 22:04  代码\project_uvopt.bak
     文件       13623  2014-11-25 12:46  代码\project_uvproj.bak
     文件       27048  2014-11-26 15:23  代码\source.LST
     文件       47254  2014-11-26 15:23  代码\source.OBJ
     文件       18661  2014-11-26 15:23  代码\source.c
     目录           0  2015-01-17 19:40  电路图\
     文件      110074  2014-12-02 23:01  电路图\89c52newpcb.pdf
     文件      247168  2014-12-02 23:01  电路图\89c52sch.pdf
     文件      557482  2014-12-02 23:01  电路图\C8051f.pdf
     文件      225787  2014-12-02 23:01  电路图\LED彩灯点阵.pdf
     文件      157227  2014-12-02 23:01  电路图\lm386.pdf
     文件       40857  2014-12-02 23:01  电路图\lm386new.pdf
     文件      100798  2014-12-02 23:01  电路图\键盘.pdf

评论

共有 条评论