-
一、实验任务
利用开发系统编制程序,产生三角波、锯齿波、正弦波
二、程序编制要求
分别产生三种波形,并能通过按键调节输出频率
三、改变频率的方法...
一、实验任务
利用开发系统编制程序,产生三角波、锯齿波、正弦波
二、程序编制要求
分别产生三种波形,并能通过按键调节输出频率
三、改变频率的方法
改变数据送入0832的延时,即通过延时子程序的参数改变实现。延时参数的改变即通过键功能选择,用查表法将表格中的延时参数送入延时子程序。
四、程序设计提示
1、功能键应设四个:{
2、功能键的选择:
采用转换设计法时,应选用键值连续的按键-genert
- 2022-05-06 08:14:06下载
- 积分:1
-
DS1302时钟显示在12232液晶显示。
DS1302显示时钟,通过液晶12232显示。-DS1302 display clock through the liquid crystal display 12232.
- 2022-03-14 16:10:04下载
- 积分:1
-
矿工定位系统单端
矿工定位系统单端 -Miners positioning system single-ended
- 2022-03-20 10:23:04下载
- 积分:1
-
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter(...
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter()
float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口
作用:对采集下来的音频数据用算法处理,返回一个结果
参数:sampleData-音频数据缓冲地址指针;
length-缓冲区尺寸(音频数据数量),字节数;
返回值:返回算法结果。
void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize)
作用:设置算法参数;
参数:set_SampleRate-音频数据抽样速率;
set_TargetFreq-目标信号频率;
set_BlockSize-算法数据块尺寸(采样点);
用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效-void InitGoertzel (void) function: initialization algorithm parameters Usage: The algorithm performs a pre-test, if the need to change the parameters, calling SetParameter () float CGoertzel:: GetMagnitude (unsigned char* sampleData, int length)// Algorithm for the main interface role: to collect audio data from the treatment algorithm to return a result parameter: sampleData-audio data buffer address pointer length-buffer size (the number of audio data), number of bytes return value: the return of
- 2023-03-11 13:30:04下载
- 积分:1
-
AVR单片机实现脉冲采集
AVR单片机实现脉冲采集-AVR MCU Pulse Acquisition
- 2022-03-22 01:50:52下载
- 积分:1
-
PHILIPS非接触射频卡RC500的开发技术资料,
PHILIPS非接触射频卡RC500的开发技术资料,-PHILIPS non-contact RF Card RC500 development of information technology,
- 2023-05-30 21:35:03下载
- 积分:1
-
绝对好用的I2C和USBSWITCHTO232 绝对好用的I2C和USBSWITCHTO232
绝对好用的I2C和USBSWITCHTO232 绝对好用的I2C和USBSWITCHTO232-absolutely handy USBSWITCHTO232 I2C and the absolute ease of use of I2C and USBS WITCHTO232 absolutely handy I2C and USBSWITCHTO232
- 2022-07-09 03:41:39下载
- 积分:1
-
avr mega128单片机串口通讯源程序
avr mega128单片机串口通讯源程序-avr mega128 microcontroller serial communications source
- 2022-03-20 19:01:50下载
- 积分:1
-
这是AVR 1602b字符液晶显示模块
这个是AVR的1602B字符型LCD模块-this is the AVR 1602B character LCD module
- 2022-02-26 14:54:17下载
- 积分:1
-
AT89C2051单片机与PC机的RS232通讯接口子程序,实现管理科学。
AT89C2051与上位机RS232通讯接口子程序,实现单片机与上位机的通讯-AT89C2051 and PC RS232 communication interface subprogram, the realization of SCM and PC communication
- 2022-03-11 04:46:44下载
- 积分:1