This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC8552: Code for inputting a desired frequency and resultant wave being generated

Part Number: DAC8552

Hi,

While I have some experience with ADCs, I am new to using DAC's and had a question regarding outputting frequency with such chips. Is it possible to create code that will take a user's desired output frequency, and reproduce the frequency + amplitude using the DAC (given the hardware constraints)? I've seen examples where the DAC reconstructs a wave from the ADC input, but I am looking to use the DAC to construct an independent waveform. 

If such a thing is possible, where can I find code that would allow me to do that with my DAC. Seems like a standard use-case for a DAC if feasible.

Thanks in advance for your help,

Abel

  • Hi Abel,

    I do not think I have any examples of this.  It really depends on the tool you are using to generate the signal.  For example, consider the sample rate at which your MCU/processor can generate the data, and then the rate at which your bus can transmit the data.  It also depends on the maximum sample rate you need.  For example, if you have a max sample rate of 1ksps, but you want a 700hz sine wave, you are less than the nyquist frequency.

    Thanks,

    Paul