The 8051 serial port supports full duplex operation, with transmit and receive buffers that are available via the SBUF register. Each buffer has an interrupt flag, symbolised as TI and RI, respectively. i) Briefly state what is meant by full duplex communication. ii) Write a small assembly language program to show how the serial interface can be used for the reception of characters using the serial interface
The 8051 serial port supports full duplex operation, with transmit and receive buffers
that are available via the SBUF register. Each buffer has an interrupt flag, symbolised
as TI and RI, respectively.
i) Briefly state what is meant by full duplex communication.
ii) Write a small assembly language
used for the reception of characters using the serial interface interrupt. The
received character(s) should be copied into R0. You must show how the
interrupt is configured; however, you can omit all details of the timer setup.
iii) Assuming this code is run on a classic 8051 using a 16 MHz crystal, show how
you would configure Timer 1 for a baud rate 9600 bits/sec and calculate the
resulting percentage error. Assume the serial interface is set for 8-bit UART mode,
the SCON bit is 0, and the timer is to operate in 8-bit auto-reload mode. You must
show the values of SCON, TCON, TMOD and TH1.
Step by step
Solved in 3 steps