Hi,
If you want to get 115200 baud rate, the USART driving clock must be 115200*16=1.8432MHz.
As you know that the Fractional Rate Generator can get a ratio between 1 and 2.
If the IRC is 12MHz, you set up the UARTCLKDIV,=12, the input clock frequency of Fractional Rate Generator module will be 1MHz.
Set up the UARTFRGMULT=215, set up the UARTFRGDIV=255, using the equation
the Fractional Rate Generator ratio will be (1+MULT/DIV)=1+215/256=1.84
so the usart clock frequency will be 1MHz*1.84=1.84mHz. If you set the uart buad rate register BRG=1, you will get 115200 baud rate.
Pls have a try
Hope it can help you
BR
XiangJun Rong
