You are on page 1of 3

MICROCONTROLLERS

UNIT - 3 & 4 old QP questions


1) Explain the various addressing modes in 8051 with an example.
2) Explain the different addressing modes of an 8051 Microcontroller with examples.
3) Write an Assembly Language Program to copy the byte of data from Internal RAM
location 27H to External RAM location 27H.
4) Explain the External Data Moves and Code-Memory Read-only Data Moves.
5) Explain the JUMP instructions present in 8051 microcontroller with a mnemonic code
and its operation for each.
6) Write an assembly language program to sort an array of 20 numbers stored in the
Internal RAM at address location 40H in ascending order.
7) Explain various forms of addition and subtraction instructions supported by 8051 .
8) Explain the following instructions with an example
(i) PoP (ii) PUSH (iii) ROTATE (iv) SWAP
9) Write a program to increment the data at RAM address 15h by 1 and store the result
in address location 16h.
10) Write a program that will swap the bits of each nibble in register R5. swap bits 0 and 1 with
bits 2 and 3, and bits 4 and 5 with bits 6 and 7
11) What are instruction affecting flags?
12) Explain why the main program cannot be allowed to get to a subroutine except by CALLing it.
13) Explain about PUSH and POP opcodes.
14) Explain the following instructions with an example.
(i) JBC (ii) ACALL (iii) MovX (iv) MUL
15) write an Assembly Language Program (ALP) to sort out the bytes divisible 4 among 10
bytes stored in RAM memory locations
17) Explain the Branch Instructions with an example.
18) write an Assembly Language program (ALP) to find the smallest byte among 5 bytes
stored in RAM memory locations.
19) Write a program to find the 2’s complement of a given byte and store the result in r4.

20) Give the opcodes with examples for the following operations.

i) Increment ii) Multiplication iii) Division

22) For each of the following bit level instructions state which bit of SFR will be affected.

a) SETB 86h b) CLR 87h c) SETB 92h d) SETB 0A7h e) CLR 0F2h
23) Assume that RAM locations 40-44 have the following values. write an ALP to find sum of

values. At the end, register A should contain the low byte and R7 high byte. All values are

in hex .

40= (7D) 41=(FB) 42=(C5) 43=(5B) 44=(30)

24) Explain the following instructions with an example.


(i) XCHD (ii) CJNE (iii) JMP (iv) MovC
25) Write an Assembly Language Program (ALP) to find the largest byte among 5 byes
stored in RAM memory locations.
26) Explain the Arithmetic instructions which affect Flags.
28) Explain the Bit manipulation instructions with an example.
29) Describe the instructions (i) MOVX, @DPTR (ii)XCHD A, @R1 With an example.

30) Explain the difference between Byte level logical operations and Bit level logical operations

32) Explain any 5 data transfer and logical instructions with example.
33) write an ALP to find smallest of 3 numbers using 8051.
34) write an ALP for arranging 5 numbers in ascending order.
35) write short notes on CJNE and DJNZ instructions in 8051. (2M)
36) write short notes on ANL 40,#35h and CPL A instructions in 8051. (2M)
37) explain PUSH and POP instructions in 8051
38) Explain addressing modes of 8051 with the help of examples.
39) write about the concept of the following operations with respect to 8051
i) incrementing and decrementing ii) multiplication and division
40) write in detail about Byte level and bit level logical operations of 8051
41) explain in detail about calls and subroutines of 8051.
42) explain bit and byte instructions of 8051 microcontroller
43) write an ALP to complement the upper nibble of given byte(byte=79H) (2M)
44) explain the following instructions i) RRC ii) MOVX with an example (2M)
45) write an ALP if the signed number is placed in R7 register is negative, set the carry flag to 1;
otherwise clear it (2M)
46) write an ALP to find the number of 1’s in given byte stored at RAM location 30H(byte is F5H) (5M)
47) write an ALP to convert the packed BCD into unpacked BCD numbers (5M)
47) write an Assembly Language Program (ALP) to sort out the bytes divisible by 2 among 10 bytes
stored in RAM memory locations
48)Explain the following instructions i) XCHD ii) MOVC with an example
49) write an ALP to set the every third byte in internal RAM address from 20h to 7Fh to zero
50) write an ALP toput the random number in R3 and increment it until it equals to E1h
51) discuss about calls and subroutines in 8051 MC in detail
52) write an ALP to find out the smallest and largest number stored in RAM locations (30h-37h)
53) discuss about jump and call program range in detail

You might also like