1.11M Members

8051: Why do we divide by 32, when using the timer for serial communication?

 
0
 

Hi, I hope I'll get the answer here. Please tell me why do we divide by 32, when using the timer for serial communication to calculate the baud rate?

Thanks,

 
0
 

The baud rate in bits/sec is the timer overflow frequency divided by 32. It has to be divided by some number because the timer works faster than the standard serial port baud rates. It;s divided by 16 if SMOD is set which doubles the baud rate.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article