2016-06-13 09:50 AM
Hi.
I communicate between two F303 parts over UART. Both modules are clocked with 72 MHz. USART1 on one part is on APB2, which runs at 72 MHz. On the other part, USART2 is used, which is on APB1 (36 MHz). But USART2 is configured to run on SYSCLK at 72 MHz, too.Now, my question is, what maximum baud rate could I expect? With 3 Mbits/s it works. With 3.5 Mbits/s, the communication is not always correct and with 4 Mbits/s it is never correct.I have 1m long cable between these two PCBs, connection is RS-422 type.Is 3 Mbits/s maximum what I can get out of these system?Thanks2016-06-13 10:25 AM
The higher the baud rate, the more critical the correct selection of rate with respect to the available clock, as the % error in output rate become dominant due to the granularity of the clock, and the integer division.
36MHz perhaps 2.25 MHz, 72 MHz perhaps 4.5 MHzThe other consideration is the bandwidth afforded by the drivers being used. What is the maximum rating for the RS422 drivers?2016-06-13 11:10 AM
2016-06-13 12:22 PM
USART's on APB1 will nominally run at half the maximum of those on APB2, but depends on the clock settings. OVER8 can also be used.
I'm generally not comfortable with the integrity of asynchronous serial at these rates.