STM32 ADC Complete Guidance: Polling, Interrupt, and DMA Modes.

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 11

  • @douglasrom40
    @douglasrom40 5 місяців тому

    Congrats!!! Smooth explanation.

  • @ЕвгенийШепард-р2х
    @ЕвгенийШепард-р2х 7 місяців тому +1

    Great Explanation!

  • @venkygoud7421
    @venkygoud7421 7 місяців тому +1

    Nice video,great explanation

  • @dangabbay4910
    @dangabbay4910 11 днів тому +1

    In your interrupt mode example you call HAL_ADC_Start_IT() only once outside the infinite loop. Why does it continue to sample? Aren't supposed to call it multiple times? Please explain.

    • @dangabbay4910
      @dangabbay4910 11 днів тому +1

      I guess this is because you have "Continous Conversion Mode" enabled. But how do you determine the sampling rate in this case?

    • @steppeschool3629
      @steppeschool3629  10 днів тому

      it depends on the timer prescaler and the sampling time you set. For each channel, there is a parameter you can set to control the sampklging rate.

  • @CLGilbert
    @CLGilbert 2 місяці тому

    Is it OK to cast a *uint_16 to a *uint_32 and pass it to Start_DMA? Does the function understand that the buffer is really only 4 bytes and not 8 bytes?

    • @steppeschool3629
      @steppeschool3629  2 місяці тому

      in that case, I guess you need to specify the memory width to 4 bytes, not 2 bytes.

    • @CLGilbert
      @CLGilbert 2 місяці тому

      ​@@steppeschool3629yes. I noticed now you set the DMA length to half word.