Part Number: TMS320F28335
Hello,
I ve tried to use the example provide for the ADC confiugration and DMA which include the following configuration:
// Configure DMA Channel
DMADest = &DMABuf1[0]; //Point DMA destination to the beginning of the array
DMASource = &AdcMirror.ADCRESULT0; //Point DMA source to ADC result register base
DMACH1AddrConfig(DMADest,DMASource);
DMACH1BurstConfig(3,1,10);
DMACH1TransferConfig(9,1,0);
DMACH1WrapConfig(1,0,0,1);
DMACH1ModeConfig(DMA_SEQ1INT,PERINT_ENABLE,ONESHOT_DISABLE,CONT_DISABLE,SYNC_DISABLE,SYNC_SRC,
OVRFLOW_DISABLE,SIXTEEN_BIT,CHINT_END,CHINT_ENABLE);
It is supposed to acquire 4 channels with 10 samples per channel.
When trying to change this configuration, for instance 2 channels with 1024 samples by channel, it fails.
I do update as follow:
MACH1BurstConfig(2-1,1,1024);
DMACH1TransferConfig(1024-1,1,0);
DMACH1WrapConfig(1,0,0,1);
IS this configuration is correct for 2 channels?
Thank you