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 #264 background imageLoading...
Page #264 background image
Timer Details: Configuring TIMER_A
Summary of Timer Setup Code Part 1
Let’s summarize Part 1 of the timer setup code which configures the timer’s count options. First
of all, as you can see below, we chose to place our timer setup code into its own function.
Obviously, this is not a requirement, but it’s how we wanted to organize our code examples.
Our earlier example for the Timer/Counter setup code demonstrated using the Continuous mode.
The following example shows using the Up mode. Here’s a quick comparison between the two
functions notice that the Up mode requires two additional parameters.
Parameter
ContinuousMode Function
UpMode Function
Which Timer?
TIMER_A0_BASE
Clock Source
TIMER_A_CLOCKSOURCE_SMCLK
Clock Pre-scaler
TIMER_A_CLOCKSOURCE_DIVDER_xx
Timer Period
Not applicable
Used to set the CCR0 value
Enable the TAIE interrupt?
TIMER_A_TAIE_INTERRUPT_xxxxxx
Enable the CCR0 interrupt?
Not applicable
Used to set TA0CC0IFG
Clear the counter (TAR) ?
TIMER_A_DO_CLEAR
6 - 18 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