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.
部份代码 ,DMA中断有进去,ADC的采集值也在不停的变化,
DST_ADDR_ACTIVE值也在范围内不停的变化着
就是DMABuf1里面的内容不变。
DMADest = &DMABuf1[0]; //Point DMA destination to the beginning of the array
DMASource = &AdcaResultRegs.ADCRESULT0; //Point DMA source to ADC result register base
DMACH2AddrConfig(DMADest,DMASource);
DMACH2BurstConfig(0,0,1); //adc0
DMACH2TransferConfig(9,0,0);//
DMACH2WrapConfig(0,0,0,1);
DMACH2ModeConfig(DMA_ADCAINT1,
PERINT_ENABLE,
ONESHOT_DISABLE,
CONT_ENABLE,
SYNC_DISABLE,
SYNC_SRC,
OVRFLOW_DISABLE,
SIXTEEN_BIT,
CHINT_END,
CHINT_ENABLE);