cancel
Showing results for 
Search instead for 
Did you mean: 

The max sampling rate on multichannel (scan) conversion mode with timer compare

THIHA KYAW
Associate III

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

2 REPLIES 2
T J
Lead

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.

THIHA KYAW
Associate III

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