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.

Remap ePWMs for DMA access for28377.

Other Parts Discussed in Thread: CONTROLSUITE

Hello all.

I try dma access to epwm module.For adc dma work is fine.But a can not get result for DMA to epwm for 28377.

This is my example:

DMA3Dest=&EPwm1Regs.TBPRD;
DMA3Source = &buff_pwm_prd1[0];
DMACH3AddrConfig(DMA3Dest,DMA3Source);
DMACH3BurstConfig(ONE_WORD_BURST,SOURCE_INCREMENT_ONE_ADDRESS,DESTINATION_NO_ADDRESS_CHANGE); // BURST size = 1 | Source step size = 0 | Dest step size += 1
DMACH3TransferConfig(number_pulse_timer1+2,TRANSFER_STEP_SOURCE_INCREMENT_ONE_ADDRESS,TRANSFER_STEP_DEST_NO_CHANGE); // Transfer size = 0x1000 | Source step size = 0 | Dest step size += 1
DMACH3WrapConfig(0xFFFF,0,0xFFFF,0);
DMACH3ModeConfig(DMA_EPWM1A,PERINT_ENABLE,ONESHOT_DISABLE,CONT_DISABLE,SYNC_DISABLE,SYNC_SRC,OVRFLOW_DISABLE,SIXTEEN_BIT,CHINT_END,CHINT_ENABLE);

Interrupt is work after end of dma transfer,but a can not find change EPwm1Regs.TBPRD by osilloskop on pin.

Wave form no change!!! 

For 28335 I remaped epwm registrs(SysCtrlRegs.MAPCNF.bit.MAPEPWM = 1; ),and change cmd file.

In control suite I can not find example for 28377 dma to epwm.

Help me.