I am facing a very silly issue of setting the UART baudrate to 115200. (earlier I was using SMCLK of 1000000 when everything worked fine !!!)
I am having the SMCLK = 24000000 now
and driving the UART system using SMCLk , so following is my calculation to get 115200,
N = 24000000/115200 = 208.3333
UCBRx = INT(208.3333/16) = 13
UCOS16 = 1
UCBRFx = INT( ( (208.3333/16) - INT(208.3333/16) ) * 16) = 0
UCBRSx = 0x49 (from table 18-4 of SLAU272 for fractional value of 0.3333)
thus I have
UCA0BRW = 0x0D;
UCA0MCTLW = 0x4901;
But I am receiving junk data on the hyperterminal.. Please let me know where could be the problem. (I have followed the same steps with SMCLK of 24000000 for baud rate of 9600 which worked fine)
thanks in advance