cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L431VCT6 USART as UART port configuration

subramani kp
Associate II
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
1 ACCEPTED SOLUTION
12 REPLIES 12
Andrew Neil
Evangelist
Posted on March 01, 2018 at 14:21

Essentially the same question:

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

Are you two in the same class?

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist
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 ?!

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

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

Posted on March 03, 2018 at 11:11

Well, there's always one!

🙂

Posted on March 03, 2018 at 11:11

that would be a topic for a separate thread.

maybe a blog post ... ?

Posted on March 03, 2018 at 11:20

Right, blogs posts are better because the the content can be nicely structured.