How is the baud rate of an 8051 serial port determined?
If the designer of an 8051 system is required to transmit data from the serial port to a device (e. g., a monitor), he/she needs to discover what baud rate the device’s serial port operates at and then configure the 8051 serial port to operate at the same baud rate. In mode 1, the baud rate is determined by the overflow frequency of timer 1.
How many I / O ports does an 8051 have?
8051 microcontrollers have 4 I/O ports each of 8-bit, which can be configured as input or output. Hence, total 32 input/output pins allow the microcontroller to be connected with the peripheral devices. Pin configuration, i.e. the pin can be configured as 1 for input and 0 for output as per the logic state.
How are registers used in serial communication in 8051?
Registers used in serial communication 1 SBUF register – These are two buffer registers that hold the received data and the data to be transmitted. 2 SCON register – The control center for serial communication in 8051. 3 TMOD register – The register that controls the speed of transmission. 4 PCON register – Used to double the speed of transmission.
How to read data from a serial port?
Reading data received by the serial port is equally easy. To read a byte from the serial port one just needs to read the value stored in the SBUF (99h) SFR after the 8051 has automatically set the RI flag in SCON.
How is full duplex communication possible in the 8051?
Also, the 8051 supports full-duplex communication which means it can transmit and receive data at the same time. This is made possible by the special design of the SBUF register about which we will talk in the coming sections. The start bit helps in synchronization and is a low signal for a particular duration of time.
Is the SBUF register used only for serial communication?
The SBUF register is an 8-bit register which is used only for serial communication. The SBUF register is actually two registers and not one. Before transmitting or receiving any data placing it in the SBUF register is essential.
https://www.youtube.com/watch?v=lks4E-jt954