This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
uart_baud_rate [2011/03/04 18:38] – ba | uart_baud_rate [2011/03/07 12:09] – ab | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Possible baud rates for UART (RS232, RS485, RS422, virtual COM port over USB) ====== | ====== Possible baud rates for UART (RS232, RS485, RS422, virtual COM port over USB) ====== | ||
+ | This site describes the difference between desired and actually achievable baud rates.\\ | ||
+ | (Important only for high baud rates) | ||
+ | |||
===== Formula ===== | ===== Formula ===== | ||
Line 7: | Line 10: | ||
baud rate = [[processor_speed|peripheral speed]] / (16 * divisor value) | baud rate = [[processor_speed|peripheral speed]] / (16 * divisor value) | ||
- | The divisor value is calculated by the library function | + | The divisor value is automatically |
Since the divisor value is an integer value not every baud rate can be set to the exact value. | 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 higher the baud rate, the smaller the chance to be able to set a matching baud rate at the other side of the line. |