You are on page 1of 1

15EE52 MICROCONTROLLER

ASSIGNMENT QUESTIONS
(Date of submission – 17.09.2018)
1. What is a microcontroller? Explain the block diagram of 8051 Microcontroller.
2. Explain the internal RAM structure of 8051.
3. What is stack? Describe stack operation in 8051 with one example.
4. Write comment for each of the addressing modes:
 MOV A, #5AH
 MOV B, R1
 MOV 00H, 0E0H
 MOV A, @R0
 MOVX A, @R0
 MOVX @DPTR, A
 MOVC A, @A+PC
5. Write the comments for each instruction of the following program code. Write the
contents of the registers.
MOV A, #58H
MOV PSW, #10H
MOV R0, A
MOV B, A
ADD A, B
MOV R1, A

6. Write an ALP to copy data from external RAM locations 56H-59H to internal RAM
locations 10H-13H.
7. Write an ALP to move immediate data 35H to external RAM locations 20H to 29H.
8. Write an ALP to save the DPTR contents to external RAM locations 1234h (DPL value)
and 2589h (DPH value).
9. What is immediate and direct addressing modes? Explain with examples.
10. State the difference between MOV and MOVX commands.
11. Write the result for each instruction :
MOV A, #58H
ADD A, #0FCH
MOV R0, A
MOV B, #5CH
SUBB A, B
MUL AB
DIV AB
MOV R1, A
MOV A,B
MOV R2,A

You might also like