Professional Documents
Culture Documents
Q4.Describe the block diagram of a CPU system and explain the working of a Program counter
with suitable example
Q2. Discuss the classification of microcontroller on the basis of memory used for storing code
Q3.Draw the block diagram of 8051 and explain its elements in detail
(UEI-609)TUT SHEET NO.3
Q1. To move a value FFh in accumulator and then add 5h to it and check the flag bits.
Q2. WAP to move a value 10h in the RAM location starting from address 30h to 37h.
Q3. WAP to add a value 1h 4 times with value FFh and check the status of PSW bits in each
case.
Q4.Write a program to save a value 30H into registers of register bank 1 and 3 (Previous
questions)
(UEI-609)TUT SHEET NO.4
Q1. WAP to move a value 10h in registor R0,R1,R2 in registor bank 0,1,2.
Q2. WAP to store your name in 50h and your partners name in 80h.
Q3. WAP to add 2 8 bit numbers in case there is a carry store the upper byte in 30h and lower in
31h.
Q4. WAP to add 5 8 bit numbers and store the lower byte in 31h and upper byte in 30h.
Q5. WAP to add 2 16 bit numbers and store the lower byte in 32h ,the middle byte in 31h and
upper byte in 30h.
(UEI-609)TUT SHEET NO.5
Q1.Generate a fibonacci series and store the value from address 30h.
Q2.WAP to add 3 24 bit numbers stored at 20h,30h,40h and store the result at 50h.
Q3.WAP to find out the largest of three numbers and store the result at 30h.
(UEI-609)TUT SHEET NO.6
Q1. Write a program to check if register A contains a value 99H? If so, put FFH in register 1 else
put 00H
Q1.WAP to generate a square wave of 2 sec with duty cycle 50% on port pin 2.0.
Q2.Two switches (DIP) are connected to port pins P2.0 & P2.1 the led is turned on
when one of the switches is in off state but the other is definitely ON state.
Q3.What is the difference between reading a latch and reading the input pin
instructions? Explain using an example and a circuit diagram of internal pin
structure.
Q5. A switch is connected to P1.0. How will you read its status? Illustrate using a
program.
Q6. Can you configure one input pin of a port as an input pin without disturbing
others? Illustrate using a programme.
(UEI-609)TUT SHEET NO.9
Q1Describe the pin configuration of TMOD and TCON registers. What is the
difference between mode1 and mode2 programming?
Q2. Two sensors one at the enterance and the other at exit are bieng used to limit
the entry to 25 persons only .each sensor generates a high to low pulse for every
entry and exit from the room. Write a program to implement this.
Q5.WAP to generate a square wave of frequency 50 khz on port P2.1 and 25 khz
on port P2.2 using only T1 in mode 2 operation.
(UEI-609)TUT SHEET NO.10
Q1. Discuss the structure of IVT. What is the method to disable all the interrupts?
Q2. What is the difference between Edge triggered and low level triggered interrupts?
Q3. Two sensors one at the enterance and the other at exit are bieng used to limit the entry to 25
persons only .each sensor generates a high to low pulse for every entry and exit from the room.
Write a program to implement this using hardware interrupts.
(UEI-609)TUT SHEET NO.11
Q1. Write a program to display your name in the second line of the LCD using both busy flag
reading and time delay technique? Draw the timing diagram to read the busy status and write a
data to the LCD.
Q2.Discuss the technique of interfacing a 4X4 and 8X8 matrix keyboard with 8051.
Q3. Draw the timing diagram to interface ADC0804 with 8051? Illustrate the interfacing of 8051
with ADC0848 in detail. Draw the pin diagram for illustration
Q4.Write a program to display a square wave, a triangular wave and a sinusoidal wave on your
CRT screen using DAC.
(UEI-609)TUT SHEET NO.12
Q1. Describe the architecture of 8086 processor. Discuss its salient features in
detail.
Q2. Explain the different addressing modes along with suitable examples.
Q3. How segment registers are used for calculating 20 bit address in 8086.