- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to adjust the output voltage of a sine wave using the WaveDac8 component by using the "void WaveDAC8_SetValue(uint8 value)" , but I continue to get the same voltage no matter what 0-255 value I use. I can use the regular Voltage Dac with same method to change the voltage and see results.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding SetValue there is a discussion here
Re: WaveDAC8_SetValue() has no effect
But I believe that SetValue will simply set fixed value on WaveDAC output (no sine). To have sine amplitude changed, you need to update sine values in the WaveDAC internal buffer, which you can do either on-the-fly or by switching a pointer to another buffer, see #11 of the
http://www.cypress.com/forum/psoc-5-device-programming/wavedac8-amplitude-control-psoc5
The easy example for updating VDAC8 output can be found in #5 of the same thread (no WaveDAC used):
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you start the WaveformDAC and did you stop the clock? Otherwise you will not see a result.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I start the WaveformDAC and stop it as well as the clock, make the adjustment then reset them both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are similar discussions which may be helpful
http://www.cypress.com/forum/psoc-5-device-programming/wavedac8-amplitude-control-psoc5
Waveform generator: best way to change amplitude?
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stopping the wavedac disables (power down) the DAC.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have removed the stop wavedac and it still does not change the amplitude. I see the signal but no changed amplitude
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding SetValue there is a discussion here
Re: WaveDAC8_SetValue() has no effect
But I believe that SetValue will simply set fixed value on WaveDAC output (no sine). To have sine amplitude changed, you need to update sine values in the WaveDAC internal buffer, which you can do either on-the-fly or by switching a pointer to another buffer, see #11 of the
http://www.cypress.com/forum/psoc-5-device-programming/wavedac8-amplitude-control-psoc5
The easy example for updating VDAC8 output can be found in #5 of the same thread (no WaveDAC used):
/odissey1