Skip to main content
THIHA KYAW
Associate III
July 30, 2018
Question

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

  • July 30, 2018
  • 2 replies
  • 740 views

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

    This topic has been closed for replies.

    2 replies

    T J
    Senior III
    July 31, 2018

    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
    August 2, 2018

    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