2018-03-01 03:31 AM
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-configurationSolved! Go to Solution.
2018-03-01 10:44 AM
Got the idea on USART using the link
thanks
2018-03-01 05:21 AM
Essentially the same question:
https://community.st.com/0D50X00009XkWcwSAF
Are you two in the same class?
2018-03-01 05:44 AM
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.
2018-03-01 10:44 AM
Got the idea on USART using the link
thanks
2018-03-02 01:29 AM
I would say that probably 99.9% of USART usage is as a UART?
Who uses synchronous 'RS232' (sic) these days ?!
2018-03-03 12:56 AM
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
2018-03-03 03:07 AM
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
2018-03-03 03:11 AM
Well, there's always one!
:)
2018-03-03 03:11 AM
that would be a topic for a separate thread.
maybe a blog post ... ?
2018-03-03 03:20 AM
Right, blogs posts are better because the the content can be nicely structured.