Anonymous
Not applicable
Jul 10, 2014
07:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 10, 2014
07:57 AM
Hello, I am using a WaveDAC8 to generate a low frequency tone. It is using a PWM as an external clock source. This allows me to vary the frequency of the tone by changing the PWM period. When I stop the PWM I want to set the WaveDAC output to a predetermined value. I assumed SetValue would accomplish this, but with the clock stopped, the output stays at whatever the last value of the waveform was. SetValue has no effect. What am I doing wrong?
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 3
1 Solution
Jul 11, 2014
05:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 11, 2014
05:09 AM
Hi Beartooth,
according to the WaveDAC datasheet the clock should be stopped when using SetValue(), so this approach is correct.
I also read the clock component datasheet, which states that if the Clock_Stop() function is used, the clock signal output will be low.
Which signal does your PWM signal have when you stop it? Maybe it would be a good idea to temporarily replace the PWM with a clock component and test if the SetValue() works when using the clock component.
Regards,
Ralf
9 Replies