Automatic Baud rate selection in STN2120 logic, i would like to implement in TMS470. So, can someone help for Algorithm
So, there's generally two ways of going about this:


you know which kind of data to expect
you fly blind


Data-aided clock recovery

Honestly, simply try out all rates until you receive something that makes sense. That's an algorithm. It boils down to a loop in which you simply configure the UART RX for a rate, wait for a time and check whether you received something sensible.

Blind clock recovery

If you don't know what kind of data to expect, then you also can't know what kind of data patterns make sense and which not.

In that case, you're running into the classical communications engineering symbol clock recovery problem. There's no "single algorithm" to do that, but it's pretty safe to say that you'll have to sample the RX very fast, and observe at which points a low-> high and high->low transition happens. Then, you'd do a bit of statistic on these times, to figure out how long a symbol probably is. That gives you your symbol rate.

General remark

If you don't know your baud rate, you probably also don't know your frame format, including stop- and parity bits, number of payload bits per frame and inter-frame spaces. That is quite a bit of search space that you're facing there, so this task is less "interesting" engineering as it is "implementing tests for a lot of parameters until things work out for all use cases", and you'll still have some error probability afterwards.