Hi,
I have some doubts regarding the Baud Rate calculation for MSP430 IrDA,
I am using the oversampling mode with 8MHz clock and baud rate 115200bps
I am referring to the below user guide's
http://focus. ti.com/lit/ ug/slau144e/ slau144e. pdf
formula for Oversampling Baud Rate:(page 476)
UCBRFx = round( ( (N/16) − INT(N/16) ) * 16 )
Using the above formula,I am getting the values as
UCBRSx=4 and UCBRFx=5 (For 8MHz clock and speed 15200bps)
But according to the "Table 15−5.Commonly Used Baud Rates, Settings, and Errors, UCOS16 = 1"(page 482)
the values are UCBRSx=5 and UCBRFx=3 (for 8MHz clock and speed 15200bps),
and aslo using these values I am getting error in the commumication whereas the
one which I calculated from the formula does well.
Does anybody know which is the correct one, and the best way to
to calculate UCBRSx and UCBRFx values.
In the above calcuation I used the formula "UCBRSx = round( ( N − INT(N) ) * 8 )"
to calculate UCBRSx which is described in "Low-Frequency Baud Rate Mode Setting" section.
Is this a right formula to calculate UCBRSx in oversampling mode?
Thankyou in advance