stm32 - How to find value of APB1 Clock in STM32F429 -
can tell me how find apb1 clock frequency of stm32f429? , how calculate baud rate of stm32f429.
p.s...please dont tell refer reference manual,as works done , tell me exact value of apb1 clock frequency
thankyou
using standard peripheral library, include stm32f4xx_rcc.h
call void rcc_getclocksfreq(rcc_clockstypedef* rcc_clocks)
, fill in structure pass values of bus clocks.
the correctness of answer depends on value set hsi_value
or hse_value
(a global uint32_t
set value in hz of system's oscillator). can find in application's startup c file.
you should review values in startup file ensure core clock generated source expect (usually pll via internal (hsi) or external (hse) crystal). if correct , match aforementioned global constant answers given rcc_getclocksfreq
correct.
Comments
Post a Comment