找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5357|回复: 3
收起左侧

基于单片机的电子贺卡设计主程序

[复制链接]
ID:356516 发表于 2018-6-21 23:41 | 显示全部楼层 |阅读模式
具体要求: QQ图片20180621233639.png
整体电路图: 2.png
主程序:#include<reg52.h>
#define LCD P0
#define uchar unsigned char
unsigned char a,i,j,k;
int b;
int key=0;
sbit EN=P2^0;
sbit RW=P2^1;
sbit RS=P2^2;
sbit CS1=P2^3;
sbit CS2=P2^4;
sbit BUSY=P0^0;
sbit speaker=P1^7;
unsigned char timer0h,timer0l,time;
void delay(unsigned char t)//延迟函数
{
  unsigned char t1;
  unsigned long t2;
  for(t1=0;t1<t;t1++)
   for(t2=0;t2<8000;t2++);
   }
void t0int() interrupt 1                 //spk中断
{
TR0=0;
speaker=!speaker;
TH0=timer0h;
TL0=timer0l;
TR0=1;
}
void song()                                          //音乐播放
{
TH0=timer0h;
TL0=timer0l;
TR0=1;
delay(time);
}
checkbusy()                 //LCD
{ EN=1;
  RW=1;
  RS=0;
  LCD=0XFF;
  if(BUSY);
}
writecode(unsigned char dat)  //写命令
{ checkbusy();
  EN=1;
  RW=0;
  RS=0;
  LCD=dat;
  EN=1;
  EN=0;
}
writedata(unsigned char dat)  //写数据
{ checkbusy();
  EN=1;
  RW=0;
  RS=1;
  LCD=dat;
  EN=1;
  EN=0;
}
//满屏显示图片函数
void LCDDisplay(unsigned char page,unsigned char lineaddress, unsigned char table[8][128])
{
  
   for(i=0;i<8;i++)
    {
      if(lineaddress<0X80)
         {
            CS1=0;
            CS2=0;
          }
       writecode(page+i);
       writecode(lineaddress);
     for(j=0;j<64;j++)
       {   
       writedata(table[j]);
     lineaddress+=1;
     }
  
         if(lineaddress>=0X80)
          {
          CS1=0;
            CS2=1;
            lineaddress=lineaddress-0X40;
}
         writecode(page+i);
             writecode(lineaddress);
                  for(j=64;j<128;j++)
             {
              writedata(table[j]);
        lineaddress+=1;
           }
      if(lineaddress>=0X80)
          {
         lineaddress=lineaddress-0X40;
           }
    }
}
void lcdinti()
{   
    writecode(0X3F);
    writecode(0XC0);
    writecode(0XB8);
    writecode(0X40);
}
void lcddelay(unsigned char c)           //LCD液晶延迟函数
{
   unsigned char a,b;
   for(;c>0;c--)
   for(b=142;b>0;b--)
   for(a=2;a>0;a--);
}
void int0() interrupt 0                        //LCD外部中断1
{
  EX0=0;
  lcddelay(40);
  EX0=1;
  key=!key;
  
}
main()                                                //主函数
{  
unsigned char k,i;
TMOD=1; //CT0定时工作方式1
ET0=1;//IE=0x82 //CPU开中断,CT0开中断
   EA=1;
   EX0=1;
   IT0=1;
   while(1)
   {
     if(key==0)
         {
            LCDDisplay(0Xb8,0X40,&ch2);
          
            i=0;
            while(i<100&&key==0)
        {
               k=sszymmh+7*sszymmh[i+1]-1;
           timer0h=FREQH[k];
           timer0l=FREQL[k];
           time=sszymmh[i+2];
           i=i+3;
               song();
             }     
         }
          else
          {
          LCDDisplay(0Xb8,0X40,&ch1);
           i=0;
            while(i<100&&key==1)
        {
               k=sszymmh1+7*sszymmh1[i+1]-1;
           timer0h=FREQH[k];
           timer0l=FREQL[k];
           time=sszymmh1[i+2];
           i=i+3;
               song();
             }      
          }
         
   }
   
}
附录:
附录
//世上只有妈妈好数据表
code unsigned char sszymmh1[]={
6,2,3, 5,2,1, 3, 2, 2, 5,2,2, 1,3,2, 6,
2,1, 5,2,1, 6,2,4, 3,2,2, 5,2,1, 6,2,1,
5,2,2, 3,2,2, 1,2,1, 6,1,1, 5,2,1, 3,2,
1, 2,2,4, 2,2,3, 3,2,1, 5, 2,2, 5,2, 1,
  6,2,1, 3,2,2, 2,2,2, 1,2,4, 5,2,3, 3,
  2,1, 2,2,1, 1,2,1, 6,1,1, 1,2,1, 5,1,6, 0,0,0
  };
