Rewrite the baudrate calculation, tested for 232R and 232H