EasyManua.ls 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

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
Program Memory TypeFlash
Clock SpeedUp to 25 MHz (depending on the specific device)
Flash MemoryUp to 512 KB (depending on the specific device)
RAMUp to 66 KB (depending on the specific device)
Operating Voltage1.8V - 3.6V (depending on the specific device)
ADC10-bit or 12-bit SAR ADC
Communication InterfacesUART, SPI, I2C, USB
DMAYes (depending on the specific device)
Operating Temperature-40°C to +85°C
Architecture16-bit RISC
Low Power ModesMultiple (LPM0 to LPM4)

Related product manuals