Skip to main content
Graduate
November 8, 2024
Question

STM32 UART at 20 Mbps

  • November 8, 2024
  • 4 replies
  • 1988 views

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!

    This topic has been closed for replies.

    4 replies

    Graduate
    November 8, 2024

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

    Graduate II
    November 8, 2024

    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

    Graduate
    November 11, 2024

    @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?

    Technical Moderator
    November 11, 2024

    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

    Super User
    November 11, 2024

    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