MSP430 Microcontroller Questions and Answers – Addressing Modes

This set of MSP430 Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on “Addressing Modes”.

1. There are _____ number of addressing modes found for the source and _____ number of modes for the destination part.
a) 4,4
b) 2,4
c) 7,4
d) 2,2
View Answer

Answer: c
Explanation: In MSP430, Seven addressing modes for the source operand and four addressing modes for the destination operand can address the complete address space with no exceptions.

2. MSP430 describes reti instruction as ___________
a) Format1 addressing
b) Format2 addressing
c) Jump addressing
d) None of the mentioned
View Answer

Answer: b
Explanation: MSP430 describes reti instruction as that type of addressing which consists of only single operand, so it comes under Format2 addressing.

3. mov.w R3, R4 takes _________
a) one cycle
b) two cycles
c) four cycles
d) eight cycles
View Answer

Answer: a
Explanation: mov.w R3, R4 takes only one cycle to transfer the data from register R3 to R4. This type of mode of addressing is called the register mode of addressing.
advertisement
advertisement

4. Indexed addressing can be used for _________
a) source
b) destination
c) source & destination
d) none of the mentioned
View Answer

Answer: c
Explanation: Indexed addressing is used for both the source and the destination addresses.

5. What do you understand form this instruction mov.w X(PC), R6
a) R6 = X+PC
b) R6 = PC-X
c) R6 = -X-PC
d) R6 = -X+PC
View Answer

Answer: a
Explanation: This instruction mov.w X(PC), R6 means that the contents of X+PC address are copied to the R6 register.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Absolute mode uses which of the following operators?
a) %
b) /
c) $
d) &
View Answer

Answer: d
Explanation: Absolute mode uses the & operator to transfer a constant to a register.

7. Indirect register mode is used by _________
a) source register
b) destination register
c) source & destination register
d) none of the mentioned
View Answer

Answer: a
Explanation: Indirect addressing mode is used only by the source register.
advertisement

8. Indirect mode and the indirect auto increment mode have which common operator in them
a) +
b) –
c) @
d) &
View Answer

Answer: c
Explanation: Both the indirect and the indirect auto increment mode use the @ operator for the source register to transfer the data from one memory location to a register.

9. Are the following two instructions similar?

MOV @R10,0(R11) and MOV @R10+,0(R11)
advertisement

a) yes
b) no
c) cant be said
d) depends on the conditions
View Answer

Answer: b
Explanation: MOV @R10,0(R11) → Move the contents of the source address (contents of R10) to the destination address (contents of R11).
MOV @R10+,0(R11) → Move the contents of the source address (contents of R10) to the destination address (contents of R11). Register R10 is incremented by 1 for a byte operation, or 2 for a word operation after the fetch; it points to the next address without any overhead. This is useful for table processing.

10. MOV @R10,0(R11) is a type of ________
a) Register Mode
b) Indirect Register Mode
c) Immediate Mode
d) Indirect Autoincrement Mode
View Answer

Answer: b
Explanation: The type of given instruction is Indirect Register Mode.

Sanfoundry Global Education & Learning Series – Microcontroller.

To practice all areas of Microcontroller, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.