STM32 TIMERS #9. One Pulse Mode

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 17

  • @Iswit
    @Iswit Рік тому

    It is a very useful video and very well explained. The subtitles help a lot and the fact that it doesn't speak too fast.

  • @cezis666
    @cezis666 Рік тому +1

    Thanks for great videos! Please make a video regarding Timer triggered DMA memory to peripheral transfer in multibuffer mode. Information about it uses is very limited and it would be nice if you could cover it😊

  • @FrancescoGomez-n9k
    @FrancescoGomez-n9k 9 місяців тому

    Thank you very much for this very useful and clear explication of One Pulse Mode programming. I tried it and it works very well. Now I have a problem. I need to have the output pulse on TIM1_CH1 as soon as the external input trigger arrives on TIM1_CH2 (without any delay) so I reduced CCR. When I set it to 1 I have a 1us delay as expected, but when I set it to 0 no pulses are generated. I am using a 64 Mhz clock, a 64-1 prescaler and an ARR of 10-1. I am working on an STM32H723VGTx (from WeAct Studio).
    Any help would be greatly appreciated :)

  • @beneflores
    @beneflores Місяць тому

    I was unable to update the number of times at run time

  • @arshamsharifnia5474
    @arshamsharifnia5474 Рік тому

    Keep up the good work

  • @sugiyartosugiyarto1587
    @sugiyartosugiyarto1587 Рік тому

    Sir how make programable delay with one pulse mode???

  • @farukdemirta
    @farukdemirta 3 місяці тому

    thank you so much bro

  • @terlumunjoseph6779
    @terlumunjoseph6779 Рік тому

    thank you very much but after i tried it I was only able to get only one of the timer1 output compare to give out the pulse but when I try using other channels, for instance, timer 1output compare chan 3, I get nothing I'm using timer 2 as master and timer1 as slave I am using the bluepill for tests

  • @quanhong2024
    @quanhong2024 Рік тому

    Love you so much

  • @kekecjan
    @kekecjan Рік тому

    trigger source pin is set up as OUTPUT !!!! its flowing 45mA wich isn't good !!! pin has to be as INPUT !!!

    • @kekecjan
      @kekecjan Рік тому

      Solved : i didn't use output compare , i have user PWM and then you change ARR and CCR register to set the width and delay of the pulse. When i use output comper my input pin should be set as input wich it was not, i checked with amp meter also with register.

  • @ernestomazonvaladez1943
    @ernestomazonvaladez1943 Рік тому

    I have a question. Is it possible to trigger the timer pulses using software?

    • @ControllersTech
      @ControllersTech  Рік тому

      Yes its possible but you still need some kind of trigger signal. For example you can use the trigger source as the ITR (Internal Trigger) signal, which is internally connected between the timers.
      Check out the previous “timer synchronisation” videos in this series to understand how internal trigger works.

    • @ernestomazonvaladez1943
      @ernestomazonvaladez1943 Рік тому

      @@ControllersTech I want to implement a kind of burst oscillator. Consequently, I am trying to use the timer 1 usin the RCR function. For example, triggering via software, I would like to create 20 pulses at 4 kHz. The point is use the timer 1 as master and not as slave.

    • @ControllersTech
      @ControllersTech  Рік тому

      You can implement it in the way I described above. A timer is a slave to another timer but it still outputs the pulse. The slave part is only used to receive the trigger.

  • @MyMcMichael
    @MyMcMichael Рік тому

    Its weird... My Trigger Input is getting defined as Output :(

    • @kekecjan
      @kekecjan Рік тому

      Solved : i didn't use output compare , i have used PWM and then you change ARR and CCR register to set the width and delay of the pulse. When i use output comper my input pin should be set as input wich it was not, i checked with amp meter also with register.