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.
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 !!
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.
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 :]
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
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
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!
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
محمد أحمد 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
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.
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.
Thank you from Belorussia!
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 !!
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.
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
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 :]
Yes I am making more
16:17 highlight of the video!
Great descriptions as always. Would be great to follow up also with how to set up a custom delay.
Misty Misty sounds good!
Made it! check the new video
Thank you,you video is so clear and great!
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
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
i dont see why not, give it a shot! best way to find out
Thank you . It helped a lot.
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!
Ok nice explanation!
can i have your book which you use when making this vidio. thank you so much!
no book
Is there a video about output compare ?! Really love your work
Thank you!
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
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
Is this cortex m3 or m4?
محمد أحمد m3
@@EdwinFairchild If I wanted to execute an interrupt handler when the timer overflows, what IRQHandler do I call?
محمد أحمد TIMx_IRQHandler and once inside the handler you check and clear the UIF flag in status register.
محمد أحمد 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
VERRRRYYYYYY NICE ,BIG LIKE BUDY
Great Buddy ! Keep it up your good works
nice work, thank you.
Awesome video.
Thank you
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.
hi
low level programming
low level
low level
Thank you