cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

I tried to change the amplitude of the sine signal using the WaveDac8_setvalue API (uint8), this does not work, I tried a solution that I found on the Internet with a strobe record, but it did not work.

How can I change the amplitude of the sine signal generated by the WaveDAC module?

Thank you

0 Likes
Reply
2 Replies
Valued Contributor II

No way.

void WaveDAC8_SetValue (uint8 value)  This sets the current value. no more.

DAC generate a signal, using a table of fixed values.

Unfortunately,  PSOC had eight-bit DAC PSOC.  Even when using the whole range (0-255)the signal has the  steps of gradation levels.

It makes no sense to reduce table values.

So you have to use a potentiometer (digital potentiometer) at the output of the DAC.

...Hope I'm not mistaken

0 Likes
Reply
Honored Contributor II

There are many ways to change signal amplitude. It all depends on required bandwidth, output resolution, gain step size, etc. Please check previous discussion on that (examples are included)

WaveDAC8 Amplitude Control for PSOC5?

To find best approach you must provide more information on the specs..

odissey1

0 Likes
Reply