Automatic BAUD rate generator