Depending on the frequency of your chip, you can see how the chip baud rate generator is set up, or look at a serial port initialization code.