STM32 Timer based software triggered one shot pulse using HAL on Bluepill

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

КОМЕНТАРІ • 9

  • @NathanielIten
    @NathanielIten 2 роки тому +2

    Can't get a damn thing of what you're saying, sorry. Mind adding the subtitles?

  • @arunayachith477
    @arunayachith477 3 роки тому

    what software you are using to build this?

    • @jansunman7393
      @jansunman7393  3 роки тому

      STM32CubeIDE 1.42 / STM32CubeMX 6.01-RC3

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

    Thank you for this Video!

  • @EmbeddedEnigma
    @EmbeddedEnigma 2 роки тому

    I am trying to create a delay using timers, but for some reason my timer is just staying stuck in interrupt routine.my while loop is also not working due that. My timer prescalar is 0 and counter value is 72, this is because I want interrupt to occur every 1Mhz meaning 1Us, but my timer remains stuck in interrupt loop. I am using stm32f103C8 with 72Mhz clock.

    • @stefanvandepas4249
      @stefanvandepas4249 2 роки тому

      Is this based on my example?

    • @EmbeddedEnigma
      @EmbeddedEnigma 2 роки тому

      @@stefanvandepas4249 no

    • @EmbeddedEnigma
      @EmbeddedEnigma 2 роки тому

      But I am asking what is the reason for timer being stuck in interrupt routine

    • @markday3145
      @markday3145 2 роки тому

      Be sure you are clearing the timer's interrupt pending flag inside the interrupt routine. I believe you clear it using __HAL_TIM_CLEAR_IT().