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.

TMS320F280049: buffdac_sine_dma example adapted to TMS320F280049

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE,

Hi

I give here the steps to adapt the example C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\examples\cpu1\buffdac_sine_dma\cpu01 to the TMS320F280049.

1) Fix a SW bug in the ConfigCpuTimer from driverlib and device support

Timer->RegsAddr->PRD.all = temp-1;

2) Fix an other bug on Sin table computation

SINE_TBL[j] = (sin(j*2.0*PI/(double)SINE_TBL_SIZE)+1.0)*2047.5;

Indeed the code gives SINE_TBL[j] = (sin(j*PI/180.0)+1.0)*2047.5; which is only valid for a SINE_TBL_SIZE equals to 360.

3) Comment this code line

    //CpuSysRegs.SECMSEL.bit.PF1SEL = 1;

Post linked to e2e.ti.com/support/microcontrollers/c2000/f/171/t/766702

Regards

Yann