Aug 14, 2016
12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 14, 2016
12:49 PM
I'm in the process of trying to generate a sawtooth waveform with the WaveDac component. For a static waveform, there are no issues... and it works just fine However, I'd like to be able to change the amplitude of the waveform through a UART interface.
So the real question is: What is the easiest way to be able to change the amplitude of the output waveform?
In the API, there is a WaveDAC8.c file that has an array (const uint8 CYCODE WaveDAC8_wave1) of 8-bit values that presumably get sequentially put into the DAC. Is there a way to just add several more of these with the correct amplitudes? If so, how do I go about changing the active waveform from main.c?
Or, is there a better way to do this?
Thanks in advance.
Labels
- Labels:
-
PSoC 5LP
19 Replies