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 #267 background imageLoading...
Page #267 background image
Timer Details: Configuring TIMER_A
2b. Compare: TIMER_A_initCompare()
The other use of CCR is for comparisons to the main timer/counter (TAR).
Once again, before we walk through the function that initializes CCR for Compare, let’s examine
its options:
Set CAP=0 for the CCR to be configured for Compare Mode. (Opposite from earlier.)
You must set the CCR2 register to a 16-bit value. When TAR = CCR2:
An internal signal called EQU2 is set.
If enabled, EQU2 drives the interrupt flag high (CC2IFG).
Similar to the Capture mode, the CCR’s output signal is modified by EQU2. Again, this
signal is available to other internal peripherals and/or routed to a pin (in this case, TA0.2).
Again, similar to the Capture mode, there are a variety of possible output modes for the
OUT2 signal (which will be discussed shortly).
MSP430 Workshop - Timers 6 - 21

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