Skip to main content
subramani kp
Associate II
March 1, 2018
Solved

STM32L431VCT6 USART as UART port configuration

  • March 1, 2018
  • 3 replies
  • 2197 views
Posted on March 01, 2018 at 12:31

Hi 

How can we use USART as UART port in STM32L431VCT6 micro controller

I am looking for connecting two STM32L4 micro controller with TX, RX and Ground lines.

Already UART port is being used for other purpose and have only USART port

regards

subramani

#stm32l431vct6-usart-as-uart-port-configuration
This topic has been closed for replies.

3 replies

Andrew Neil
Super User
March 1, 2018
Posted on March 01, 2018 at 14:21

Essentially the same question:

https://community.st.com/0D50X00009XkWcwSAF

Are you two in the same class?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
March 1, 2018
Posted on March 01, 2018 at 14:44

Ok, and what is the technical hurdle here? You can initialize all the USART, UART and LPUART using the UART library code in the Asynchronous case. They also function in materially the same way.

You will need to enable clocks, and pins to support each instantiation.

Suggest you confer with your supervisor, teacher or project lead, and review the manuals for the part and the examples furnished under the HAL/CubeMX repositories.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
March 2, 2018
Posted on March 02, 2018 at 10:29

I would say that probably 99.9% of USART usage is as a UART?

Who uses synchronous 'RS232' (sic) these days ?!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
waclawek.jan
Super User
March 3, 2018
Posted on March 03, 2018 at 08:56

I use the STM32 USART module in synchronous mode a lot, to feed various shift-register-based peripherals, as SPI tends to be a much scarcer peripheral on the STM32s.

JW

Bogdan Golab
Lead
March 3, 2018
Posted on March 03, 2018 at 11:07

I use SPI all the time for various sensors but I have never thought about using USART in synchronous mode for that purpose.

If you could share some thoughts what makes you use USART instead of SPI.

Thanks in advance,

Bogdan