You are on page 1of 2

Final term (Spring 2012) Micro Processor Based Systems (EE-401) NOTE: Attempt all questions Time allowed: 02

Max marks: 50 Hours NOTE: ATTEMPT ALL QUESTIONS Q#01 Short Questions I)

Write a program that 1) Creates a square wave of 50 % duty cycle on bit 0 of port 1 and 2) Creates a square wave of 66% duty cycle on bit 3 of port 1. (20)

II) III)

Explain the types of directives? Write anyone program that uses only one directive out of these directive Assume that bit P2.3 is an input and represents the condition of an Oven. If it goes high, it means that the oven is hot. Monitor the bit . Whenever it goes high, send a high-to-low pulse to pin P1.5 to turn on a buzzer. A switch is connected to pin P1.7 and an LED to pin P2.0. Write a Program to get the status of the switch and send it to the LED. Explain the following in detail I) Data Pointer II) Stack Pointer III) stack IV) PSEN pin V) 8052 microcontroller

IV) V)

Q#02 a) Explain Different types of timers in detail (3) b) Write an assembly language program to display NO POWER on any LCD interfaced with 8051 microcontroller. Comment the programm (7)

Q#03 a) what are the different interrupts in microcontroller 8051? List them. Differentiate b/w interrupts and polling also explain the steps to enable an interrupt. (4) b) Write an ALP for traffic signal such that RED light remains ON for 8 seconds, RED and Yellow remain ON for 2 seconds and green light remain ON for 4 seconds. (6) Q#04 a) what are edge triggered interrupts and level triggered interrupts? (4)

b) Assuming that P3.3 (INT1) is connected to a pulse generator, write a program in which a pulse will be send to P1.3, which is connected to a low active LED. In other words the LED is turned on and off at the same rate as the pulse is applied to the INT1 pin. Perform this by both edge triggered interrupt and level triggered interrupt. (6)

You might also like