文件名称:mcu_music
介绍说明--下载内容来自于网络,使用问题请自行百度
单片机IO口播放乐曲,// 单片机用T1中断在IO口P1.0输出乐曲[在P1.0口与VCC间接一喇叭即可听到] //
// 1.由于输出的是方波,比较难听:-]你也可以将波形细分用DA输出正弦波 //
//2.由于T1频繁中断,任何其他中断发生都会是乐曲打顿,只适合试验 //
//3.优化音符编码:一个字节中包含节拍、音符、升降调,可区分数据和命令//
//同时人工将音符译为机器码非常容易。-Single-chip IO I play music,// single-chip microcomputer used in the IO port T1 interrupt output music P1.0 [P1.0 port with VCC in an indirect one speaker can be heard]//// 1. Because of the output are square-wave, more bluntly :-] You can also be broken down by DA output waveform sine wave//// 2. because of the frequent interruption of T1, any other interruption will happen Dayton are playing music, is only suitable for test//// 3. Optimize coding notes: A byte contains rhythms, notes, take-off and landing tune can distinguish between data and command//// At the same time manually translated into binary notes very easily.
// 1.由于输出的是方波,比较难听:-]你也可以将波形细分用DA输出正弦波 //
//2.由于T1频繁中断,任何其他中断发生都会是乐曲打顿,只适合试验 //
//3.优化音符编码:一个字节中包含节拍、音符、升降调,可区分数据和命令//
//同时人工将音符译为机器码非常容易。-Single-chip IO I play music,// single-chip microcomputer used in the IO port T1 interrupt output music P1.0 [P1.0 port with VCC in an indirect one speaker can be heard]//// 1. Because of the output are square-wave, more bluntly :-] You can also be broken down by DA output waveform sine wave//// 2. because of the frequent interruption of T1, any other interruption will happen Dayton are playing music, is only suitable for test//// 3. Optimize coding notes: A byte contains rhythms, notes, take-off and landing tune can distinguish between data and command//// At the same time manually translated into binary notes very easily.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单片机IO口播放乐曲 .C
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.