Timer_a, Chapter 10 – Texas Instruments MSP430x1xx User Manual

Page 141

Advertising
background image

10-1

Timer_A

Timer_A

This section describes the basic functions of the MSP430 general-purpose
16-bit Timer_A. All capture/compare blocks (CCR) are identical.
MSP430x11x, MSP430x11x1, and MSP430x13x have three CCRs
(Timer_A3) and MSP430x14x has five CCRs (Timer_A5) implemented.

Note:

Throughout this chapter, the word

count is used in the text. As used in these

instances, it refers to the literal act of counting. It means that the counter must
be in the process of counting for the action to take place. If a particular value
is directly written to the counter, then the associated action will not take place.
For example, the CCR0 interrupt flag is set when the timer

counts up to the

value in CCR0. The counter

must count from CCR0–1 to CCR0. If the CCR0

value were simply written directly to the timer with software, the interrupt flag
would

not be set, even though the values in the timer and the CCR0 registers

are the same.

Topic

Page

10.1 Introduction

10-2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.2 Time Operation

10-4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.3 Timer Modes

10-7

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.4 Capture/Compare Blocks

10-13

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.5 The Output Unit

10-19

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.6 Timer_A Registers

10-24

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10.7 Timer_A UART

10-33

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapter 10

Advertising