0% found this document useful (0 votes)
49 views4 pages

MC Question Bank

The document contains questions related to microcontrollers and 8051 architecture. It covers topics like architecture of microcontrollers, components of 8051 microcontroller, comparing microprocessors and microcontrollers, uses of timers/counters, serial communication, I/O ports, interfacing external memory, clock circuitry, registers like TMOD, TCON, SCON, PSW, serial port modes, timer/counter modes, assembly language programming, addressing modes, instructions, interrupts, and more. The questions range from basic to advanced level involving concepts, diagrams, code snippets and programs.

Uploaded by

vachana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views4 pages

MC Question Bank

The document contains questions related to microcontrollers and 8051 architecture. It covers topics like architecture of microcontrollers, components of 8051 microcontroller, comparing microprocessors and microcontrollers, uses of timers/counters, serial communication, I/O ports, interfacing external memory, clock circuitry, registers like TMOD, TCON, SCON, PSW, serial port modes, timer/counter modes, assembly language programming, addressing modes, instructions, interrupts, and more. The questions range from basic to advanced level involving concepts, diagrams, code snippets and programs.

Uploaded by

vachana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

REVA

UNIVERSITY

UNIT-1
Q1. Describe the architecture of microcontroller.

Q2. Discuss the various components of 8051 microcontroller in brief with the help of diagram.

Q3. Compare and contrast the architecture of microprocessor and microcontroller.

Q4. Identify the use of Timer/counters in interfacing.

Q5. Infer how serial communication is carried out in 8051.

Q6. State the uses of 1/0 ports in 8051.

Q7. Show how external memory can be interfaced with 8051.

Q8. Explain the working of clock circuitry in 8051.

Q9. Label TMOD Register.

Q10. Label TCON Register.

Q11. Label SCON Register

Q12. Identify the importance of PSW in microcontroller.

serial port in 8051.


Q13. Discuss the different modes of operation of

u14. State and expiain the various modes of operations of Timer/counters in 8051.

Q15. Compute the output in the following code segments:

i) MOV A, #56h i) MOV A, #9Ch


ADD A, #95h ADD A, #64h

Q16. Write the instructions to select memory bank2 and transfer the contents of R2 to A.

a17. Sketch the use of Stack Pointer Register in 8051

Q18. Show the status of CY and OV flag status in the following code segments:

i) MOV A, #+66 i) MOV A, #-12


ADD A, #+69 ADD A, #+18

Q19. Define Interrupts and explain how they are handled in 8051.

Q20. State how to set priorities for interrupts in 8051


REVA
UNIVERSITY

Unit 2
1. a) 1llustrate with examples the different addressing modes used in 8051. 10 marks

list in ascending order using 10 marks


b) Develop an assembly language program to sort a

bubble sort algorithm.


05 marks
c)Summarize the operations of PUSH and POP instruction giving examples.
using at least 04 marks
mnemonics to Copy the byte in TCON to register R2
2. a) Write assembly
four different methods.
03 marks
Discuss the following instruction of 8051 microcontroller.
b)
i)CINE i) DINZ i) NOP
marks
to find the largest number in a
list ofnumbers. 10
c)Build assembly language
an program
instructions of 8051 microcontroller.
d) Contrast between the following 08 marks
i)SWAP and XCHG
i) MOVX and MOVC
ii) ADD and ADDC
iv) RET and RETI
and MOVC instruction giving 06 marks
3. a) Contrast the difference between MOV, MOVX
04 marks
examples.
Write assembly mnemonics to illustrate the following
addressing modes.
b) 08 marks
i)Immediate Register ii) Direct iv) Indirect
i)
LCALL and ACALL instruction in 8051. 07 marks
c)Explain with suitable examples
occur in 8051 microcontroller
when the CALL and
Write a sequence of events that
d)
RET instructions are executed by drawing a
relevant diagram.
perform the following operation: 15 marks
Write assembly language program in 8051 to
4 a) an

S = (P+Q1) x (Pz + Q2) Where Pz, Q1, P2and Q2 Hexadecimal


are 8-bit numbers
4000h, 4001h, 4002h, and 4003h respectively.
stored in the external RAM locations,
Store the result at external RAM location
8000h (low byte) and 8001h (high byte).
that each addition result with 8-bit
Write a subroutine for addition and assume
number.
10 marks
b) Mention the functions of the following instructions of 8051 CPU:
DJNZ v) ACALL
i) MOVC A, @A+DPTR i) CINE ii) MUL AB Iv)
5. a) Write assembly mnemonics that will accomplish the desired tasks listed below, 05 marks
comment each line.
32h.
i) Place the number 3Bh in internal RAM locations 30h and

