Quetion Bank

Embed Size (px)

DESCRIPTION

Quetion Bank

Citation preview

MCI question bank1) Draw and explain block diagram of 8051.2) Explain various features of 8051.

3) Draw pin diagram of 8051.

4) List all special function registers along with their physical addresses.

5) Justify Crystal frequency should not be less than 1 MHz.6) Justify Crystal frequency should not be greater than 12 MHz.

7) Why serial communication frequency should be 11.0592 MHz is chosen? If not what are the problems.

8) Draw timing diagram of 1 machine cycle in terms of pulses, states and ALE.

9) Differentiate ceramic and crystal oscillator.

10) How many machine cycles are desired for following instruction.

Mov a,#90h

Mov 80h,#55h

Setb p1.3

Sjmp label

11) Explain PSW register.

12) Auxiliary carry flag is desired for BCD addition. Justify with suitable example.

13) Differentiate Von Neumann and Harward architecture. Which one is better? Why?

14) Explain internal memory (RAM) architecture for 8051 in depth.

15) Explain program memory.16) Interface 4Kbyte of RAM and 32Kbyte of EPROM with 8051.

17) Explain push and pop instructions with suitable example. What is by default location of SP? How it can be modified?18) Explain port 1 structure. Why input pin should be initialized by 1?

19) While reading a port, either latch or pin is being read. How to differentiate?

20) List instructions for reading a latch and reading a pin.

21) Explain read-modify-write feature with suitable example.

22) Explain Port 0 structure. What is need of control signal?23) Explain TMOD register.24) Explain TCON register.

25) Explain timer counter control logic in depth.

26) Explain timer modes (0,1,2,3 any one can be asked)27) Explain counter functioning.

28) Write a program to generate delay of 10 msec using timer 1 in mode 1. Xtal = 6MHz. use polling method for programming.29) Write a program to generate delay of 30 sec using timer 0 in mode 1. Xtal = 12MHz. use polling and interrupt method of programming.

30) Write a program to generate delay of 500 usec using timer 1 in mode 2. Xtal = 6MHz.31) Write a C program to complement pin p1.2 after every 500 msec. use timer 1 mode 1. Xtal = 12 MHz.

32) Switch is connected to pin p2.3. Write a C program to perform following.

If P2.3 = 0set p1.2 = 1 for 10 msec

If p2.3 = 1 set p1.2 = 1 for 40 msec

Use timer 0 in mode 1. Xtal = 12MHz.

33) Write a program to generate 20 KHz of square wave of 50 % duty cycle on pin p1.5. 34) Write a program to generate 5 KHz of square wave of 30% duty cycle on pin p2.3.

35) Write a program to count RPM at pin T0. Use timer 0 in mode 1 as counter.36) Differentiate edge triggered interrupt and level triggered interrupt.

37) Differentiate procedure for Call and Interrupt.

38) A switch is connected to pin p3.2 which is normally high. If it goes low generate a pulse of 1 msec on pin p2.3. Do this continuously.

39) Write a program to display RAJKOT in 1st line and GUJARAT in 2nd line in middle. Use 16*2 LCD. Also draw interfacing diagram

40) Explain pins register select, read write and enable for LCD.

41) Interface 4 LEDs with 8051. Glow one LED at a time with delay of 100 msec in between.

42) Differentiate common cathode and common anode seven segment display.

43) Interface two common cathode seven segment display with 8051. Write a program to display 00 to FF continuously with some delay.44) Explain ADC 0804.45) Interface ADC 0804 with 8051. Use potentiometer as variable resistor with input of ADC and 8 LEDs as output display. Write a program to blink no. of LEDs corresponding to input analog voltage across potentiometer.

46) Interface DAC with 8051. Write a program to generate saw tooth wave.

47) Interface dc motor with 8051. Write a program to rotate it in forward and reverse direction.48) Interface stepper motor with 8051. Write a program to rotate it clock wise and counter clock wise.

49) Interface switch with pin p1.0. and relay with pin p2.7. Write a program to perform following.

P1.0 = 1energize and de energize relay.

P1.0 = 0---

50) Write a program to generate 4 different speeds for dc motor.