Skip to main content
hesam moshiri
Associate III
July 8, 2018
Question

ADC conversion triggering with the falling/rising edge of the PWM signal

  • July 8, 2018
  • 1 reply
  • 618 views
Posted on July 08, 2018 at 10:35

Hi.

I want to generate a PWM pulse which might vary in terms of its frequency and duty cycle. It's easy to make it But I want to start reading ADC values using DMA (for example 100 samples) just after the pulse finished or started (falling edge/rising edge of the PWM signal). 

is it possible to make it?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 10, 2018

    What STM32 part?

    You can use a secondary or tertiary channel of TIM to trigger the ADC

    Or perhaps master/slave configure them

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..