Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Q.1 a) In the 8051, what memory area is assigned to the interrupt vector table? Can the
programmer change the memory space assigned to the table? (2)
b) Differentiate interrupt versus polling method and explain the format of IE
register.
OR
Write a program in which the 8051 reads data from P1 continuously while
giving a copy of it to the serial com port to be transferred serially.Assume
that XTAL=11.0592 MHz. Set the baud rate at 9600. (5)
d) Write a program that continuously gets 8-bit data from P0 and sends it to
P1 while simultaneously creating a square wave of 200 microsecond period on
pin P2.1. Use Timer 0 to create a square wave that has a high portion of 1085
microsecond and a low portion of 15 microsecond. Assume XTAL = 11.0592
MHz. Use Timer 1.
OR
Write a program that continuously gets 8-bit data from P0 and sends it to P1 while
simultaneously creating a square wave of 200 microsecond period on pin P2.1. Use Timer 0
to create the square wave. Assume that XTAL = 11.0592 MHz . (5)
Q.2 a) To which register does the SMOD bit belong? State its role in data transfer rate. (2)
b) Explain the following (any two) :
i) Differentiate RS232 and RS422 standards
ii) Pin configuration of MAX 232 chip and its connection with 8051(Null Modem)
iii) GPIB (6)
c) Explain the steps involved in Programming the 8051 to receive and transmit
data serially.
OR
Explain the Importance of the TI & RI flag in serial communication. (6)
.
d) Write a program to send the message "The Earth is but One Country" to serial
port. Assume a SW is connected to pin P1.2. Monitor its status and set the baud rate
as follows:
SW = 0, 4800 baud rate
SW = 1,9600 baud rate
Assume XTAL = 11.0592 MHz, 8-bit data, and 1 stop bit.
OR
Assume that the 8051 serial port is connected to the COM port of the IBM PC, and on the
PC we are using the HyperTerminal program to send and receive data serially. PI and P2 of
the 8051 are connected to LEDs and switches, respectively. Write an 8051 program to
(a) send to the PC the message "We Are Ready"
(b) receive any data sent by the PC and put it on LEDs connected to P1
(c) get data on switches connected to P2 and send it to the PC serially.
The program should perform part (a) once, but parts (b) and (c) continuously. Use the 4800
baud rate. (6)
Q.3. a) Write the function of ALE, SOC and EOC pin of ADC 0808/0809. (2)
OR
Write a program to generate a sine wave. Also show the
calculations for the same. Draw the interfacing diagram. (6)