How do I set the UART baud rate?
For an 'N/2' UART (example: UART1 on the C8051F12x), the minimum clock divisor for baud rate generation is 2.
The UART baud rate is determined by the overflow rate of Timer 1. Specifically, the UART baud rate is equal to the Timer 1 overflow frequency divided by 2.
For example, to configure the UART for a baud rate of 9600 bps, you would configure the overflow rate of Timer 1 to equal 9600 * 2 = 19.2 kHz.