How to change amplitude signal sine wavedac8 module with API?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
2 Replies
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

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