Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE
Hello Everybody,
I am using the launchpad for MCU TMS320f28379D trying to generate a sinusoidal waveform with DAC.
Everything works fine if I cyclically write the output value into the DAC register like this: DacbRegs.DACVALS.all = outVal.
Instead, I am having troubles accessing DAC output registers through DMA. With DMA in fact, I can easily transfer data from RAM to RAM or from ADC to RAM, but not from RAM to DAC. Is there anything particular to do to achieve that? Here the piece of code: DmaRegs.CH2.DST_ADDR_SHADOW = (Uint32)&DacbRegs.DACVALS.all. What happens is that the DAC register does not get accessed at all, even though the DMA "End of Transfer" Interrupt is triggered correctly.
I am sure that DMA settings are OK because if I only change the destination address as DmaRegs.CH2.DST_ADDR_SHADOW = (Uint32)&myRAMvariable it works perfectly.
Can anybody please confirm that DMA can access DAC registers? If yes, how can I do that?
Thank you very much,
Michel