EasyManuals Logo

Texas Instruments MSP430 Student Guide

Texas Instruments MSP430
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #177 background imageLoading...
Page #177 background image
Lab 4a Program the MSP430 Clocks
12. Build the code and fix any errors. When no errors exist, launch the debugger.
Debugging the Clocks
Before running the code, let’s set some breakpoints and watch expressions.
13. Open myClocks.c in the debugger.
14. Add a watch expression for myACLK (in KHz).
Select myACLK in your code Rt-click Add Watch Expression…
Enter ‘myACLK/1024’ into the dialog and hit OK. Upon hitting “OK”, the Expressions
window should open up, if it’s not already open.
In a minute, this should give us a value of 32, if ACLK is running at 32KHz.
15. Go ahead and create similar watch expressions for SMCLK and MCLK.
mySMCLK/1024
myMCLK/1024
16. Finally, let’s add two breakpoints to myClocks.c.
These breakpoints will let us view the
expressions before … and after our
clock initialization code runs.
MSP430 Workshop - MSP430 Clocks & Initialization 4 - 51

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals