搜索资源列表
-
0下载:
ST套件产生报警音
本实例的目的是让大家学会用单片机产生声音的方法,学会计算程序所用时间
本实例的功能是能PIC16F84产生报警音,频率分两个0.1s第一个
0.1S频率从1.8K-3.5K匀速增加第二个0.1S频率从3.5K-1.8K匀速减少,
程序复位后,蜂鸣器开始报警
PIC单片机学习网-----http://www.pic16.com
烧写时应注意:配置位已经在程序中写明,加载HEX文件时会自动加载,烧写时不用再手动设置配置位。
实验时
-
-
0下载:
设计一个简易电子琴,使得相应键按下时,能发出1、2、3、4、5、6、7音阶声,且发音时间的长短可调。
提示:(1)每个音阶对应的频率如下:
音阶 1 2 3 4 5 6 7
频率(HZ) 261.1 293.7 329.6 349.2 392.0 440.0 493.9
(2)不同频率的区别,可通过调节向D/A转换器输出数据的时间间隔来得到。
-Design a simple flower, making the corresponding key is pressed, t
-
-
0下载:
with a PIC microcontroller. Musical notes are simply sound waves of particular frequencies. If the frequency of a note is known correctly, a microcontroller can be programmed to play the note by generating a square wave (of the same frequency) signal
-
-
0下载:
This example describes how to implement a scanning keyboard and then from the pressed key generate a corresponding defined sound frequency. Each time a key is pressed the corresponding frequency value is placed into the timer/counter register. When t
-