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 #284 background imageLoading...
Page #284 background image
Lab 6a Simple Timer Interrupt
3. Calculate the Timer frequencies for the clocks & divider values you chose in the
previous step.
This lab exercise uses the clock setup from Chapter 4. So you don’t have to look it up, we’ve
copied the values into the table below:
Clock ‘F5529 Launchpad
ACLK 32 KHz
SMCLK 8 MHz
MCLK 8 MHz
What clock did you choose in the previous step?
Timer Clock Source: _______________________________________________________
Clock Frequency
=
cycles/second
Timer Frequency
=
÷
=
clock frequency
timer clock divider
Timer Output
=
÷
=
timer frequency counts for timer to
rollover
4. Write the TIMER_A_configureContinuousMode() function.
Where to get help for writing this function? We highly recommend the MSP430ware DriverLib
users guide. (See docs folder inside MPS430ware’s driverlib folder.) Another suggestion
would be to examine the header file: (timer_a.h).
TIMER_A_configureContinuousMode(
TIMER_A0_BASE, // Setup Timer A0
_______________________________________,
// Timer clock source
_______________________________________, // Timer clock divider
_______________________________________, // Enable interrupt on TAR counter rollover
TIMER_A_DO_CLEAR
// Clear TAR & previous divider state
);
6 - 38 MSP430 Workshop - Timers

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