文件名称:main
- 所属分类:
- 其他小程序
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-09-24
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- yujia******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
*名称:带有蜂鸣器乐曲报警的AD采样程序
*功能:实现用PIC18F452自带AD进行采样,并通过数码管显示,当采样电压达到 5V 时报警,用蜂鸣器播放一段歌曲
*备注1:该实验并未有硬件,仅通过 Proteus 仿真,若改为硬件,则可能需修改IO端口的宏定义,及各个部分的初始化函数,调整定时时间和延时函数
*备注2:蜂鸣器音乐原理:每首曲子都有tone和beat,tone为音调,为yinfu[]中的一个;beat为音调与音调之间间隔的时间;-* name: music with a buzzer alarm of AD sampling program
* function: implementation USES PIC18F452 bring AD sampling, and through digital tube display, when the sample reaches 5 v voltage alarm, buzzer playing a song
* note 1: the experiment does not have hardware, only through the Proteus simulation, if the hardware, may need to modify the IO port of macro definition, and each part of the initialization function, adjust the timing and time delay function
* note 2: the buzzer music principle: every piece has a tone and beat, tone to tone, for yinfu one of [] Beat for the interval of time between tone and pitch
*功能:实现用PIC18F452自带AD进行采样,并通过数码管显示,当采样电压达到 5V 时报警,用蜂鸣器播放一段歌曲
*备注1:该实验并未有硬件,仅通过 Proteus 仿真,若改为硬件,则可能需修改IO端口的宏定义,及各个部分的初始化函数,调整定时时间和延时函数
*备注2:蜂鸣器音乐原理:每首曲子都有tone和beat,tone为音调,为yinfu[]中的一个;beat为音调与音调之间间隔的时间;-* name: music with a buzzer alarm of AD sampling program
* function: implementation USES PIC18F452 bring AD sampling, and through digital tube display, when the sample reaches 5 v voltage alarm, buzzer playing a song
* note 1: the experiment does not have hardware, only through the Proteus simulation, if the hardware, may need to modify the IO port of macro definition, and each part of the initialization function, adjust the timing and time delay function
* note 2: the buzzer music principle: every piece has a tone and beat, tone to tone, for yinfu one of [] Beat for the interval of time between tone and pitch
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.c