MICROPROCESSOR AND MICROCONTROLLER

8051 SERIAL PROGRAMMING

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What should be done if we want to double the baud rate?
A
change a bit of the TMOD register
B
change a bit of the PCON register
C
change a bit of the SCON register
D
change a bit of the SBUF register
Explanation: 

Detailed explanation-1: -In order to double the baud rate, we need to set the SMOD bit of the PCON register to 1. This will enable double baud rate mode and increase the baud rate by a factor of 2.

Detailed explanation-2: -Using SCON, one can control the Operation Modes of the Serial Port, Baud Rate of the Serial Port and Send or Receive Data using Serial Port. SCON Register also consists of bits that are automatically SET when a byte of data is transmitted or received.

Detailed explanation-3: -The internal UART block of 8051 divides this machine cycle frequency by 32, which gives the frequency of 28800 Hz which is used by UART. To achieve a baud rate of 9600, again 28800 Hz frequency should be divided by 3. This is achieved by using Timer1 in mode-2 (auto-reload mode) by putting 253 in TH1 (8-bit reg.)

Detailed explanation-4: -In this standard, data are sent over a single line from a transmitting device to a receiving device in bit serial format at a prespecified speed, also known as the Baud rate, or the number of bits sent each second. Typical Baud rates are 4800, 9600, 19200, 38400 etc.

There is 1 question to complete.