Stm32 Intro To timers

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 38

  • @anudeep.20
    @anudeep.20 11 หลายเดือนก่อน +3

    It took me over an hour to find a video that doesn't use HAL to configure Timers. Even if I type No HAL on TH-cam, it is returning to me the videos that use HAL. Do yourself a favor by adding "No HAL" to the video title. I'm pretty sure, there are a ton of people who want to learn STM32 driver development without using HAL and they can find your videos pretty fast.

  • @yuraa.4980
    @yuraa.4980 3 หลายเดือนก่อน +1

    Thank you from Belorussia!

  • @rtsservices3511
    @rtsservices3511 5 ปีที่แล้ว +4

    Hi Eddie, you re such a cool guy explaining things so easy for understanding. you ve got my full respect. hope u ll go on with such tutorials of the stm32 . thank you so much !!

  • @Razma32
    @Razma32 4 ปีที่แล้ว +3

    Awesome video. I would have loved to have videos like yours around when I first started embedded programming. Keep it up. I fell off the wagon making tutorials.

  • @vultureig9277
    @vultureig9277 2 ปีที่แล้ว +1

    How to make our counter count for every 1 second. What are the values of arr and psc should be if my clock frequency = 84Mhz

  • @wegi9621
    @wegi9621 5 ปีที่แล้ว +8

    Really, really I appreciate your HUGE work, and your effort to put thist tutorial Eddie. Outstanding job my mate. Sad you didn't more sth like that.
    BUT...
    You should :)
    More pls :]

  • @NedStarkZA
    @NedStarkZA 3 ปีที่แล้ว +3

    16:17 highlight of the video!

  • @mistymisty4480
    @mistymisty4480 6 ปีที่แล้ว +3

    Great descriptions as always. Would be great to follow up also with how to set up a custom delay.

  • @yushi7743
    @yushi7743 6 ปีที่แล้ว +1

    Thank you,you video is so clear and great!

  • @OndrejPopp
    @OndrejPopp 4 ปีที่แล้ว +1

    Tx Eddie. Just be careful with your Math formulas! So around 14:31 I see Periph Clock / Presclaler / Arr = Periph Clock / (Presclaler * Arr), now this is not right according to normal operand associativity for division, so without parentheses, which is left associative and not right associative. So, A/B/C without parentheses, is interpreted as A/(B/C) and not as (A/B)/C which is not the same thing. So, A/(B/C) is in fact (A*C)/B while (A/B)/C is A/(B*C). So your second formula, that one with the multiplication is correct, but you need some parentheses at the top of your first formula, so (Periph Clock / Presclaler) / Arr. Ok. See also here : web.deu.edu.tr/doc/oreily/java/langref/ch04_14.htm

  • @robokishan
    @robokishan 4 ปีที่แล้ว

    can we use multiple channels of the same timer for rc receivers ? will it work ? some thing like timer 1 ch1 , ch2, ch3 , ch4. I want to connect rc rx all channels CH1 TO CH6 to the TIMER 1 Channel 1 to Channel 6 in input capture mode and is it possible with one timer and if is there any performance issue with that or do i have to use another timer for each channel of rc rx

    • @EdwinFairchild
      @EdwinFairchild  4 ปีที่แล้ว

      i dont see why not, give it a shot! best way to find out

  • @akshitshah2963
    @akshitshah2963 4 ปีที่แล้ว +2

    Thank you . It helped a lot.

  • @Electheo
    @Electheo 5 ปีที่แล้ว

    What is the functional difference between the prescaler and ARR? Seems like they both just help divide the same clock and nothing more.
    Amazing video, thanks!

  • @fano72
    @fano72 5 หลายเดือนก่อน

    Ok nice explanation!

  • @nam8176
    @nam8176 5 ปีที่แล้ว +1

    can i have your book which you use when making this vidio. thank you so much!

  • @csxinfo1
    @csxinfo1 4 ปีที่แล้ว

    Is there a video about output compare ?! Really love your work

  • @felixmoller5507
    @felixmoller5507 3 ปีที่แล้ว +1

    Thank you!

  • @stm32user
    @stm32user 4 ปีที่แล้ว

    Hi man, thanks, I am still confusing about this timer
    I want 7mhz frequency output. I am using stm32f103RB and timer2 What I need to do ?.
    You said peripheral clock/your desired frequency. Below setup is in my clock configuration
    HSE = 8Mhz
    SYSCLK = 64Mhz
    HCLK = 64Mhz
    APB1 = 32Mhz(Peripheral CLK)
    APB1 = 64Mhz(Timer CLK)
    APB2 = 64Mhz(Peripheral CLK)
    APB2 = 64Mhz(Timer CLK)
    TIM2
    clock source = Internal CLK
    PSC = 9
    ARR = 1
    I need Finaly 7Mhz frequency output so,
    64000000/7000000 = 9.1428
    In here 64Mhz is which one ?
    SYSCLK ?
    HCLK ?
    APB1 ?
    APB2 ?
    APB2 Time clk ?
    because 5 clocks ar now 64Mhz I am confusing here also
    so then PSC is = 9 and ARR = 1
    Please let me clarify me on this... I am awaiting your support.. Thanks Eddie
    I need without interrupt subroutine. I just want to create delay instead of using normal HAL_Delay(); function

  • @kalyanijog
    @kalyanijog 7 หลายเดือนก่อน

    Hey can you make video for timers in cube ide and show us waveforms in swv viewer for timers , it's very helpful, as I am beginner

  • @MohamedAhmed-ii4mr
    @MohamedAhmed-ii4mr 6 ปีที่แล้ว

    Is this cortex m3 or m4?

    • @EdwinFairchild
      @EdwinFairchild  6 ปีที่แล้ว +1

      محمد أحمد m3

    • @MohamedAhmed-ii4mr
      @MohamedAhmed-ii4mr 6 ปีที่แล้ว

      @@EdwinFairchild If I wanted to execute an interrupt handler when the timer overflows, what IRQHandler do I call?

    • @EdwinFairchild
      @EdwinFairchild  6 ปีที่แล้ว +1

      محمد أحمد TIMx_IRQHandler and once inside the handler you check and clear the UIF flag in status register.

    • @EdwinFairchild
      @EdwinFairchild  6 ปีที่แล้ว +1

      محمد أحمد there are no specific interrupts for timers or anything really, there are global interrupts for peripherlS and then you check their status registers to figure out what generated the interrupt

  • @TohidGadiri
    @TohidGadiri 5 ปีที่แล้ว +1

    VERRRRYYYYYY NICE ,BIG LIKE BUDY

  • @tonibau4278
    @tonibau4278 5 ปีที่แล้ว

    Great Buddy ! Keep it up your good works

  • @mangmaia
    @mangmaia 5 ปีที่แล้ว

    nice work, thank you.

  • @saidzeid4860
    @saidzeid4860 2 ปีที่แล้ว

    Awesome video.

  • @stevenchavarro3644
    @stevenchavarro3644 5 ปีที่แล้ว +1

    Thank you

  • @12343560
    @12343560 5 ปีที่แล้ว

    Hi Eddie, thanks for all the great videos. Your explanations are so good. Please please please if you can help with this. I am trying to get ETR clock mode 2 working and for the life of me I cannot get it to work. I am hoping to get to what the datasheet is calling "Slave mode: External Clock mode 2 + trigger mode". I am trying to clock the Timer with an external clock source and align it with packets of data but I cannot even get the ETR mode working. I am a hardware engineer by trade and only do software on the side but I am finding your videos so helpful. I have followed your videos and got PWM up and running but I cannot get the clock source to change to external trigger mode. A video on ETR would be so helpful thanks.

  • @cosmoalien12345
    @cosmoalien12345 4 ปีที่แล้ว +1

    hi

  • @beypazariofficial
    @beypazariofficial 2 ปีที่แล้ว

    low level programming
    low level
    low level

  • @last-zura8899
    @last-zura8899 ปีที่แล้ว +1

    Thank you