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: _______________________________________________________
timer frequency counts for timer to
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