Name of the College : Valliammai Engineering College
University : Anna University
Department : Electronics & Instrumentation Engineering
Subject Code/Name : ET7102-Microcontroller Based System Design
Degree : M.E C&I
Year : I
Semester : I
Document Type : Question Bank
Website : valliammai.co.in
Download :https://www.pdfquestion.in/uploads/va…m%20Design.pdf
Valliammai Micro controller Based System Design Paper
Unit-I
8051
Architecture :
Part – A :
1.What is the function of the bits PSW.3 & PSW.4?
2.Find the value of the PSW register after the execution of the instructions.
MOV A, #95
ADD A, #120
Related : Valliammai Engineering College CL7004 Robotics & Control M.E Question Bank : www.pdfquestion.in/2825.html
3.What is the use of SFR in 8051?
4.List all the SFRs involved in 8051.
5.What are the addressing modes supported by 8051?
6.Write one instruction each using the following addressing modes.
a.Immediate
b.Register
c.Register indirect
d.Direct
7.List out the instructions set available in 8051.
8.What do these instructions do in 8051 micro controller?
a.SETB 86H
b.CLR 87H
c.SETB 92H
d.SETB 0A7H
9.What should be loaded in TCON register to start Timer0 & Timer1?
10.How is the TMOD register modified to make each of the timers operate as counters?.
11.What is the use of TCON register?
12.What is meant by the term ISR?
13.How many interrupts are there in 8051? What are they?
14.Which is the highest priority interrupt of 8051?
15.Which port in micro controller is bit addressable?
16.For the SCON register, brief the function of the 8 bit.
17.If the crystal frequency is 22MHz, what will be the baud rate of
a.TH1=-3
b.TH1=-12 with SMOD= 0 & SMOD=1.
18.What is the use of PCON register?
19.What is the use of TSCON register?
20.How does 8051 differentiate internal and external memory.
Part-B :
1.Explain in detail the architecture of 8051 with a neat diagram. (8)
2.Discuss in detail about memory organization & the explanation of memory in 8051 with a neat diagram. (8)
3.Discuss in detail about the mode1 , mode2 and counter junction of timer. (8)
4.How do you program the 8051 to transfer data serially? (8)
5.Discuss in detail with a neat block diagram, the architecture of 8051.Give its pin diagram also. Briefly explain the role of timers in counting external event using 8051 micro controller. (16)
6.Briefly explain the JMP & CALL instruction available in 8051. (16)
7.Discuss in detail about the instructions set of 8051. (16)
8.Discuss in detail the various modes of operation of timers. Write a detailed note on how instructions are handled by 8051. (16)
9.With a neat diagram explain the internal structure of P0 & P1 available in 8051. (8)
10.Explain the various addressing modes of 8051 with suitable examples. (8)
11.Briefly explain the different addressing modes of 8051 with example. (8)
12.Draw & explain the internal architectural block diagram of 8051. (8)
13.Discuss about external hardware interrupt in 8051. (16)
14.Briefly discuss about the serial communication in 8051 microcontroller. (16)
Unit-II
8051 Programming :
Part- A :
1.What is the result of the following code & where it is kept?
MOV R4,#25H
MOV A,#1FH
ADD A,R4
2.Find the content of register A after the execution of the following code.
CLR A
ORA A,#99H
CPL A
3.Write a program to add two sixteen bit numbers.
4.Explain the instruction MUL available in 8051.
5.What is the error in the following code?
MOV P1,#0FH
CPL P1
6.A switch SW is connected to pin P1.4 .Write a program to output 00 on port1 if SW=0 and output FFH on port1if SW=1.
7.Write a program to multiply two numbers stored in RAM locations 35H and 36H, and store the result in the next two locations.
8.Program Timer 1 to generate a square of 10KHz.Assume XTAL=20MHz.
9.Under what conditions are the TI and RI bits raised?
10.What is the function of SBUF register?
11.State the significance of RTOS.
12.Define task.
13.Give the format of IE register.
14.Explain PUSH and POP instruction
15.What is baud rate?
16.What is IP register in 8051?
17.Add 25H and 70H and find the contents of AC, CY flags.
18.Give the role of watchdog timer.
19.Write a C18 program to set bit RB0 and send it to RC7 after inverting it.
20.Mention the importance of RTOs for real time applications
Part-B :
1.Write a program to bring in a byte of data serially one bit at a time via P1.0. (4)
2.Write a program to toggle the bits of P1, while creating a time delay of 200ms. (8)
3.Write a program to get a value from P1 & send the square of its value to P2 continuously. (4)
4.Briefly explain the interrupt programming available in 8051 micro controller. (8)
5.Write a program in 8051 to implement the function D=B2-4*A*C. (8)
6.Write an assembly language program for 8051 to transfer letter “A” serially at 4800 baud rate continuously. Assume all other required details. (8)
7.Explain the interrupt structure of 8051 micro controller. Explain how interrupts are prioritized. (8)
8. Write 8051 assembly language program to read data from P1 when negative edge triggered at INT0 & supply the data to P2 by masking the upper 4 bits. (8)
9. Explain the types of JUMP & CALL instruction of 8051 with example. (8)
10. Write an assembly language program in 8051 to generate a delay of 10ms. (8)
11. Explain the mode2 operation in serial data COM of 8051 with an assembly language program. (16)
12.A square wave is being generated at pin P1.2. This square wave is sent to a receiver connected in serial form to the 8051.Write an assembly language programthat performs the above task. (8)
13. Assume that 5 BCD data items are stored in RAM locations starting at 40H. Write a program to find sum of all the numbers. (8)
14. What value should be loaded into timer register so as to have a time delay of 5 ms. write a program to create a pulse width of 5 ms on pin P2.3.Assume crystal frequency to be 11.0592MHz? (16)
15. Discuss in detail about the 2 different RTOS for 8051. (16)
16. Briefly explain the implementation of digital thermometer using RTOS. (8)
17. Discuss in detail about the two different RTOS for 8051. (8)
18. Write a program in 8051 to transfer the message HELLO serially at 9600 baud, 8 bit data,1 stop bit. (8)
19. Write a program to glow LED for a fraction of second when external interrupt INT0 is activated. (8)
20. Explain in detail about branching instructions of 8051. (8)