文件名称:lab11
介绍说明--下载内容来自于网络,使用问题请自行百度
在dac 上显示一个波图,刚刚输出的时候是sine 的图 开动按钮后发出不同的图像-Write a C program that creates a waveform generator. It should start by outputting a sine wave
to DAC0. Each time SW1 is pressed then released, the wave form should change, first to a
triangle wave, then a sawtooth wave, then back to a sine wave (repeating forever). Each time
SW2 is pressed and released, the output amplitude should be adjusted by a factor of 2 (full
amplitude, then half amplitude, then quarter amplitude, then back to full amplitude, etc.).
Use the 2.5V internal reference the ADC12 module. The full amplitude for each wave form
should be 0V to 2.5V, one period should contain 256 samples, and the frequency should
be 15 Hz.
You should use MATLAB to create waveform lookup tables for the sine and triangle waveforms.
For the sawtooth wave, you can either use MATLAB or an internal function to generate the
waveform.
to DAC0. Each time SW1 is pressed then released, the wave form should change, first to a
triangle wave, then a sawtooth wave, then back to a sine wave (repeating forever). Each time
SW2 is pressed and released, the output amplitude should be adjusted by a factor of 2 (full
amplitude, then half amplitude, then quarter amplitude, then back to full amplitude, etc.).
Use the 2.5V internal reference the ADC12 module. The full amplitude for each wave form
should be 0V to 2.5V, one period should contain 256 samples, and the frequency should
be 15 Hz.
You should use MATLAB to create waveform lookup tables for the sine and triangle waveforms.
For the sawtooth wave, you can either use MATLAB or an internal function to generate the
waveform.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.