摘要
音乐报警作为传统声音报警的一种新型表现形式,得到了越来越多的关注。若使用数字电路完成相应的功能,则电路会变得相当复杂,且成本也非常高。因此,该文提出了一种基于51单片机的数字音乐报警电路设计方案,其功能是通过软件编程实现的,不但降低了硬件电路的复杂性,而且其成本也大大降低。该设计AT89C51单片机为核心,辅以LCD1602显示屏、4个独立按键和蜂鸣器等硬件。通过按键可实现英文欢迎提示字符的设置、音乐播放时显示歌曲序号及名称、在报警过程中可通过4个功能键实现选择乐曲、暂停和播放等功能。
Electronic music alarming system is one of the new forms of classical alarming system, getting more and more attention. The circuits will be more complicated if functions are realized by digital circuits, and the cost will be higher. Here, a new digital music alarming system is designed based on 51 single-chip computer,where functions are carried out by programming. The new design reduces the complication and the cost. The core of the system is AT89C51 single-chip computer, and accessories include LCD1602 display, 4 independent keys, buzzer and so on. Realized functions include:exhibiting English welcome prompt characters when power button is turned on; showing the number and the name of played song;realizing the choice of songs, paused and played by 4 function keys.
出处
《科技创新导报》
2014年第12期61-63,共3页
Science and Technology Innovation Herald