文档介绍:单片机音乐发声器
摘要
近年来随着科技的飞速发展,单片机的应用正在不断地走向深入,同时带动传统控制检测日新月异更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特点的软件结合,加以完善。
现当今,,而利用单片机存储音乐,﹑价格优﹑外围电路简单的特点,,用单片机芯片及少数外围电路控制音乐播放。
对于单片机产生音乐,,不同的声音对应不同的频率,:do﹑re﹑mi﹑fa﹑so﹑la﹑xi﹑do,,, 并用按键控制音乐的播放和停止。用三极管、电阻等组成的放大电路驱动扬声器。
关键词单片机/音乐/按键/频率
ABSTRACT
In recent years along with science and technology develop fast, the application of single flat machine is moving towards thorough continuously, at the same time drive traditional control detection day the benefit of new moon update. In the only flat machine application system of the automatic control and detection of real time, only flat machine is often to use as a key parts, only single flat machine aspect knowledge is insufficient , return should basis specificly hardware structure, as well as aim at the software that applies object characteristic bination, perfect.
Now, music playing is a lots which micro chip control. The music chip is very much. But it is at best to apply the micro has the characteristic which function is much and price is a little and out’s circuit is a it is used by people who like music and manufacture the music chapter,using micro chip and a few out circuit control the playing of music,and give birth to music of happy birthday, withing lampion swichover and light have synchronous effect.
For the micro chip giving birth to music,the importance is controlling output of output of frequence which has rule can gain music that rule eight basic music’s bits:do,re,mi,fa,so,la,xi,do,eight basic bits have different if we output frequence of music basic bit accordingly,music can gain accordingly output of frequence used method of T0 stopping in this chapter,and two keypress contr