STM32 UART: Register Configuration, Transmission and Reception

preview_player
Показать описание
This tutorial will teach you have to configure UART (USART) registers of an STM32 microcontroller to get the UART peripheral up and running. The tutorial will then show how to write transmission and reception functions for the UART peripheral to enable communication between the microcontroller and other devices using this serial protocol. Finally, the tutorial will demonstrate how the microcontroller communicates using UART, transmitting data to, and receiving data from a computer.

The tutorial covers the registers in sufficient detail to help you understand why a specific bit is set or cleared in the registers.

The microcontroller used is the STM32L432KC but the registers, programming, and configuration is the same (or similar) across the stm32 boards.

Source code for this tutorial is available at:

Timestamps:
00:00 - Pin Configuration
03:25 - Control Register 1
08:57 - Control Register 2
11:23 - Control Register 3
14:47 - Setting Baud Rate
15:58 - Enabling The Peripheral
16:22 - Receiving Data
17:31 - Transmitting Data
18:54 - Demonstration Of The Driver
Рекомендации по теме
Комментарии
Автор

Great video! Very informative! Looking forward to more register level programming tutorials!

sumedhburbure
Автор

This is excellent! Most others are using cubeide which is fine but more stuff to learn. I like to just look at the datasheets although these are a bit gnarly.

adammontgomery
Автор

For calculating the baud rate... why the input frequency is 4MHz when USART1 is connected to ABP2 which frequency is 80MHz?

gepeto
Автор

Very very good sir
Plz make more videos, on UART, SPI, I2C, CANN, EXTRA by St link, and stlink v2

sudheerkumar
Автор

please take more video about STM32 Bare metal

quangdat
Автор

The Mic quality though! ASMring into my ear

MoleRat
Автор

hello, a very good job, please continue making videos, do you have any community to join ?like discord or something

h_silochi