一、 使用键盘显示接口芯片8279接收按键键值,并在七段数码管上显示出来,通过判断键值进入相应音乐播放处理程序。在音乐播放程序中,使用定时器/计数器8253的计数器2,使其工作在方式¬ ¬ 3—方波发生器,通过查表依次取出乐曲频率值送入计数器作为计数初值,经out2输出方波,驱动扬声器发出不同频率的声音,在每个音阶之间加入相应的延迟时间,即实现了音乐的播放。
上传时间: 2014-01-22
上传用户:阿四AIR
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
对单片机蜂鸣器进行操作,可以通过输入不同的频率值模拟音乐播放的效果。
上传时间: 2016-02-03
上传用户:wangzhen1990
单片机系统开发实例,包括对液晶面板的操作,时钟模块,闹钟模块,蜂鸣器音乐播放模块,以及键盘对液晶面板的控制。内有较详细的注释。
上传时间: 2013-12-17
上传用户:youth25
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
毕设时做的程序,实现密码锁和音乐播放的功能,音频信号通过LM386放大,驱动喇叭,P1口实现矩阵键盘输入密码
标签: 程序
上传时间: 2016-02-18
上传用户:ljt101007
这个程序利用汇编语言编写,主要实验由微机实现的简单音乐播放功能
上传时间: 2016-04-24
上传用户:小鹏
J2ME编程,实现音乐播放功能,使用到了MMAPI,我是一个初学者,刚接触。
上传时间: 2016-05-15
上传用户:王庆才
本程序采用C语言编码,实现音乐播放功能。
上传时间: 2014-01-24
上传用户:小眼睛LSL
实现蓝牙 立体声传送,远程控制音乐播放功能 用CSR 的bluelab3.6.2开发。GCC3.3编译器
上传时间: 2016-06-04
上传用户:chenlong