Skip to main content
Mmei
Visitor II
Apr 17, 2019 4:12 AM UTC
Solved

Clock source for USART3/4 IN STM32G070

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?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Apr 17, 2019 10:29 AM UTC

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

2 replies

waclawek.jan
waclawek.janBest answer
Super User
Apr 17, 2019 10:29 AM UTC

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

Apr 17, 2019 10:50 AM UTC

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