What is written to the USART_BRR register?
What is this value that is written to the USART_BRR register?
What is it for?
I don’t understand why the calculation is done using the formula: fclock / (the divisor, in my formula it is 5 * baudrate)
For example, here is an example calculation:
I made the numbers much smaller to simplify the example.
fclock / (divisor, in my formula it is 5*baudrate)
fclock ==Clock frequency==30 Hertz.
Desired baudrate==2
Divisor == 5
30 fclock / 2 baud * 5 divisor==3 this number is written to the USART_BRR register.
3 what is this number?
What is it for?
BRR== Baud Rate Register. But 3 is not the baudrate I needed. I have 2 desired baudrate.
Or does it not matter what my desired data rate is?
Why would I then enter the desired baud rate if that's the case?
Does this formula calculate the speed that will be applied, and not the speed that I need?
-----------------------------------
Maybe this will be useful: Shown in the picture
If a marker is set every 3 bits at a clock frequency of 30 Hertz, based on these markers, we get a speed of 10 baud.
But I needed a speed of 2 baud, this formula: fclock / (divisor, in my formula it is 5 * baudrate) does not produce this calculation.
