llandy - I was following the convention you adopted in your post
Also, ONLY Comm #2 and Comm #3 have hardware handshake lines! (RTS,CTS) - See GPIO docs.
The max baud on comm. 2 & 3 is 250K and on comm 1 450K <--------
Reply: STMf130RB.PDF
Section 2.3.17
Quote: Universal synchronous/asynchronous receiver transmitter (USART)
One of the USART interfaces is able to communicate at speeds of up to 4.5 Mbit/s. The
other available interfaces communicate at up to 2.25 Mbit/s. <-----
Yes, that's where I got the figures from.
I apologise for my transcription error, I wrote 2.5Megabaud, rather than 2.25Megabaud.
I was probably reading your post where you wrote
max baud on comm. 2 & 3 is 250K
2.5Megabaud and 4.5megabaud, are 10x faster than
max baud on comm. 2 & 3 is 250K and on comm 1 450K
which seemed to be the important point for StephenFromNYC, who is asking using a USART to move data at high speed.
It kinda doesn't matter whether we are using bits/second (as used by ST) or baud, because close enough in this particular case.
baud'' and`bps'' are perhaps one of the most misused terms in the computing and telecommunications field. Many people use these terms interchangeably, when in fact they are not!
Strongly agree.
Baud rate is not
The baud rate is a measure of how many times per second a signal changes (or could change).
So how would you calculate the baud rate for the STM32F 2.25Mbits and 4.5Mbits USARTs, and what values do you get?
Actually, I dont believe that is correct.
Wikipedia has the definition which I was taught, Baud:
In telecommunications and electronics, baud (pronounced /ˈbɔːd/, unit symbol "Bd") is synonymous to symbols per second or pulses per second. It is the unit of symbol rate, also known as baud rate or modulation rate; the number of distinct symbol changes (signaling events) made to the transmission medium per second in a digitally modulated signal
My emphasis on symbols.
The term baud rate has sometimes incorrectly been used to mean bit rate, since these rates are the same in old modems as well as in the simplest digital communication links using only one bit per symbol, such that binary "0" is represented by one symbol, and binary "1" by another symbol. In more advanced modems and data transmission techniques, a symbol may have more than two states, so it may represent more than one bit (a bit (binary digit) always represents one of exactly two states).
So the difference between Baud and bps matters a lot on a system which can have more than two symbols on the line, but when there are only two symbols, voltage high and low, as on a STM32F USART, I believe it is close enough to be treated as equivalent (actually, I was taught it still isn't, but that is looking at small details).
There are other details to consider, but I think the important points are:
1. Baud ~= Bits/second in this case of USARTs
2. 2.25Megabaud and 4.5Megabaud are close enough to correct, and 'The max baud on comm. 2 & 3 is 250K and on comm 1 450K' is 10x too small.