It'd be nice to know which MCU you're dealing with.
I think xtal is irrelevant. You (and we) need to know the bus clock (BUSCLK), which is a function of several things, like use of FLL, BDIV, etc.
Once you know the bus clock, divide that by 16 and the baud rate you want, and use that value.
For example, for bus of 28MHz (a nice 4MHz-xtal based bus clock for QE128), to get the baud rate 115200, you'd use: 28E6/(16*115200)=15.19~15 (actual baud 116666.66, only 1.27% off) if I got all the math right.
Message Edited by tonyp on 2009-07-30 05:45 PM