You should be able to do this easily.
The method depends on whether or not you are using software (SERIN2/SEROUT2) or hardware (HSERIN/HSEROUT) UARTS.
For SERIN2/SEROUT2 you can use the formula given on page 129 of the PBP manual -
MODE = (1000000/baud) - 20
For HSERIN/HSEROUT check the datasheet for your processor. You will have to directly set BRGH and SPBRG according to your oscillator frequency.
Bookmarks