WaveDAC8 Variable frequency

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

cross mob
Anonymous
Not applicable

Hello. I wanted to be able to adjust the frequency of the WaveDAC8 with a resolution of 1Hz best case scenario via software while running. I know there are a lot of parameters like WaveDAC resolution, max waveform bandwidth etc, that can vary results, but for now I am happy with just approval of the following method in general.

Attached is a picture to adjust the frequency using a timer. It compiles and seems good so far. Is this a good method to achieve basic adjustment of the WaveDAC via software while running or is there a better method?

pastedImage_0.png

0 Likes
1 Solution
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

You may consider DDS component instead of timer for fine tuning. Check App note and examples here

DDS24: 24-bit DDS arbitrary frequency generator component

/odissey1

DDS24_WaveDAC_1a.png

View solution in original post

0 Likes
4 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

what is the frequency range would you like to get? You may use Clock Component, use API to change its clkDivider and fracDivider.

Thanks,

Ryan

Anonymous
Not applicable

Thank you for your replies. I was hoping for a max freq of 60Khz.

0 Likes
Anonymous
Not applicable

I didn’t know about that DDS component. I will try it.

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

You may consider DDS component instead of timer for fine tuning. Check App note and examples here

DDS24: 24-bit DDS arbitrary frequency generator component

/odissey1

DDS24_WaveDAC_1a.png

0 Likes