Professional Documents
Culture Documents
20) Give the opcodes with examples for the following operations.
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 .
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