Вы находитесь на странице: 1из 4

Fourth semester BE Degree Examination,

(IV Sem Common to EC/EE/TC/ML)


Model Paper-I

SUB-CODE :06EC-42 SUB: MICROCONTROLLERS

Duration : 3 Hrs Max Marks: 100

Answer any five questions choosing at least two from each part

PART A
QI.(a) Give the comparison between microprocessor and microcontroller.
(6M)
b) With neat block diagram explain the architectural features of 805 I
(10 M)
c) Write the program status word format of 8051 with individual bit
operations (4M)

Q2. a) Differentiate between the following instructions of 8051


microcontroller.
(i) SWAP and XCHG
(ii) MOVX and MOVC
(iii) Bit level ANL and byte level ANL (6M)
b) Write an assembly language program to find the square root of a
number and store in Ro . (5M)
c) What is the principle of stack memory? .Explain with the help of
PUSH & POP instructions. (6M)
d) Calculate time required to PUSH DPTR, B, A, PSW and PC on to the
stack. Assume XTAL= I I .0592 MHz (3M)

Q3. a) What are the different ranges associated with CALL


instructions of 8051?. (6M)
b) Give different steps followed by 8051 in response to interrupt.
How we can enable or disable the interrupts? ( 6M)
c) Write an assembly program to sort an array in an ascending
order. (8M)

Q4. a) What are the different ways to introduce a delay in 8051 C.


Give the three factors which affect the accuracy of the delay.
( 6M)
b) Write an 8051 C program to toggle the bits of P1 ports continuously
with a 250 ms delay. (6M)

c) Write an 8051 C program to get an 8 bit binary number from P1 ,


convert it in to ASCII and save the result in memory location 50H.
(8M)

PART B

Q5. a) What are counting & timing requirements? Explain modes of


operation of timer / counter with relevant block diagrams
(10M)
b) Assuming XTAL = 11.0592MHz generate a square wave of 2
KHz on P2.3 (6M)
c) Assuming XTAL = 11.0592MHz indicate when the TF0 flag is
raised for the following program.
MOV TMOD,# 01H
MOV TL0 # 10H
MOV TH0, # 1CH
SETB TR0 (4M)
Q6. a) What is asynchronous serial communication and data
framing (6M)
b) Write RS232 standards for DB9 pin out. (8M)
c) Write an 8051 C program to receive byte of data serially & put
them on P1. Set the baud rate to 4800, 8 bit data, 1 stop bit.
(6M)
Q7. a) What are external interrupts ? How they are handled in 8051?
How level triggered interrupts are reset? How to set INT1 as edge
triggered interrupt? (8M)
b) Write a program using interrupts to do the following.
i) Receive data serially and set it to P0.
ii) Have P1 port to read and transmitted serially and copy
given to p2.
iii) Make timer 0 generate a square wave of 5 KHz
frequency on P0.1.
Assume XTAL = 11.0592MHz (12M)
Q8 a) Draw the block schematic of stepper motor interfaced to
8051 at port P0 for the rotation of 45 degrees in
anticlockwise direction. Write a C program for the same.
Assume motor step angle as 1.8 degrees per step.
(10M)
b) Interface 2x16 line LCD to 8051. Write a C code to display
“ WELCOME” on LCD. (10M)
Fourth semester BE Degree Examination,
(IV Sem Common to EC/TC/ML)
Model Paper-II

SUB-CODE :06EC-42 SUB: MICROCONTROLLERS

Duration : 3 Hrs Max Marks: 100

Answer any five questions choosing at least two from each part

PART A
Q1.
a) Bring out the architectural differences between Von
Neumann & Harvard architecture. (6M)
b) With neat diagrams, give the details of program memory &
data memory of 8051. (8M)
c) Discuss the Port 0 Configuration of 8051. (6M)

Q2. a) With examples explain different addressing modes used in


8051 (8M)
b) Explain the following instructions
i) SETB ii) XCHD iii) DA A iv) DIV (8M)
c) Write an ALP to convert a 2-digit Hex number to BCD. (4M)

Q3. a) What are the different ranges associated with JUMP


instructions of 8051?. (6M)
b) Explain different interrupts with their priorities . (6M)
c) Assume that the INT1 pin is connected to a switch that is
normally high. Whenever it goes low , it should turn on the
LED. The LED is connected to P1.3 and is normally off. When
it is turned on it should stay on for a fraction of a second. As
long as the switch is pressed low, the LED should stay on.
(8M)
Q4. a) A door sensor is connected to the p1.1 pin and a buzzer is
connected to p1.7. Write an 8051 C Program to monitor the door
sensor & when it opens , sound the buzzer. You can sound the
buzzer by sending a square wave of a few hundred Hz. (8M)
b) Assuming that ROM space starting at 250H contains “ INDIA” . Write
a program to transfer the bytes in to RAM locations starting at 40H.
( 6M)
d) What are the two different ways of transferring a byte of data
serially. Write an 8051 C program to send out the value 44H serially
one bit at a time via P1.0. The LSB should go out first. (6M)
PART B

Q5. a) How TMOD & TCON registers used to configure timers/counters.


(8M)
b) Program Timer 1 in C to be an event counter. Use mode 1 to display
the count on P1 & P2 continuously till the overflow flag set. Set the
initial count to 20,000. (8M)
c) Give the significance of GATE bit in TMOD register. (4M)
Q6. a) Explain serial port in 8051. Explain SCON register in detail. (8M)
b) Write an ALP to transfer the message GOOD LUCK serially at 9600
baud, 8 bit data with 1 start bit and 1 stop bit. (8M)
c) Specify the role of MAX 232 & MAX 233 chips in serial
communication using 8051. (4M)
Q7. a) Give the details of IE & IP SFRs (8M)
b) Write a program in which every 2 seconds the LED connected to
P2.7 is turned ON & OFF four times, while at the same time the
8051 is getting data from P1 & sending it to P0 continuously. Make
sure that the ON and OFF state are 50 ms in duration. (12M)
Q8. a) Interface a4x4 matrix keyboard to 8051. Write the required block
schematic and the C program. (10M)
b) Write a C program for a temperature monitoring system to maintain
the temperature of a oven at reference temperature (Tre f) . if the
measured temperature (TMeas) is larger than Tref at any times
switch off heater to bring down the temperature. if the measured
temperature (TMeas) is below Tref Turn ON the heater to increase
the temperature. Use ADC 804 and temperature sensor LM35, with
Vref/2 = 1.28V at ADC to get digital O/P proportional to
temperature . (10M)

Вам также может понравиться