This site describes the difference between desired and actually achievable baud rates.
(Important only for high baud rates)
The achievable baud rates can be calculated trough this formula:
baud rate = peripheral speed / (16 * divisor value)
The divisor value is automatically calculated by the ZBrain-SDK according to the desired baud rate.(The divisor value is not user setable).
Since the divisor value is an integer value not every baud rate can be set to the exact value. The higher the baud rate, the smaller the chance to be able to set a matching baud rate at the other side of the line.
The achievable baud rates can be tested with the uart test speed example.
The following table is an example for the ZMC running at full speed (default). The peripheral speed in that case is 131,25MHz
Due to a rounding error the divisor value might be 1 higher than expected. This causes a non significant error for lower baud rates. In order to set the correct baud rate value for higher baud rates (divisor value < 100) , the value from the right column (achieved baud rate) rounded towards next lower integer value should be used in the diagram.
|standard baud rate||divisor value||achieved baud rate|
|vvv might not work vvv|