STM32 UART Lecture 8 – UART peripheral clock

  • Post author:
  • Post category:Blog

 

UART peripheral clock

 

 

In the previous article, let’s explored the UART functional block. In this article, let’s discuss about the peripheral clock of the USART peripheral.

Now let’s see on which bus the USART hardware is connected. As you can see in Figure 1, USART1 and USART6 are connected to the bus APB2, which can run at a maximum of 84MHz. So ideally, our USART1 and USART6 should be able to run at 84MHz in this case.

UART peripheral clock
Figure 1. USART1 and USART6 connected to APB2 bus.

 

But when the microcontroller is powered by an internal RC oscillator of 16MHz, as shown in Figure 2, the maximum peripheral clock your USART hardware gets is 16MHz since all the bus interfaces will be running at that speed.

UART peripheral clock
Figure 2. Powering microcontroller by internal RC oscillator.

 

Similarly, USART2, USART3, UART4, and UART5 are connected to the APB1 bus (Figure 3), whose maximum frequency is 42MHz. So, the conclusion is that the USART1 and USART6 have the potential to run at higher frequencies than USART2, USART3, UART4, and UART5 since they are on different buses.

In our lab session, since we run our microcontroller using an internal RC oscillator, all USART hardware runs with a peripheral frequency of 16MHz. Remember that the peripheral frequency will be used by the baud rate generation block of the USART peripheral to produce different baud rates.

UART peripheral clock
Figure 3. USART2, USART3, UART4, and UART5 connected to APB1 bus.

 

In the following article, let’s understand the UART Transmitter.

 

FastBit Embedded Brain Academy Courses

Click here: https://fastbitlab.com/course1

 

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.