2022-03-23 06:16 AM
2022-03-23 06:35 AM
See the "Output timing characteristics" in the datasheet.
It depends on how much capacitance is on the line, the voltage level and speed setting, but generally on the order of 100 MHz.
2022-03-23 06:50 AM
Hi TDK,
Thank you for response.
I want to verify the system clock running frequency of STM32H7B3 MCU (It support up to 280MHz).
For example, If we configured SYSCLK is 256MHz in STM32CubeMx Software. How we can ensure the MCU is running at 256MHz clock speed.
uint32_t HAL_RCC_GetSysClockFreq(), by using this function call we can get SYSCLK frequency using register calculation. But, we can't to check the visual results like oscilloscope output.
I tried to measure the system clock by generating MCU clock signal from MCO1 GPIO pin. Normally, GPIO have some speed limitation. What is the maximum speed we can measure using this MCO1 pin?
2022-03-23 07:08 AM
> How we can ensure the MCU is running at 256MHz clock speed.
Typically MCO is divided down before being output to get the frequency to a reasonable amount.
Also doesn't look like SYSCLK is an option for MCO1.
2022-03-23 07:11 AM
Is there any other way to ensure the MCU running frequency?
2022-03-23 07:19 AM
Sure, there are many. MCO is probably best though. Toggle a pin at an expected frequency, monitor it, and verify the observed frequency matches what is expected.
2022-03-23 08:10 AM
Hello,
You can use MCO2 to output an image of the system clock:
Select a prescaler value in a such way to not exceed 100MHz.
2022-03-23 10:21 AM
Additionally it can be done with any timer with an output channel. Or a simple blinky based on SysTick and an oscilloscope, logic analyzer or anything to measure the period. Typically even a human eye is enough to determine the correct frequency with some +/-10% accuracy.
2022-03-23 11:23 AM
Well the entire design is synchronous it shouldn't be hard to expose a measurable clock from any number of sources.
The MCOx pins typically the easiest and expose internal clock nodes, but obviously any of the TIM's would divide down an APB or peripheral clock, and the register can be decomposed/decoded.
There are ways of using a couple of TIM to measure LSE/LSI vs higher speed sources on most STM32. Review Reference Manuals
The RTC can also interrupt vs SysTick, Free-running TIM, or DWT CYCNT too.
2022-03-23 11:41 AM
Bit banging the GPIO on the H7 is a lot slower than other STM32, parked off of AHB4/APB4.
Ditto driving with DMA and Pattern Buffers.