O'Reilly logo

Microcontroller Programming and Interfacing Texas Instruments MSP430 by Daniel J. Pack, Steven F. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

240 7. RESETS AND INTERRUPTS
7.7 REFERENCES AND FURTHER READING
MSP430x5xx/MSP430x6xx Family Users Guide, Texas Instruments, Revised July 2010 -
SLAU208G
7.8 CHAPTER PROBLEMS
Fundamental
1. List three different types of resets in the MSP430 microcontroller.
2. State the purpose of resets and interrupts.
3. What is the main difference between a reset and an interrupt?
4. What is the differences between maskable and nonmaskable interrupts?
5. In addition to setting up a local interrupt enable bit, you must also set the global enable bit.
Where is the global enable bit for all MSP430 maskable interrupts? Write an instruction to
enable this global maskable interrupt enable bit.
6. What are the steps one must take to properly configure a maskable interrupt?
7. When more than one maskable interrupt occurs simultaneously, how does the MSP430 con-
troller decide the order in which the controller service the interrupts?
Advanced
1. Why did the designers of MSP430 come up with three different types of resets?
2. Refer to the Interrupt Handling Process section and explain the purpose for each of the ten
steps.
3. Write a segment of code to initialize the MSP430 microcontroller to operate in the power
save mode LPM3.5 mode and only operate in the normal mode during an interrupt.
Challenging
1. It is challenging to handle nested interrupts. What might be some applications where nested
interrupts are necessary?
2. Consider the exercise in Section 7.6. Write a program for the central station that accepts the
data from the temperature controller and log them in memory. Use an interrupt service routine
since the power level data is only sent every five minutes.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required