0% found this document useful (0 votes)
15 views2 pages

cat1

The document contains a series of questions related to the 8051 microcontroller instructions, including addressing modes, error identification in instructions, stack analysis during program execution, and an assembly program to calculate the sum of values in specific RAM locations. It also includes a calculation of execution time for a given assembly program based on a specified XTAL frequency. The questions require knowledge of 8051 assembly language and its operational characteristics.

Uploaded by

Piyush Kumar
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)
15 views2 pages

cat1

The document contains a series of questions related to the 8051 microcontroller instructions, including addressing modes, error identification in instructions, stack analysis during program execution, and an assembly program to calculate the sum of values in specific RAM locations. It also includes a calculation of execution time for a given assembly program based on a specified XTAL frequency. The questions require knowledge of 8051 assembly language and its operational characteristics.

Uploaded by

Piyush Kumar
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/ 2

Answer all the questions:

1. (a) Indicate the addressing modes for the following 8051 instructions
(i) MOV R0, #56H
(ii) MOVC A, @A+DPTR
(iii) MOV 38H, R0
(iv) MOV R0, 38H
(v) ADD A, @R1

(b) Identify if the following 8051 instruction have any error, if so give the correct
instructions
(i) MOV @R2, A
(ii) DEC DPTR
(iii) CPL R3
(iv) AND A, B
(v) MUL A,B

2. Analyze the following 8051 assembly program and show the stack and stack pointer
during the execution of the program. Assume the default stack area.
MOV R6, #25H
MOV R1, #12
MOV R4, #0F3H
PUSH 6
PUSH 1
PUSH 4
POP 7
POP 5
POP 3
END

3. Assume that 8051 internal RAM locations 40H – 44H have the following values, write
an assembly program to find the sum of the values. At the end of the program, register A
should contain the low byte and R7 the high byte of the sum.

40H = (7DH)

41H = (EBH)

42H = (C5H)

43H = (5BH)
44H = (30H)
5. For the given 8051 assembly program, find out the time required to execute it, if XTAL
frequency is 11.0592 MHz.

MOV R4, #0FH 1 machine cycle

L1: ADD A, R4 1 machine cycle

MOV B, #89H 1 machine cycle

MUL A B 2 machine cycle

INC A 1 machine cycle

DJNZ R4, L1 2 machine cycle

You might also like