Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop SCM
Title: lab11 Download
  • Category:
  • SCM
  • Tags:
  • [HTML]
  • File Size:
  • 2kb
  • Update:
  • 2015-03-13
  • Downloads:
  • 0 Times
  • Uploaded by:
  • kailing
 Description: 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.
 Downloaders recently: [More information of uploader kailing]
 To Search:
File list (Check if you may need any files):
 

说明.html
    

CodeBus www.codebus.net