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.

TMS320F28379D: Regarding SGEN library and SIne wave generation code

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

I want to output tabulated ecg data (edited the sine table file with ecg data instead of sin table data) to the DAC and I used the sine wavegeneration code to do so, but, I am confused about the "maxfrequency value" variable and how it is used! What changes do I need to do other than the sampling frequency, output fruquency? Attaching herewith the data and assembly file of data!ECG.ASMmyfile.dat

  • Hi Chinmay,

    If you are trying to output arbitrary waveforms, you should use the DMA instead. Using the DMA is a lot simpler and more efficient. In your case, you would write your ECG data to memory and have the DMA periodically transfer that to the DAC. There is an example of this for a sinewave in C2000Ware called buffdac_sine_dma.