2019-04-16 09:12 PM
STM32G070. It is said there are 4 USARTS in the datasheet. For USART3/4, there is no place talking about the clock source for them. Would you please tell us what's the clock source for the USART3/4?
Solved! Go to Solution.
2019-04-17 03:29 AM
From RM0444, USART block diagram subchapter:
When the dual clock domain feature is disabled, the usart_ker_ck clock is the same as the usart_pclk clock.
(and from the table in USART implementation subchapter, USART3/4 don't have the dual clock domain feature).
In other words, USART3/4 are clocked from the respective APB clock.
JW
2019-04-17 03:29 AM
From RM0444, USART block diagram subchapter:
When the dual clock domain feature is disabled, the usart_ker_ck clock is the same as the usart_pclk clock.
(and from the table in USART implementation subchapter, USART3/4 don't have the dual clock domain feature).
In other words, USART3/4 are clocked from the respective APB clock.
JW
2019-04-17 03:50 AM
USART3 and USART4 both are clocked from APB clock, You can set the 18th and 19bit bit in the (RCC_APBENR) register to enable the clock for USART3 and USART4.
Hope that help you!
Best of luck!
Muhammad Moiz khan