Hi , I want to know why we will divide by 32 while calculating baud rate in 8051. plz reply to my id..
Because, that's the way it is. Same answer for why are there 24 hours in a day.
Jon
The important thing is that a UART needs a clock frequency that is several times faster than the baudrate.
This allows the UART to support a mismatch in baudrate between sender and receiver.
The UART samples again and again until it detects the start of the start bit. Then it keeps counting n clocks / bit until having taken care of the stop bits.
While counting the clocks, the UART takes a couple of samples within each bit window and uses a majority vote to determine if the bit was a zero or a one, improving noise handling.
And by ignoring the start and end of each bit window, the UART can handle that the bit window slowly glides forward or backward because of smaller baudrate errors.
If looking generally at UARTs, it is common that the UART samples 16 times faster than the baudrate. Some may sample faster and a few lower-quality UART may sample slower.
... is described in the so-called "bible" for the 8051.
Links here: www.8052.com/.../120112
See also: http://www.8052.com/tutorial
Thank you
You got this forfree - how about sharing it with the rest of your class: http://www.keil.com/forum/docs/thread16119.asp