Start New Discussion within our Software Development Community

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?


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.

This article has been dead for over six months. Start a new discussion instead.