2018-07-30 03:03 AM
Hi,
I would like to scan 7 channels of ADC1 using multichannel conversion method.
Since I want fix sampling rate for all channels, I use timer... But I cannot read ADC value when I set timer value for 200KHz.
Please guide me how to configure 7 channels ADC1 at 200KHz sampling rate using DMA.
Thanks.
Regards,
Thiha Kyaw
2018-07-30 06:54 PM
Which processor ./ board ?
Are you using the Cube ?
is it a custom board ?
I use the cube, and set the ADC DMA to circular buffer.
at 200KHz the readings may not be very accurate, you need low impedance drive to stabilize that.
I set the interrupts to end of sequence.
Within the end of sequence. interrupt, I copy out the 12 channels into a 16 ROW table of 12 channels
Then the foreground / worker thread can check the latest data sets, whilst the ADC/DMA is working on the next set.
2018-08-01 09:02 PM
Hi TJ,
Yes, it is a custom board using STM32F769 MCU. It is working. Configuration using cube is in picture.
I used Timer2 to trigger...
Regards,
Thiha Kyaw