Lab 4a – Program the MSP430 Clocks
Note: Before you run the code to the first breakpoint, you may see an error in the Expressions
window similar to “Error: identifier not found”. This happens when the variable in the
expression is out-of-scope. For example, this can happen if you defined the variable as a
local, but you were currently executing code in another function. Then again, it will also
happen if you delete a variable that you had previously added to the Expression watch
window.
17. Run the code to the first breakpoint and write down the Express values:
myACLK/1024: ____________________________________________________________
mySMCLK/1024: ___________________________________________________________
myMCLK/1024: ____________________________________________________________
Are these the values that you expected? ________________________________________
(Look back at Worksheet question #9, if you need a reminder.)
18. Run to the next breakpoint – at the end of the initClocks() function.
Check on the values again:
myACLK/1024: ____________________________________________________________
mySMCLK/1024: ___________________________________________________________
myMCLK/1024: ____________________________________________________________
Are these the values we were asked to implement? ________________________________
(Look back at Worksheet questions 10-12.)
19. Let the program run from the breakpoint and watch the blinking LED.
4 - 52 MSP430 Workshop - MSP430 Clocks & Initialization