code unsigned char sszymmh[]={
6,2,3,5,2,1,3,2,2,5,2,2,1,3,2,
6,2,1,5,2,1,6,2,4,3,2,2,5,2,1,
6,2,1,5,2,2,3,2,2,1,2,1,6,1,1,
5,2,1,3,2,1,2,2,4,2,2,3,3,2,1,
5,2,2,5,2,1,6,2,1,3,2,2,2,2,2,
1,2,4,5,2,3,3,2,1,2,2,1,1,2,1,
6,1,1,1,2,1,5,1,6,0,0,0
};
图片代码:                        // 音阶频率表 高八位
code unsigned char FREQH[]={
0xF2,0xF3,0xF5,0xF5,0xF6,0xF7,0xF8,0xF9,0xF9,
0xFA,0xFA,0xFB,0xFB,0xFC,0xFC,0xFC,0xFD,0xFD,
0xFD,0xFD,0xFE, 0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,
0xFF, } ;                                                                           //音节频率表 低八位
code unsigned char FREQL[]={
0x42,0xC1,0x17,0xB6,0xD0,0xD1,0xB6,0x21,0xE1,
0x8C,0xD8,0x68,0xE9,0x5B,0x8F,0xEE,0x44,0x6B,
0xB4,0xF4,0x2D,0x47,0x77,0xA2,0xB6,0xDA,0xFA,
0x16, };
char code ch2[8][128]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x80,0x00,0xC0,0x00,0x00,0x00,0x66,0x70,0x40,0x80,0xF0,0xF8,0xFC,0xFE,0xFE,
0xFF,0xFF,0xFF,0x7F,0x7F,0x7F,0x7E,0x7E,0x7C,0x70,0xE0,0xE0,0xEF,0xE7,0xC3,0xC2,
0xB3,0x07,0x01,0x01,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,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,
0x80,0x80,0xC3,0xE3,0x72,0x3B,0x1C,0x0E,0x07,0x07,0x0B,0x01,0x03,0x03,0x03,0x8B,
0xC9,0xC8,0xC0,0xE0,0xE0,0xE0,0xC0,0xC0,0x00,0x06,0x00,0x0C,0xB0,0xD0,0xD0,0xD1,
0x83,0x1F,0xFF,0xFF,0xFF,0xFE,0xFE,0x7C,0x00,0x00,0x30,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x8C,0xE7,0xF0,0xFC,0xFE,0xFE,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFD,0xF0,0xF0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x9F,
0xDF,0x9F,0x1F,0x1F,0xCF,0xC7,0xC3,0xC1,0x80,0xE0,0xE8,0xC6,0x1F,0x7F,0xFF,0x7F,
0xBF,0xFF,0xFE,0xFF,0xCF,0xC3,0x81,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,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x00,0x00,0x00,
};
char code ch1[8][128]={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,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,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,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,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,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,0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0B,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xD0,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xF0,0x00,0x0F,0x90,0x37,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xF0,0x00,0x07,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xF0,0x1F,0xBF,0xFF,0xFF,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xC0,0x1F,0xFF,0xFF,0xFF,0xFF,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0xBF,0xCE,0xDF,0xFF,0xF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xFF,0xFF,0xE0,0x00,0x00,0x0F,0xDF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x00,0x00,0x00,
0xDF,0xF8,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,
0xFF,0xB8,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,
0xBF,0x18,0x00,0x00,0x00,0x00,0x14,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,
0x7D,0x00,0x00,0x00,0x00,0x00,0x02,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x03,
0x7F,0x00,0x00,0x00,0x00,0x00,0x07,0xBF,0xFF,0xFF,0xFF,0xEE,0x00,0x00,0x00,0x03,
0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x2F,0xFF,0xFF,0xFF,0xF8,0x00,0x00,0x00,0x03,
0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0xFF,0xFF,0xFF,0xF8,0x00,0x00,0x00,0x03,
0xBC,0x00,0x00,0x00,0x00,0x00,0x00,0x3D,0xFF,0xFF,0xFF,0x78,0x00,0x00,0x00,0x03,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x03,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x03,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xCF,0xFF,0xE3,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0x60,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x97,0xE0,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,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,0x0F,0xFC,0x0F,0xFE,0x1F,0xF8,0x78,0x7C,0x3F,0xF8,0x00,0x00
回复

使用道具 举报

ID:561687 发表于 2019-6-13 12:26 | 显示全部楼层
请问楼主这个是用什么软件写的程序啊?
回复

使用道具 举报

ID:833124 发表于 2020-10-22 13:19 | 显示全部楼层
tth51 发表于 2019-6-13 12:26
请问楼主这个是用什么软件写的程序啊?

用的是keil
回复

使用道具 举报

ID:1057995 发表于 2022-12-17 08:48 | 显示全部楼层
用keil4有很多错误哦
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表