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 !!
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 RU-vid, 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.
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 :]
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!
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
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
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.
محمد أحمد 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