cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 UART at 20 Mbps

AncoMarzio
Associate

Hello,

I'm looking for an STM32 evaluation board that supports UART communication at 20 Mbps. Ideally, having two separate UART ports would be nice, but one would also work.

I've read that the STM32H7 family supports higher UART speeds, but it seems they max out around 12 Mbps. If no MCU supports this rate, would it be possible to overclock an MCU to achieve a higher UART data rate?

Thanks in advance for your help!

6 REPLIES 6
gbm
Lead III

To achieve 20 Mb/s, STM32 UART must be clocked at 160 MHz. Really strange idea, even if possible.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

Explain WHY?

20 Mbps is just rediculously high for async comms, most use synchronous methods, and ones where data integrity is slightly higher up the priorities list. And PLL's are used rather than shot-gunning the edges and sample points.

The accuracy and stability of the clocks at both ends becomes very important.

.. man with two clocks never knows exactly what time it is exactly ..

Segal's Law

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AncoMarzio
Associate

@gbm @Tesla DeLorean  thanks for your answers.

I have a UART to RS422 transceiver that reach a 20Mbps data rate.

In the final architecture, I do not have problems to reach such UART speed, but I'd like to test the transceiver first while keeping costs as low as possible. An STM32 Nucleo evaluation board seems like the best fit for this test (and for additional tests I’ll be conducting later).

@gbmis it possible to clock the STM32 UART at 160 MHz? Have you tried this before? Is the STM32H7 family a good fit for this test?

Hello,


@AncoMarzio wrote:

@gbmis it possible to clock the STM32 UART at 160 MHz? Have you tried this before? Is the STM32H7 family a good fit for this test?


You didn't mention which H7 device you are referring to. But for STM32H74x/STM32H75x you cannot exceed 125MHz at VOS0 from RM0433.

SofLit_0-1731316817159.png

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Possible with H5 and U5 series.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

LPUART may be more flexible in achieving high baudrate-to-clock ratio, for example this is quote from the 'L4 RM:

waclawekjan_0-1731332296231.png

That does not mean it's a good idea overall.

JW