STM32 Tutorial : Clock, AHB & APB Buses configuration (Part2: Writing the Code)

  Рет қаралды 36,713

TizanaMenYo

TizanaMenYo

Күн бұрын

Пікірлер: 46
@YeliseiMelnichuk
@YeliseiMelnichuk 8 жыл бұрын
I have some problems with English listening because I'm from Russian-speaking country, but I understand your speaking very good. Your lessons is very informative. Thanks.
@ridhoazharmegantara757
@ridhoazharmegantara757 4 жыл бұрын
ithink u may use subtitle in english
@SmokeDankTrees
@SmokeDankTrees 7 жыл бұрын
This is extremely clear and helpful. Thank you very much. Please do more!
@eugeneroh3003
@eugeneroh3003 5 жыл бұрын
Really helpful to understand the clock system. For some videos, I was having a tough time to understand the concept, but this video provides the figures and flowcharts which suggest the entire context to understand very clearly. Thank you
@dipankarpanda8414
@dipankarpanda8414 7 жыл бұрын
Mr. TizanaMen Yo, you have done a really great video here. All steps are very very clear. Really impressive. Thanks a lot.
@Minas841
@Minas841 6 жыл бұрын
Thank you very much. I have struggled with the initial steps and you were very helpful. Please keep posting videos like this one.
@ericL5302
@ericL5302 9 жыл бұрын
This is a great video. A very hand-on approach. Thanks!
@ajinkyabansod5169
@ajinkyabansod5169 4 жыл бұрын
Very thoroughly explained.. I'd like to suggest keeping same volume for audio effects and your voice. Thank you for making this.. :)
@Nanaki278
@Nanaki278 6 жыл бұрын
Thank you so much. Finally I figured out this "PLL". In total, it was to look in the reference manual and read that PLLN can not be less than 192. Actually because of this, nothing wanted to start. = ^ _ ^ =
@pavelonetchiq106
@pavelonetchiq106 9 жыл бұрын
great explained STM32F4 clocks settings. Thank you.
@RuwanthaPushpika
@RuwanthaPushpika 9 жыл бұрын
really great tutorial... thank you.. it's quite hard to find a good tutorial like this.... :)
@abinjohnthomas3079
@abinjohnthomas3079 9 жыл бұрын
Great tutorial....I has been looking for it ....very clear explanation. Thanks you
@EdwinFairchild
@EdwinFairchild 9 жыл бұрын
Amazing amazing amazing! You just help me understand some very difficult concepts. thank you very much , even though i am using Amtel Sam microcontrollers i still understood a lot!!!!!!!!!!! I will check out the Stm32 boards
@MuhammadSalman-gv6mx
@MuhammadSalman-gv6mx 2 жыл бұрын
Wonderful Explanation, Thank you very much
@hakanaydnbh
@hakanaydnbh 9 жыл бұрын
it's very useful video. it has allow me understand what PLL is. Thank you for this video.
@giannisloukovitis1256
@giannisloukovitis1256 6 жыл бұрын
Thank you. Very nice explanation of everything
@frankaalbers1099
@frankaalbers1099 9 жыл бұрын
Thanks ! This really helped. Following is an update using HAL library coding. The idea is still exactly the same though. For the STN32F401RET6 / SysCLK = 84 Mhz /* Set Oscillator and clock structures */ RCC_OscInitTypeDef RCC_OscInitStruct; RCC_ClkInitTypeDef RCC_ClkInitStruct; /* HSE = 8 Mhz , HSI = 16 Mhz */ /* Enable HSE Oscillator 8 Mhz */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; /* Settings to get PLL frequencies of and */ RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; /* HSE devider. Result needs to stay between 1 and 2 Mhz */ /* PLLM output = 8 Mhz / PLLM = 1 Mhz */ RCC_OscInitStruct.PLL.PLLM = 8; /* PLLMout multiplier. Result needs to stay between 192 and 432 Mhz */ /* The actual PLLN number can aslo only be between 192 and 432 */ /* PLLN0ut = PLLMout * PLLN = 336 Mhz */ RCC_OscInitStruct.PLL.PLLN = 336; /* PLLNout devider for SysCLK. Devider can only be 2, 4, 6 or 8 */ /* SysCLK = PLLNout / 4 = 84 Mhz */ RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4; /* PLLNout devider for USB OTG FS. Between 4 and 15 */ /* USB = PLLNout / 7 = 48 Mhz */ RCC_OscInitStruct.PLL.PLLQ = 7; /* Check if oscilators are OK when setting */ if(HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2 clocks dividers*/ RCC_ClkInitStruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2); RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; /* AHB = SysCLK / 1 = 84 Mhz */ /* This can be DIV1, 2, 4, 8, 16, 64, 128, 256, 512 */ RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; /* APB1 = SysCLK / 2 = 42 Mhz */ /* This can be DIV1, 2, 4, 8, 16 */ RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; /* APB2 = SysCLK / 1 = 84 Mhz */ /* This can be DIV1, 2, 4, 8, 16 */ RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; /* wait state for Vdd = 2.7 to 3.6 SYSCLK = 84Mhz is 2 (see datasheet) */ if(HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { Error_Handler(); }
@rostislavjandejsek2665
@rostislavjandejsek2665 9 жыл бұрын
Really clearly explained, thanks!
@sbylk99
@sbylk99 8 жыл бұрын
Great tutorial! very informative!
7 жыл бұрын
Great tutorial, thanks a lot!
@berkanonderkaramelek8866
@berkanonderkaramelek8866 7 жыл бұрын
Thank you so much for your explanation! Really useful and full of information :)
@EmbSysDev
@EmbSysDev 6 жыл бұрын
Thank you very much! Please do more! Also if you could do some tutorials on using AC6,would be great.
@muratpinar7478
@muratpinar7478 4 жыл бұрын
Excellent, thank you.
@emretuncay394
@emretuncay394 7 жыл бұрын
thank you this is very benefitial for me.
@markrussell5587
@markrussell5587 9 жыл бұрын
So great THANKS!!
@binhvuthanh5080
@binhvuthanh5080 4 жыл бұрын
so amazing!!! Thank you.........
@marianojb7
@marianojb7 8 жыл бұрын
Awesome!! Thanks
@naasikhendricks1501
@naasikhendricks1501 7 жыл бұрын
this Course is good in the info department. it would be nice if you have more Labs Session using Library from Scratch.
@tolgacansabah1310
@tolgacansabah1310 6 жыл бұрын
thanks for video
@phankhanh8444
@phankhanh8444 5 жыл бұрын
Many thanks sir
@saranzeb2183
@saranzeb2183 5 жыл бұрын
how to create the empty project i cant find the link ?
@javijap424
@javijap424 4 жыл бұрын
Hi TizanaMenYo, great tutorial! what program have you used to make the PLL diagram animation?
@TizanaMenYo
@TizanaMenYo 4 жыл бұрын
i used adobe after effects
@krish2nasa
@krish2nasa 8 жыл бұрын
Thank you
@dilipsilga
@dilipsilga 9 жыл бұрын
Great
@massimilianogilli1164
@massimilianogilli1164 7 жыл бұрын
Why should a developer choose a lower frequency ? Is it due to power consumption? Moreover why should a developer use the external oscillator direclty rather than the PLL path?
@jonnyreh001
@jonnyreh001 8 жыл бұрын
Isnt there error? This is nonsence ... RCC_GetFlagStatus(RCC_FLAG_PLLRDY == RESET); Mabye you ment this: ? while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET);
@gabrielezampieri9221
@gabrielezampieri9221 8 жыл бұрын
was about to comment about that. Of course the compiler doesn't give error becouse seems that the param is in a valid range (should be 0) so de functionality of the CPU could be instable. Your solution is the right one. while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET); //wait until RCC_FLAG_PLLRDY is resetted Just a note: avoid this kind of waiting becouse the cpu wastes cycles, do it in that way only when there's no other option. This is a valid context to use a blocking cycle ;)
@EmbSysDev
@EmbSysDev 5 жыл бұрын
Yes,I was about to post a query on this,and then saw these posts. Surprising how he made an error on this,because otherwise it is an excellent tutorial!
@bincheng2203
@bincheng2203 6 жыл бұрын
nice! Thanks!
@oas3610
@oas3610 7 жыл бұрын
Thank you very much.
@deadpoems
@deadpoems 9 жыл бұрын
Sorry my friend im begginer in this, anyone can aswer to me if st has no software for programming? thank you
@youssefelmzaiti3201
@youssefelmzaiti3201 7 жыл бұрын
hello , how configure a mapping please
@alextrezvy6889
@alextrezvy6889 9 жыл бұрын
Next time, please, set lower resolution on your screen during recording.
@adambzh
@adambzh 5 жыл бұрын
really like the video, but there just too much emmmmmm, hmmmmmmmmmm, ahhhhhhhhhhhhhhhhhhh
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Going from Arduino to ARM
7:59
0033mer
Рет қаралды 94 М.
How To Program A STM32 Timer Using Registers
5:08
Z-The-Programmer
Рет қаралды 5 М.
Understanding ARM Cortex MCU Bus Matrix
7:12
Fastbit Embedded Brain Academy
Рет қаралды 10 М.
Experimenting with Buses and Three-State Logic
18:43
Sebastian Lague
Рет қаралды 626 М.
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 551 М.
STMStudio Tutorial
15:08
Web learning
Рет қаралды 38 М.
Getting started with STM32CubeMX
9:20
STMicroelectronics
Рет қаралды 160 М.
On The Turing Completeness of PowerPoint (SIGBOVIK)
5:34
Tom Wildenhain
Рет қаралды 1,1 МЛН