Sei sulla pagina 1di 2

Branch – Electrical & Electronics Engineering

Subject: Microcontroller & Embedded System


CT – II Examination

Time – 2 Hrs Max. .Marks: 40


Min. Marks : 14
Note:- All questions are compulsary. Solve any two among (b),(c) and (d)

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)

c) Explain followings(any two) :


i)Spit Timer mode in 8051 Microcontroller.
ii) Interrupt priority in 8051 Microcontroller
iii) Format of PCON register. (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)

b) Draw interfacing diagram of DAC 0808 with


microcontroller 8051and generate saw tooth waveform at the
output of DAC 0808.

OR
Write a program to generate a sine wave. Also show the
calculations for the same. Draw the interfacing diagram. (6)

c) A robotic arm consist of two stepper motors M1 & M2 at two


joints. Each motor has step angle of 2 degree. Write an ALP to
rotate M1 by 64 dgre clockwise and then M2 by 24 degree
anticlockwise. Use 4 step sequence , assume M1 connected to
P1and M2 to port P2.
OR
Interface keyboard of 4*4 matrix & write a program to send the
ASCII code of pressed key to port 0. (6)

d) Design a memory system for 8051 using 8K ROM as code


memory & 4K RAM as data memory.
OR
Write a short note on 8096 microcontroller and the design
parameters of Embedded System. (6)

Potrebbero piacerti anche