MSP430 Microcontroller Questions and Answers – Watchdog Timer

This set of MSP430 Microcontroller Multiple Choice Questions & Answers focuses on “Watchdog Timer”.

1. The watchdog counts up and resets the MSP430 when it reaches the limit?
a) true
b) false
c) cant be said
d) depends on the conditions
View Answer

Answer: a
Explanation: The watchdog timer is used for the protection of the device. It keeps a track at the counter so that the code doesn’t reach an infinite unending loop. So it actually resets the counter before this particular condition.

2. Which of the following is correct about WDTCTL?
a) it is a 16 bit register
b) it is guided against accidental writes that require a password
c) a reset will occur if a value with an incorrect password is written to WDTCTL
d) all of the mentioned
View Answer

Answer: d
Explanation: WDTCTL is a 16 bit register that is used for protecting the microcontroller. It actually resets the value when an incorrect password is written to WDTCTL.

3. WDTNMI is found in the _________
a) higher byte of WDTCTL
b) lower byte of WDTCTL
c) its first four bits
d) its last four bits
View Answer

Answer: b
Explanation: WDTNMI is the fifth bit of the WDTCTL register.
advertisement
advertisement

4. Which of the following bits reads 0 under normal conditions but goes 1 when it wants to initiate some action?
a) WDTNMI
b) WDTHOLD
c) WDTTMSEL
d) WDTCNTCL
View Answer

Answer: d
Explanation: WDTCNTCL is the bit that reads 0 under normal conditions but goes 1 when it wants to initiate some action like resetting the counter.

5. WDTISx bits control the _________
a) period of the clock
b) act as “Nonmaskable Interrupts”
c) stop the watchdog timer
d) start the watchdog timer
View Answer

Answer: a
Explanation: WDTISx bits of the WDTCTL register is responsible for controlling the period of the clock.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. The process of setting the WDTCNTCL bit in WDTCTL is through
a) petting
b) feeding
c) kicking
d) all of the mentioned
View Answer

Answer: d
Explanation: the process of setting the WDTCNTCL bit in the WDTCTL register is by the processes like petting, feeding and kicking.

7. What is the function of this instruction “WDTCTL = WDTPW | WDTCONFIG”, where **#define WDTCONFIG (WDTCNTCL|WDTSSEL)**
a) it sets the watchdog timer
b) it configures and clears the watchdog timer
c) it stops the watchdog timer
d) it configures and sets the watchdog timer
View Answer

Answer: b
Explanation: WDTCTL = WDTPW | WDTCONFIG instruction is used to clear and configure the watchdog timer of a microcontroller.
advertisement

8. Is this instruction correct?
WDTCTL_bit.WDTCNTCL = 1;
a) yes
b) no
c) cant be said
d) depends on the conditions
View Answer

Answer: b
Explanation: No WDTCTL_bit.WDTCNTCL = 1; is an incorrect way of setting the bits of the WDTCTL register because it violates the password protection.

9. Setting the WDTTMSEL bit of the WDTCTL register makes the watchdog timer act as
a) interrupt
b) communication device
c) converter
d) interval timer
View Answer

Answer: d
Explanation: The WDTTMSEL bit of the WDTCTL register makes the watchdog timer act as the interval timer.
advertisement

10. WDTIFG flag gets cleared if
a) if is interrupt had occurred
b) if the interrupt is serviced
c) if there can be no interrupt
d) all of the mentioned
View Answer

Answer: b
Explanation: WDTIFG flag gets cleared if the interrupt is serviced so that again the interrupt can occur.

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.