Hey there. Thank you for your good explanations that helped me to understand the basics. One thing to note you have to give timer2 prescaler 8399 to achive exact 100 Hz(at least on the datasheet lol). Formula is: Clock/(PSC+1)*ARR. But in your case this was not important.
Assalaamu `Alaykum, I wanted to click "thumb up" button twice, but there's just one such button :)) So I'm writing you a comment to thank you, so THANK YOU!!!
Thank you Mr Yaqoob, i am new in this field but believe me i learnt many things. I have a confusion in mind for example i need 1Mhz sampling frequency the formula : 84MHz/(9+1)(73+1) is correct for F401RE? second thing, what is relation of cycles with prescalar and sampling frequency?
Good question.. Prescalar acts as a divider to clock frequency.. with 0 corresponds to divide by 1. Thus the fact precalar -1. Period acts as a counter on top of prescaled clock. So, it counts from 0 to Counter value. You put -1 here for overflow to happen a cycle earlier. Thus, you get your above 2 formulas
Thanks again for the video I am sting the stuck with 2 doubts, 1) The calculation part for the 100HZ. 2)How are we exactly changing the axis's. suggestion please
why vide is cutted from 2 sides? some times its too difficult to understand why you did that.... why it become so.... and your comments looks like a fake. but in general thanks for tutorials.
thanks, I'm using Nucleo H743zi and I did anything just like video but HAL_ADC_ConvCpltCallback is never called and LED is not blinking, what's my problem?
Hi,I am currently using a 10k potentiometer under 3.3Vdc to act as a speed control knob and sent the corresponding prescaler for corresponding range of voltage input to the led frequency and i am not sure which mode should i use, single or continuous?
ADC values are not real time changing and also LED not toggling on 1000, 1500, 10000( I know LED indication for callback but I'm unable to resolve this problem). My board is Nucleo STM32l053R8.... All helps are welcome :)