#2. Setup Timer to generate Precise Delay || STM32F4 || LED Blink || NO HAL

#2. Setup Timer to generate Precise Delay || STM32F4 || LED Blink || NO HAL

ControllersTech

3 года назад

29,534 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Thanga vignesh C
Thanga vignesh C - 19.10.2023 08:07

Sir you have any idea about mm32f0020 timers , bcz I don't get any source to refer this controller

Ответить
Xuân Đặng Đăng
Xuân Đặng Đăng - 11.10.2023 11:08

Thanks for this video. Can you make a video about timer at mode interrupt? I'm investigate about it, but I can't implement it yet!😢

Ответить
giu peppe
giu peppe - 28.04.2023 22:06

Thanks for your video, i have to make a project were i need the timer works in nanoseconds. Using every 72mhz of bluepill, with no prescale, i should have a precision of 13.8nanoseconds, what do you think? I am scared about Crystal 8mhz because I don't know if it is a bottleneck. I will use a photodiode that is very fast (5nanoseconds) to send value to stm32. Thanks again and keep up the good work!

Ответить
Albin's Classroom
Albin's Classroom - 07.04.2023 11:53

Can i give counter value directly in arr register . for examble tim2->ARR =1000;

Ответить
pravin khatale
pravin khatale - 27.01.2023 11:46

Thanks sir , keep teaching ....

Ответить
Yarilo_Microcontrollers
Yarilo_Microcontrollers - 03.12.2022 10:22

Great explain like programming.

Ответить
Majesty-
Majesty- - 26.09.2022 11:26

how to make the output will be on for 10 minutes?

Ответить
Movies Hunt
Movies Hunt - 15.04.2022 14:51

Hello sir how I reset the timer value to zero after stop when reaching a desired value . When I stop the timer at a certain value then again start the timer ,the timer start from previous value not from zero what to do.

Ответить
FURKAN KARAGÖZ
FURKAN KARAGÖZ - 13.04.2022 13:55

The guide is very clear and detailed. I have got and timing error in my STM32F746ZG. When I have checked the blinking rate with the oscilloscope I observed around 1.8 second delay instead of 1 second. This was due to the reset values of the RCC's PLLCFGR register. I have added a line of code for resetting the PLLCFGR register with 0's before setting the parameters and I finally got the 1 second delay. My take from this issue is that the reset values of the registers need to be considered when we are not resetting every register manually before setting them.

Ответить
4valves
4valves - 17.01.2022 09:22

hello sir...kindly make a video for systick timer in STM32 !!!!

Ответить
4valves
4valves - 15.12.2021 14:30

i cant set the clock frequency in target option . its shows undefined on that position. here im also using mdk v5. please give the solution sir....

Ответить
4valves
4valves - 15.12.2021 14:28

i cant set the clock frequency in target option . its shows undefined on that position. here im also using mdk v5. please give the solution sir....

Ответить
Seif Elkhouly
Seif Elkhouly - 04.11.2021 23:36

Thanks for your helpful videos. I just have one concern. which is to set The UG bit in TIMx_EGR registers to update the registers. otherwise, the update will not going to happen until an overflow or underflow occurs. which could take a very long time if using the 32-bit register, and this is what exactly happened with me until I noticed that in the datasheet.

Ответить
E S
E S - 13.10.2021 08:13

No words, just great video, thank you

Ответить
Eamon Hannon
Eamon Hannon - 11.04.2021 21:02

Very good

Ответить
gajos123456
gajos123456 - 23.03.2021 17:38

How do you know that you need to check bit UIF in TIM6->SR register?

Ответить
Mark Day
Mark Day - 23.03.2021 04:11

I’m curious why TIM6Config waits for UIF to be set? That’s going to end up waiting for 65536 microseconds (when the timer’s counter reaches the ARR value and is reloaded). AFAICT, you don’t need to wait after configuring timers (like you do with the oscillators and PLLs).

Ответить
Karthik PS
Karthik PS - 21.03.2021 21:22

You have done a mistake bro...check the APB1, it is 45Mhz and you are selected 90 for pre scaling. 45 is correct for pre scaling.

Ответить
mazhar imam
mazhar imam - 23.02.2021 17:35

Hi...I am using stm32f407 discovery board. @168mhz. I have done everything right but my LED blinking delay is about 5 seconds, where as it should be 1 second.

Ответить