期刊文献+

基于PIC单片机PWM模式的音乐播放系统设计 被引量:3

Design of Music Playing System Based on the PWM Mode of PIC Microcontroller
下载PDF
导出
摘要 针对51单片机I/O定时翻转电平驱动蜂鸣器方法存在的缺点,以PIC单片机为核心控制元件,利用内部PWM硬件资源,实现了简易音乐播放系统设计。通过改变PWM端口输出脉冲信号频率及脉宽,驱动蜂呜器发出不同音调,并结合单片机内部定时器中断控制音调高低及节拍长度,此外可通过4×4矩阵键盘实现简单音乐弹奏。实验结果表明,该系统硬件电路简单,软件占用CPU时间少,易控制音乐音调及节拍,音色纯正,具有一定的实用与参考价值。 A simple music playing system based on the PWM mode of PIC microcontroller is designed to replace the method which using 51 microcontroller I/O timing logic high-low level reversal to drive buzzer. The system can give forth vary tones by changing frequency and pulse width of the PWM signal, the inflection and duration of the tone is controlled by the timer interrupt of microcontroller, and the system can play various music by typing the 4 ×4 matrix keyboard. Experimental results show that the system hardware circuit is simple, software occupies less CPU time, the tone and duration of the music can be controlled easily, moreover, it sounds pure. The system has some practical and reference value.
出处 《测控技术》 CSCD 北大核心 2014年第9期72-75,共4页 Measurement & Control Technology
关键词 PWM 音乐播放 定时器中断 PWM music playing timer interrupt
  • 相关文献

参考文献9

二级参考文献10

  • 1郇玉龙,赵宁.用单片机设计电子音乐门铃[J].电子制作,2007,15(4):28-29. 被引量:3
  • 2汪世明,刘迎春.基于Proteus的单片机应用技术[M].北京,电子工业出版社,2009.
  • 3李重光.音乐理论基础.[M].北京:人民音乐出版社,2007.
  • 4sublucky.单片机播放音乐原理[EB/OL].http://blog.ednchina.com/sublucky/226465/message.aspx#,2009-05-13/2009-12-12.
  • 5黄振杰,卢小冰.基于AT89S52单片机的多功能音乐播放器[EB/OL].http://www.21ic.comlapp/mcu/200903133511_2.htm,2009-03-13/2009-12-12.
  • 6周振安.单片机音乐程序设计与实验[EB/OL].http://www.hbfy-dz.com/xxyd/211.html.2009-09-12/2009-12-12.
  • 7刘立民.MCS-51系列单片机应用系统设计[M].北京:北京航空航天大学出版社,1999.
  • 8熊光洁,刘玉德,杨倩,吴雪,刘美莲.行人路口交通信号控制系统的设计与仿真[J].微计算机信息,2008,24(32):128-130. 被引量:4
  • 9远飞.基于Proteus的LED滚屏设计与仿真[J].电子元器件应用,2009,11(6):38-40. 被引量:3
  • 10贺辉,张来希.用单片机演奏音乐[J].职业,2008,0(7X):99-100. 被引量:1

共引文献26

同被引文献22

引证文献3

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部