Find the TH1 value in decimal to set the baud rate to 9600, if SMOD=1. Assume that XTAL 11.0592 MHz-24-12-3-6
Question
Find the TH1 value in decimal to set the baud rate to 9600, if SMOD=1. Assume that XTAL 11.0592 MHz-24-12-3-6.
Solution
To calculate the TH1 value for a baud rate of 9600 with SMOD=1 and XTAL 11.0592 MHz, you can use the following formula:
TH1 = 256 - (XTAL / (12 * 32 * Baud Rate))
Here, XTAL is the crystal frequency, which is 11.0592 MHz in this case. The baud rate is 9600. The factor of 12 comes from the fact that the 8051 divides the crystal frequency by 12 to get the machine cycle frequency. The factor of 32 comes from the fact that in mode 1, the 8051 serial port operates at 32 times the machine cycle frequency.
Substituting the given values into the formula, we get:
TH1 = 256 - (11.0592 MHz / (12 * 32 * 9600)) = 256 - (11.0592 * 10^6 / (12 * 32 * 9600)) = 256 - (11.0592 * 10^6 / 3686400) = 256 - 3 = 253
So, the TH1 value to set the baud rate to 9600 with SMOD=1 and XTAL 11.0592 MHz is 253 in decimal.
Similar Questions
Find the TH1 value (in hex ) to set the baud rate to 4800, if SMOD=0. Assume that XTAL 11.0592 MHzFDF4E8FA
The bit-rate of a signal is 6000 bps. If 1500 signal elements are sent per second, calculate the Baud Rate and the number of bits in each signal element.
Consider a BPSK modulated signal with bandwidth 19371 Hz i) Calculate the input data rate
f the crystal frequency is 4.5 MHz, determine the time for setting the timer flag for mode 1 if TH0 starts at 00H.1 point12 ms2 ms174.78 ms50 ms
If the crystal frequency is 4.5 MHz, determine the time for setting the timer flag for mode 3 if count in TH0 is 9CH.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.