3
MCI question bank Week 1 1) Draw and explain block diagram of 8051. 2) Explain various feaures of 8051. !) Draw pin diagram of 8051. ") #is all special funcion regisers along wi$ $eir p$%sical addresses. Week 2 1) &usif% ' (r%sal fre uenc% s$ould no be less $an 1 *+,. 2) &usif% ' (r%sal fre uenc% s$ould no be greaer $an 12 *+,. !) W$% serial communicaion fre uenc% s$ould be 11.05-2 *+, is c$osen /f no w$a are $e problems. ") Draw iming diagram of 1 mac$ine c%cle in erms of pulses saes and #E. 5) Differeniae ceramic and cr%sal oscillaor. )+ow man% mac$ine c%cles are desired for following insrucion. *ov a 3-0$ *ov 80$ 355$ 4eb p1.! 4 mp label Week ! 1) Explain 64W regiser. 2) uxiliar% carr% flag is desired for 7(D addiion. ' &usif% wi$ suiable e !) Differeniae on 9eumann and +arward arc$iecure. W$ic$ one is beer W ") Explain inernal memor% :; *) arc$iecure for 8051 in dep$. 5) Explain program memor%. Week " 1) /nerface "<b%e of ; * and !2<b%e of E6;=* wi$ 8051. 2) Explain pus$ and pop insrucions wi$ suiable example. W$a is b locaion of 46 +ow i can be modified !) Explain por 1 srucure. W$% inpu pin s$ould be iniiali,ed b% 1 ") W$ile reading a por ei$er lac$ or pin is being read. +ow o differeni Week 5 1) #is insrucions for reading a lac$ and reading a pin. 2) Explain read>modif%>wrie feaure wi$ suiable example. !) Explain 6or 0 srucure. W$a is need of conrol signal ") Explain ?*=D regiser.

Quetion Bank Week Wise

Embed Size (px)

DESCRIPTION

week wise

Citation preview

MCI question bankWeek 1

1) 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.

Week 2

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

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

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

5) Differentiate ceramic and crystal oscillator.

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

Mov a,#90h

Mov 80h,#55h

Setb p1.3

Sjmp label

Week 3

1) Explain PSW register.

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

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

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

5) Explain program memory. Week 4

1) Interface 4Kbyte of RAM and 32Kbyte of EPROM with 8051.

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

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

Week 5

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

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

3) Explain Port 0 structure. What is need of control signal?4) Explain TMOD register.5) Explain TCON register.

Week 6

1) Explain timer counter control logic in depth.

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

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

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

2) 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.

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

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

Week 81) Differentiate procedure for Call and Interrupt.

2) 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.

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

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

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

Week 9 1) Differentiate common cathode and common anode seven segment display.

2) Interface two common cathode seven segment display with 8051. Write a program to display 00 to FF continuously with some delay.3) Explain ADC 0804.4) 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.

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

Week 10

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

3) 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---

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