i) Set the SP at the address just above the last working register address.
byte
Set timer 1 to A23Dh.
il)
the SP.
Copy the external code byte at address 007Dh to
iv)
latch.
Copy the dota on the pins of port 2 to the port 2
10 marks
b) Elaborate what is meant by Bit Jumps and Byte Jumps.
c)Discuss operations of all rotate and swap instructions illustrating each operation 10 marks
with suitable diagrams.
REVA
LNIVERSITY
UNIT3

microcontroller? With illustration explain how the


RAM and ROM in a
1. What is the importance of
be extended.
ROM
capacity of RAM and
can
tables.
demonstrate how PC can be used for lookup
2. Write an ALP to
hardware delay.
software delay and pure
the difference between pure
3. Analyze transmission is performed.
how interrupt driven character
of ALP
1llustrate with the help
4 to increase the number
1/0 ports. of
1&3 can be expanded
5. Explain how PORT RI interrupt.
character is received using
llustrate with the help of ALP how a
6 illustrate pure
hardware time delay.
assembly level program to
7. Develop an
software time delay.
to illustrate pure
8. Develop an assembly level program execute programs
microcontroller can fetch and
that ensures the
the program test
9Briefly explain
from the EPROM.
calculation of MOVC ROM
they can be used in the
need of lookup tables and how
10. Explain the

address with the help of diagram.


with an example.
to perform RAM test. Ilustrate
checkerboard pattern can be applied
11. How the
illustrate pure hardware
time delay.
assembly level program to
12. Develop an
transmission frame.
transmission and dissect asynchronous
13. Explain serial data
at 2400 bauds on 12 MHz crystal,
transmission, sendchar ALP which operates
character
14. Develop a
characters.
and with a of Sms between each sending
delay
REVA
UNIVERSITY

UNIT-4
schematic diagrams.
Q1. List the various keyboard configurations and explain them with the help of their

Q2. List the most likely effects if a keyboard program does not accomplish the following

) Debounce keys when pressed down


ii) Check fora valid key code
ii) Wait for all keys up before ending keyboard routine
iv) Debounce keys when released

in a keyboard program,
to employ some kind of debounce subroutine
Q3. Determine why it is important
bounce are used.
programs, even if keys with absolutely no
particularly for interrupt-driven
the keyboard for key press.
Q4. Sketch the flowchart for scanning
result to the serial port.
C language program to read
the keypad and send the
Q5. Design and develop a
P1.0-P1.3 connected to rows.
P2.0-P2.3 connected to columns.
9600 baud, 8-bit and 1-stop bit.
Configure the serial port for

display with its circuit.


Q6. Describe the seven-segment

character found in the locations ch1 to ch4 on common-

Q7. Develop assembly program that displays


an holds
Port1 holds the segment pattern
from the low byte of chx; port3
cathode seven-segment displays. between
2.5 milliseconds delay interval
of chx. TO generates a
the cathode pattern from the high byte hex to
lookup table to convert from
a
main program uses a
characters in an interrupt mode. The
dedicated as a pointer to the displayed character.
corresponding pattern. R0 of bank 1 is

display used for the above program (Senseg).


Q8. Sketch the circuit for the seven-segment

of Inteligent LCD.
Q9. List and explain the different pins
line.
with 8051. The display is of two lines, 20 characters per
Q10. Design the circuit for LCD interfacing select and
data byte, and ports 3.2 to 3.4 furnish register
Port 1 is used to furnish the command or
read/write levels.

Q11. Demonstrate how Timers can be used to measure the frequency in control applications.

of Timers in pulse width measurement in control applications.


Q12. 1llustrate the use

a program to measure the width


of a pulse fed to pin3.3 (INTA1). Use the Timer T1 and
Q13.Develop
enable to count on the first pulse edge, count when the pulse is high, and stop on the second edge. Ports

(MSB) need to show in hex the width of the pulse in microseconds.


P1 (LSB) and P2

Q14. Discuss how digital signal is converted into analog using D/A converter
Q15. Design a D/A converter circuit for generating a 1,000-hertz sine wave using an 8-bit converter.

a16. Develop an assembly program to generate a 1,000-hertz sine wave using an 8-bit converter.

a17. Discuss how analog signal is converted into digital using A/D converter.

Q18. Design an A/D converter circuit for digitizing an input voltage by sampling the input.

-11.Develop assembly PA0g3am to diqitheng an input Vol tage b


an

Samplinq the tnput eveny 1ovMs anel Stahinà digitized Value


in extonnak RAN
lototion Aovoh o h3t 7h Li cood Samplea

You might also like