Match it with some gesstimate values ββand send 0xAA in a loop. Look at tx o / p with a scope, measure the bit width, and then err ... "optimize" the divisor values. This has some advantages over finding / reading / digesting a huge user guide and calculation:
1) It's faster if you're out of luck.
2) If there is no output, you can fix the inconvenient hardware and / or incorrect assignment of initialization and / or registration of the UART and / or the assignment of contacts before spending time on finding out what you did wrong with the baud rate.
3) It always works, even if the data rate formula in manual mode is less than 100%.
4) When you can see that the output is coming out correctly, but there is still no connection, you can blame it on the cables and / or DCE / DTE and / or Hyperterminal and / or all other things that stop the RS232 from working.
source share