Other Parts Discussed in Thread: C2000WARE,
Hi and thanks for your analyse on the CPU timers limitations
In fact this first post is to understand one behavior on the example
C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\examples\cpu1\buffdac_sine_dma\cpu01
which I have adapted to the TMS320F280049 (I will post to explain you the adaptation performed and bugs fixed).
The aim is to obtain a sinus signal of 100kHz (see e2e.ti.com/support/microcontrollers/c2000/f/171/t/763056). First I have tried with PWM but it is limited under around 33kHz if the duty cycle is updated during CPU INT. So after the response of your colleague, I am working on a DMA and DAC solution.
The limitation of the CPU timer over 1 MHz (e2e.ti.com/support/microcontrollers/c2000/f/171/t/765888)
explains the latency of the pulse generated at the start of the DMA transfer (see following capture with sinus signal around 104kHz and 8 MHz sampling frequency and 80 samples per period)
Why should the DMA be triggered by a timer ?
So due to the timer limitation, could the DMA be triggered at 4MHz (or higher) frequency by a ePWM ?
Those questions refer to the code line : "DmaClaSrcSelRegs.DMACHSRCSEL1.bit.CH1 = DMA_TINT0; // Timer0 is DMA trigger"
Regards
Yann