#include #define uchar unsigned char #define uint unsigned int
sbit BEEP=P2^6;
void Music(uchar number);void delay10us(uchar time);void delay50us(uchar time);
uchar code SOUNDLONG[]= //控制音调
{
18,6,24,24,24,48,18,6,24,24,24,48,18,6,24,24,24,24,24, 18,6,24,24,24,48,0
};
uchar code SOUNDTONE[]=
//控制音色 {
212,212,190,212,159,169, 212,212,190,212,142,159,212,212,106,126,159,169,190, 119,119,126,159,142,159,0
//生日快乐end
};void Play_Music(){
uint k,n;
uint SoundLong,SoundTone;
uint i,j,m;
do {
if(i>=25)i=0;
SoundLong=SOUNDLONG[i];
SoundTone=SOUNDTONE[i];
i++;
for(n=0;n{
for(k=0;k<12;k++)
{
BEEP=0;
for(m=0;m}
BEEP=1;
for(m=0;m}
}
delay50us(6);
} while((SOUNDLONG[i]!=0)||(SOUNDTONE[j]!=0));//延时程序
void delay10us(uchar time){
uchar a,c;
for(a=0;afor(c=0;c<120;c++);} void delay50us(uchar time){
uchar a,b;
for(a=0;afor(b=0;b<6;b++);} void main(){
while(1)
{
Play_Music();//生日快乐
delay10us(250);
} }
//----------------------//<<12*12点阵+音乐产生>> // MCU:89C51 晶振:12M //编写日期:2010。12。25 //编写人:李春起 #include #define uchar unsigned char #define uint unsigned int uint a=0,a1=0,a2=0;uint miusfla,miust,mius=64536;uint disfla1,sta=0;char flag=0,mdflag=0;sbit k1=P3^2;sbit k2=P3^3;sbit YY=P3^1;
uchar code tabfas[]={ //==============笑脸=================================== //P0口
0xFF,0xFF,0xFF,0xFF,0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F, 0xFF,0xFF,0xFF,0xFF,0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F, //P1口
0x8E,0x4D,0xAB,0x57,0x5F,0x9F,0x9F,0x5F,0x5F,0xAF,0x4F,0x8F, 0x8E,0x4D,0xAB,0x97,0x9F,0x9F,0x9F,0x9F,0x9F,0xAF,0x4F,0x8F, //P2口
0x87,0x88,0x50,0x20,0xA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2F,0x2F,0x2F,0xCF, //心形 //P2口
0x08,0x04,0xFE,0x05,0x08,0x43,0x3E,0x02,0x3E,0x23,0x30,0x00, //祝 0x00,0x09,0x0A,0x7F,0x2A,0x08,0x0F,0x09,0x7F,0x09,0x0F,0x00, //钟 0x00,0x02,0x01,0x7F,0x02,0x22,0x22,0x3F,0x22,0x22,0x02,0x00,//仕 0xc0,0x3f,0x88,0x6a,0x2a,0xff,0x2a,0xff,0x2a,0x6a,0xde,0x88,//廉 0x00,0x21,0x20,0x20,0x24,0x24,0x3F,0x24,0x24,0x20,0x20,0x00, //生 0x00,0x00,0x00,0x3F,0x22,0x22,0x22,0x22,0x3F,0x00,0x00,0x00, //日 //0x00,0x2A,0x5A,0xFF,0x1A,0x2A,0x40,0x3F,0x02,0x7E,0x02,0x00,//新 //0x08,0x09,0x0F,0x09,0x09,0x09,0xFF,0x09,0x09,0x09,0x08,0x00,//看 0x01,0x06,0x7F,0x22,0x14,0x0C,0x07,0x0C,0x14,0x27,0x24,0x00, //快
0x00,0x23,0x12,0x0E,0x22,0x7F,0x06,0x0A,0x13,0x22,0x00,0x00, //乐 0x03,0x04,0x08,0x10,0x20,0x60,0x20,0x10,0x08,0x04,0x02,0x01, //心形 0x00,0x00,0x11,0x11,0x12,0x52,0xFB,0x1A,0x16,0x11,0x11,0x00, //李 0x00,0x12,0x0A,0xFE,0xAB,0xAA,0xAA,0xFE,0x0A,0x12,0x00,0x00, //春 0x40,0x21,0x1D,0x09,0x1F,0x25,0x41,0x5D,0x54,0x53,0x58,0x00,//起 //0x84,0x45,0x35,0x3D,0x55,0x95,0x84,0xAF,0x9D,0x91,0xAF,0x80, //题 0x03,0x04,0x08,0x10,0x20,0x60,0x20,0x10,0x08,0x04,0x02,0x01, //心形 };//----------------音符----------------------uint code miusdata[]={ //祝你生日快乐
64260,64260,64399,64260,64579,64524,64260,64260, 64399,64260,64684,64580,64260,64260,64898,64777, 64580,64524,64399,64819,64819,64777,64580,64777, 64684,0, 64260,64260,64399,64260,64579,64524,64260,64260, 64399,64260,64684,64580,64260,64260,64898,64777, 64580,64524,64399,64819,64819,64777,64580,64684, 64580,0,64580,64580,64684,64580,64819,64777,64580,64580, 64684,64580,64898,64819,64580,64580,65058,64968, 64819,64777,64684,65000,65000,64960,64819,64967, 64898,0, 64580,64580,64684,64580,64819,64777,64580,64580, 64684,64580,64898,64819,64580,64580,65058,64968, 64819,64777,64684,65000,65000,64960,64819,64898, 64819,0 };//---------------节拍-----------------------uchar code miustime[]={ 40,40,80,80,80,160,40,40,80,80,80,160,40,40, 80,80,80,80,80,40,40,80,80,80,160,80, 40,40,80,80,80,160,40,40,80,80,80,160,40,40, 80,80,80,80,80,40,40,80,80,80,160,80, 40,40,80,80,80,160,40,40,80,80,80,160,40,40, 70,75,80,80,80,40,40,80,80,80,160,80, 40,40,80,80,80,160,40,40,80,80,80,160,40,40, 70,75,80,80,80,40,40,80,80,80,160,80, };void delay500();
//==========按键========================================== void kk(){
if(!k1){delay500();if(++flag>1)flag=0;else {a=72;a2=0;}sta=1;}
if(!k2){delay500();if(++mdflag>1)mdflag=0;sta=1;} } //=========延时=========================================== void delay(uint m){
uint i,j;
for(i=0;i{
for(j=0;j<300;j++)
{kk();if(sta){sta=0;goto abc;}}
}
abc:;} //------按键消拉动用----------------void delay500(){
uint i1;
P0=0XFF;
P1=0X0F;
P2=0X00;
for(i1=0;i1<32000;i1++);} //=========定时器T0用于频率产生和显示====================== void time0()interrupt 1 {
P0=0XFF;
P1=0X0F;
P2=0X00;
TH0=mius>>8;
TL0=mius&0xff;
YY=~YY;
switch(flag)
{
case 0:{ //笑脸
P0=tabfas[a];
P1=tabfas[a+24];
P2=tabfas[a+48];
if(++disfla1<700){if(++a>11)a=0;}
if(disfla1>=700){if(++a>23)a=11;}
if(disfla1>800){a=0;disfla1=0;}
}break;case 1:{ //汉字
P0=tabfas[a];
P1=tabfas[a+192];
P2=tabfas[a+348];
if(++disfla1<500){if(++a>(a2+83))a=(a2+72);}
else{if(++a>(a2+83))a=(a2+72);}
if(disfla1>1000){a2+=12;disfla1=0;}
if(a2>144){a2=0;}
}break;default:break;
} } //========定时器T1只用于显示================================ void time1()interrupt 3 {
P0=0XFF;
P1=0X0F;
P2=0X00;
TH1=0xf8;
TL1=0x30;
switch(flag)
{
case 0:{ //笑脸
P0=tabfas[a];
P1=tabfas[a+24];
P2=tabfas[a+48];
if(++disfla1<700){if(++a>11)a=0;}
if(disfla1>=700){if(++a>23)a=11;}
if(disfla1>800){a=0;disfla1=0;}
}break;case 1:{ //汉字
P0=tabfas[a];
P1=tabfas[a+192];
P2=tabfas[a+348];
if(++disfla1<500){if(++a>(a2+83))a=(a2+72);}
else{if(++a>(a2+83))a=(a2+72);}
if(disfla1>1000){a2+=12;disfla1=0;}
if(a2>144){a2=0;}
}break;default:break;
} } //----------------主程序----// void main(){
P0=0XFF;
P1=0X0F;
P2=0X00;
P3=0XFD;
TMOD=0X11;
TH0=mius>>8;
TL0=mius&0xff;
TH1=0xf8;
TL1=0x30;
TR0=1;
ET0=1;
TR1=0;
ET1=1;
EA=1;
while(1)
{
switch(mdflag)
{
case 0:{//音乐暂停
TR0=0;TR1=1;kk();sta=0;
}break;
case 1:{ //音乐继续
TR0=0;
delay(1);
TR0=1;
mius=miusdata[a1];
if(mius==0){TR0=0;TR1=1;}
else {TR1=0;TR0=1;}
delay(miustime[a1]);
if(++a1>=104)a1=0;
}break;
default:break;
}
} }
#include #define uchar unsigned char #define uint unsigned int sbit BEEP=P1^1;//生日快乐歌的音符频率表,不同频率由不同的延时来决定 uchar code SONG_TONE[]={212,212,190,212,159,169,212,212,190,212,142,159,212,212,106,126,159,169,190,119,119,126,159,142,159,0};//生日快乐歌节拍表,节拍决定每个音符的演奏长短
uchar code SONG_LONG[]={9,3,12,12,12,24,9,3,12,12,12,24,9,3,12,12,12,12,12,9,3,12,12,12,24,0};//延时
void DelayMS(uint x){
uchar t;while(x--)
for(t=0;t<120;t++);} //播放函数 void PlayMusic(){ uint i=0,j,k;while(SONG_LONG[i]!=0||SONG_TONE[i]!=0){
for(j=0;j{
BEEP=~BEEP;//SONG_TONE延时表决定了每个音符的频率
for(k=0;kPlayMusic();//播放生日快乐
DelayMS(300);//播放完后暂停一段时间
} }
生日快乐歌
1. 少进学堂为家贫,和人相比不如人。十来之岁当保母,十八九岁出闺门。2. 人生一世草一春,万般由命不由人。几多先甜后又苦,几多先苦后成人。3. 或有或无心莫怨,家富家贫是自然。不求全玉重重贵,但愿儿孙个个贤。4. 人在世间要坦然,也莫苦累也莫闲。总要开心过日子,这样才能延寿年。5. 家中没有读书子,怎求富贵上青天。不可作恶要行善,勤俭自然有福源。6. 家庭贫富莫忧愁,开心乐意度春秋。记得少年骑竹马,红粉佳人白了头。7. 人生易老天难老,时光一去不回头。光阴似箭催人老,不觉到了六十秋。8. 养儿育女多辛苦,治家受苦又艰辛。教育儿女修心好,莫要横蛮乱害人。9. 世上无人三代富,亦无三代做穷人。为人在世忠和孝,后代必然家自兴。10.为人做事要公正,短斤少两莫偏心。若是经商做生意,公平和气顾客临。11.父不忧心因子孝,夫无烦恼是妻贤。多言多语皆因酒,义断亲疏只为钱。12.父母深恩要挂念,上下和睦外传闻。为人不想报恩本,养儿育女为何因。13.万事不由人计较,命中注定没十分。世上有钱高一等,首看衣冠与衫裙。14.奉劝女人敬大夫,相亲相爱创前途。千日有夫千日好,一日无夫好单孤。15.几句粗言奉劝君,处世还须俭与勤。居家父母要孝顺,兄弟叔侄要真心。16.出外交朋要谨慎,六亲频眷莫欺人。父母身中有病痛,热茶滚水学当家。17.时常走在床边问,求神作福保安身。行孝之人天赐福,行善之人天赐金。18.奉劝世人学当家,时常节俭莫奢华。开门便讲七件事,柴米油盐酱醋茶。19.一生之计在于勤,少年便要记得清。年月日时皆载定,可知生计要辛勤。20.要学成人不自在,贪图自在不成人。受得艰难和辛苦,方为世上好良民。21.世间好语书不尽,天下良谋读与耕。戒赌戒嫖戒好饮,胜过闲游过日辰。22.早晚读书要挂念,晨昏火烛要小心。出入行为要谨慎,自然获福保安身。
23.银钱谷米要俭省,当用一角省五分。若是全部都用尽,后代儿孙受苦辛。24.粗茶淡饭自养身,保暖安居福自寻。一样生人心几样,一般茶饭几般人。25.同时天光同时夜,有人富贵有人贪。君子贪时有礼义,小人乍富乱欺人。26.大家忍耐同和好,善良忍让寿高龄。马行无力皆因瘦,人不风流是真君。27.你害别人由自可,别人害你又如何。嫩草怕霜霜怕日,恶人自有恶人磨。28.闲中检点平生事,静里思量日所为。一心善良行正道,自然福禄不会亏。29.古云将相本无种,男女自强万事成。凡人莫持风火性,恐防毁坏已前程。30.有等花街红粉女,不知好歹去玩淫。风天狂世乱人性,老少从来就不分。31.打玩作爱图高兴,披起人皮是畜生。心直善良定中富,投机懒惰将来贫。32.命里有时终须无,命里无时莫强争。有时常想无时过,莫待无时动偷心。33.凡有百艺好随身,切莫走进赌博门。家有珍珠和宝贝,想求再富反为贫。34.衣衫破烂亲朋笑,田地败完受苦辛。不信你看乡党内,有人衰败有人贫。35.败子用钱如土粪,好仔积钱似黄金。妙药难医冤孽病,横财不富命穷人。36.亏心折尽平生福,行凶定遭一世贫。谨防善恶遭报应,远在儿孙近在身。37.为人心诚办事忠,普天之正礼仪同。奸狡会走断头路,欺诈之人天不容。38.池塘积水须防旱,田地深耕易养家。教子教孙兼教艺,栽桑栽柳可栽花。39.闲是闲非莫要管,渴饮清泉闷饮茶。紧跟社会形势走,白浪红尘莫探它。40.买卖全凭算计深,斗称公平要本心。童叟无欺安本份,自然福份会来临。41.党和政府好关心,好比自家父母亲。人满六十得补助,老平欢快又康宁。42.学的领导好策略,人人过上好生活。老人不用辛苦累,休闲解闷唱山歌。43.出门三步爱唱歌,你莫讲我嘴巴多。从小吃了糖泡饭,嘴巴甜甜没奈何。44.和谐社会好生活,哪个出门不唱歌。酒肉饭饱还讲闷,唱歌解闷几宽乐。45.回想那时旧社会,没有吃来没有穿。如今改革开放好,有吃有用笑开颜。
46.想起旧时那时艰,家苦不得进校园。一家人口八九个,为了生活忙过天。47.过去苦情论不完,如今老了要心宽。今天正是好日子,邀约歌友下融安。48.今天六十顺寿日,姊妹歌朋庆贺时。大齐陪伴融安耍,边完边耍把歌提。49.不知不觉六十春,人生如梦度光阴。青春易老容易过,老来还望靠儿孙。50.有子之人贫不久,无了之人富不长。有子有孙来防老,无子无孙守空房。51.人逢喜事精神爽,子孝孙紧心也宽。家庭和顺生活好,人到老年也不难。52.六十甲子六十秋,红粉家人白了头。开心养体过日子,人到老年万事休。53.山中也有千年树,世上几多百岁人。现在生活那么好,人人总望度百春。54.讲起为人在世间,平生有道几安然。总要开心过日子,也可延长好寿年。55.你今讲到这一言,我今听了好新鲜。开心得过好日子,还可延长好寿年。56.今天出门好新鲜,哥朋姊妹歌聊天。日子过得好愉快,太阳慢慢下西边。57.哥朋姐妹到融安,美山美水尽奇观。好景一时观不尽,天缘不份再来完。58.今天六十好寿辰,大齐陪伴好开心。祝你年年添福寿,寿比南山不老春。59.生日快乐真快乐,快乐才是唱山歌。做个碟子作记念,子子孙孙永留着。60.哥把一言说妹知,语言粗糙水平低。编歌不好妹莫怪,批评指正再学习。
축하=추가(当ㅎ+元音的时候,ㅎ脱离不发音)
생일 축하 합니다祝你生日快乐
생일 축하 합니다祝你生日快乐
지구에서 우주에서在地球 在宇宙
제일 사랑합니다 ~我最爱你
꽃보다 더 곱게比花还香
별보다 더 밝게比星星还亮
사자보다 용감하게比狮子还勇敢
해피버스데이 투유(happy birthday to you)happy birthday to you
생일축하합니다祝你生日快乐
생일축하합니다祝你生日快乐
꽃다운 내친구야喜欢花的我的朋友呀
굴곡있게 살아요生活得很曲折
생일축하합니다祝你生日快乐
생일축하합니다祝你生日快乐
지구에서 우주에서在地球 在宇宙
제일 사랑합니다我最爱你
꽃보다 더 곱게比花还香
별보다 더 밝게比星星还亮
사자보다 용감하게比狮子还勇敢
해피벌스데이 투유happy birthday to you
생일축하합니다祝你生日快乐
생일축하합니다祝你生日快乐
칼같은 내친구야像刀一样的朋友呀
폼나게 사세요生活得坚强些
벌같은 내친구야像蜜蜂的朋友呀
톡쏘며 살아요生活得很塌实
축하 해요祝贺
축하 해祝贺
생일 축하 해祝你生日快乐
/*******************************************************************/ /* SC5204单片机实验板实验例程
*/ /*蜂鸣器生日快乐歌
*/ /* 2012年5月
*/ /* 作者:雷国强
*/ /* 邮箱:940762196@qq.com
*/ /*【声明】此程序仅用于学习与参考,引用请注明版权和作者信息!
*/ /*
*/ /*******************************************************************/
// 生日快乐歌
/*******************************************************************/ #include sbit
Buzzer=P3^7;
unsigned char timer0h,timer0l,time;
//生日歌
code unsigned char sszymmh[]={5,1,1, 5,1,1, 6,1,2, 5,1,2, 1,2,2, 7,1,4,5,1,1, 5,1,1, 6,1,2, 5,1,2, 2,2,2, 1,2,4,5,1,1, 5,1,1, 5,2,2, 3,2,2, 1,2,2, 7,1,2, 6,1,2,4,2,1, 4,2,1, 3,2,2, 1,2,2, 2,2,2, 1,2,4};
// 音阶频率表 高八位 code unsigned char FREQH[]={
0xF2,0xF3,0xF5,0xF5,0xF6,0xF7,0xF8,0xF9,0xF9,0xFA,0xFA,0xFB,0xFB,0xFC,0xFC, //1,2,3,4,5,6,7,8,i
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, //1,2,3,4,5,6,7,8,i
0xEE,0x44, 0x6B,0xB4,0xF4,0x2D,0x47,0x77,0xA2,0xB6,0xDA,0xFA,0x16,};void delay(unsigned char t)
{
unsigned char t1;
unsigned long t2;
for(t1=0;t1{
for(t2=0;t2<8000;t2++)
{
;
}
}
TR0=0;} void t0int()interrupt 1 { TR0=0;Buzzer=!Buzzer;TH0=timer0h;TL0=timer0l;TR0=1;} void song(){ TH0=timer0h;TL0=timer0l;TR0=1;delay(time);
}
void main(void){ unsigned char k,i;TMOD=1;//置CT0定时工作方式1 EA=1;ET0=1;//CPU开中断,CT0开中断
while(1)
{
i=0;
while(i<75){
//音乐数组长度,唱完从头再来
k=sszymmh[i]+7*sszymmh[i+1]-1;
timer0h=FREQH[k];
timer0l=FREQL[k];
time=sszymmh[i+2];
i=i+3;
song();
}
}
}
生日快乐歌(韩国版)(红字为中文发音)
생일 축하 합니다
(祝你生日快乐)生意出卡哈米达, 생일 축하 합니다
(祝你生日快乐)生意出卡哈米达 지구에서 우주에서(在地球 在宇宙)起鼓唉搜,屋脊唉搜, 제일 사랑합니다
(我最爱你)生意撒朗哈米达。꽃보다 더 곱게
(比花还香)鼓不搭头估给,별보다 더 밝게
(比星星还亮)赔不搭头趴一给,사자보다 용감하게(比狮子还勇敢)撒咋不搭勇嘎妈给,해피버스데이 투유(happy birthday to you)
생일축하합니다
(祝你生日快乐)生意出卡哈米达, 생일축하합니다
(祝你生日快乐)生意出卡哈米达,꽃다운 내친구야
(喜欢花的我的朋友呀)五 大欧内亲估呀,굴곡있게 살아요
(生活得很曲折)硅谷gi`dei撒拉哟~ 생일축하합니다
(祝你生日快乐)生意出卡哈米达, 생일축하합니다
(祝你生日快乐)生意出卡哈米达, 지구에서 우주에서(在地球 在宇宙)起鼓唉搜,屋脊唉搜, 제일 사랑합니다
(我最爱你)生意撒朗哈米达。꽃보다 더 곱게
(比花还香)鼓不搭头估给,별보다 더 밝게
(比星星还亮)赔不搭头趴一给,사자보다 용감하게(比狮子还勇敢)撒咋不搭勇嘎妈给 해피벌스데이 투유(happy birthday to you)생일축하합니다
(祝你生日快乐)生意出卡哈米达, 생일축하합니다
(祝你生日快乐)生意出卡哈米达, 칼같은 내친구야
(像刀一样的朋友呀)卡一嘎度内亲估呀 폼나게 사세요
(生活得坚强些)估姆那dei萨三哟~ 벌같은 내친구야
(像蜜蜂的朋友呀)跑一考度内亲估呀 톡쏘며 살아요
(生活得很塌实)扑估苏~缪~撒拉哟~ 축하 해요
(祝贺)出卡唉油~ 축하 해
(祝贺)出卡唉~
생일 축하 해
(祝你生日快乐)生意出卡唉~