2010-04-06 01:38 AM
ADC/DMA one off problem
2011-05-17 04:46 AM
Sounds like you are glitching the DMA while you are setting up the ADC, and changing the settings. Perhaps you should get everything set up properly *before* enabling the DMA to accept transfers?
This should be less prone to that ADC_StartCalibration(ADC1); while(ADC_GetCalibrationStatus(ADC1)); /* Enable DMA1 channel1 */ DMA_Cmd(DMA1_Channel1, ENABLE); ADC_SoftwareStartConvCmd(ADC1, ENABLE);2011-05-17 04:46 AM
Thanks, that sounds logical.
I didn't think of it as a possible problem, as the ADCx_DMA examples do it in the same order. I'll try it.2011-05-17 04:46 AM
Hi,
Clive1 is right... as usual ;) I had the same problem few weeks ago and changed the initialization order given in the example. The ''array swapping values'' phenomenon disappeared.2011-05-17 04:46 AM