UM0306 Universal synchronous asynchronous receiver transmitter (USART)
389/519
Mantissa (USARTDIV) = 27d
Fraction (USARTDIV) = 12/16 = 0.75d
Therefore USARTDIV = 27.75d
Example 2:
To program USARTDIV = 25.62d,
This leads to:
DIV_Fraction = 16*0.62d = 9.92d, nearest real number 10d = Ah
DIV_Mantissa = mantissa (25.620d) = 25d = 19h
Then, BRR = 19Ah
Example 3:
To program USARTDIV = 50.99d
This leads to:
DIV_Fraction = 16*0.99d = 15.84d => nearest real number, 16d = 10h
DIV_Mantissa = mantissa (50.990d) = 50d = 32h
Note: The Baud Counters will be updated with the new value of the Baud Registers after a write to
BRR. Hence the Baud Register value should not be changed during a transaction.