Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
19 views3 pages

Microcontroller MCQ 3 6 25

The document contains a series of questions and answers related to the 8051 microcontroller's instruction set and addressing modes. Key topics include register indirect addressing, program counter functions, jump instructions, and logical operations affecting the carry flag. Each question is followed by the correct answer, providing a concise overview of important concepts in 8051 programming.

Uploaded by

isaacsabu
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)
19 views3 pages

Microcontroller MCQ 3 6 25

The document contains a series of questions and answers related to the 8051 microcontroller's instruction set and addressing modes. Key topics include register indirect addressing, program counter functions, jump instructions, and logical operations affecting the carry flag. Each question is followed by the correct answer, providing a concise overview of important concepts in 8051 programming.

Uploaded by

isaacsabu
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/ 3

1.

Which of the following instructions uses register indirect addressing mode in the
8051 microcontroller?
a) MOV A, R0
b) MOV A, @R0
c) MOV A, #R0
d) None of these

Answer: b)

2. Which instruction checks the status of the accumulator before jumping?


a) JZ
b) JC
c) SJMP
d) LJMP

Answer: a)

3. What is the function of the Program Counter in the 8051 microcontroller?

a) Stores data temporarily


b) Holds the address of the next instruction
c) Performs arithmetic operations
d) Controls input/output ports

Answer: b)

4. What does CJNE A, R2, addr do?

a) Jumps if A = R2
b) Jumps if A ≠ R2
c) Compares and stops
d) Moves R2 to A

Answer: b)
5. What is the offset range for the SJMP instruction?

a) -64 to +63
b) 0 to 255
c) -128 to +127
d) -256 to +255

Answer: c

6. Which instruction performs an unconditional jump within a 2K memory block?

a) SJMP
b) LJMP
c) CJNE
d) AJMP

Answer: d

7. Which addressing mode adds a base and an offset register to form the memory
address?

a) Immediate
b) Direct
c) Indirect
d) Indexed

Answer: d)

8. What is the function of MOVX A, @DPTR in the 8051 microcontroller?

a) Moves data to port


b) Moves internal data
c) Accesses external memory
d) Executes jump instruction

Answer: c)
9. Which instruction allows a jump to any location in the 64KB memory space in 8051?
a) AJMP
b) SJMP
c) LJMP
d) CJNE

Answer: c)

10. Which logical instruction affects the carry flag during its execution in the 8051
microcontroller?
a) XRL
b) ANL
c) ORL
d) RLC

Answer: d

You might also like