Motorola DSP56301 user manual Timer Control, Number Function

Models: DSP56301

1 372
Download 372 pages 304 b
Page 293
Image 293

Triple Timer Module Programming Model

Table 9-3.Timer Control/Status Register (TCSR) Bit Definitions (Continued)

Bit Number

Bit Name

Reset Value

Description

 

 

 

 

 

 

 

 

7–4

TC[3–0]

0

Timer Control

 

 

 

Control the source of the timer clock, the behavior of the TIO signal, and

 

 

 

the Timer mode of operation. Section 9.3, Operating Modes, on page 9-5

 

 

 

describes the timer operating modes in detail.

 

 

 

NOTE: To ensure proper operation, the TC[3–0] bits should be changed

 

 

 

only when the timer is disabled (that is, when the TCSR[TE] bit is cleared)

NOTE: If the clock is external, the counter is incremented by the transitions on the TIO signal. The external clock is internally synchronized to the internal clock, and its frequency should be lower than the internal operating frequency divided by 4 (that is, CLK/4).

 

Bit Settings

 

 

Mode Characteristics

 

 

 

 

 

 

 

 

 

 

TC3

TC2

TC1

TC0

Mode

 

Mode

TIO

Clock

Number

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

 

Timer and

GPIO 1

Internal

 

GPIO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

1

 

Timer pulse

Output

Internal

 

 

 

 

 

 

 

 

 

0

0

1

0

2

 

Timer toggle

Output

Internal

 

 

 

 

 

 

 

 

 

0

0

1

1

3

 

Event counter

Input

External

 

 

 

 

 

 

 

 

 

0

1

0

0

4

 

Input width

Input

Internal

 

measurement

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

0

1

5

 

Input period

Input

Internal

 

measurement

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

0

6

 

Capture event

Input

Internal

 

 

 

 

 

 

 

 

 

0

1

1

1

7

 

Pulse width

Output

Internal

 

modulation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

0

0

8

 

Reserved

 

 

 

 

 

 

 

 

 

1

0

0

1

9

 

Watchdog

Output

Internal

 

pulse

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

0

10

 

Watchdog

Output

Internal

 

Toggle

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

1

11

 

Reserved

 

 

 

 

 

 

 

 

 

1

1

0

0

12

 

Reserved

 

 

 

 

 

 

 

 

 

1

1

0

1

13

 

Reserved

 

 

 

 

 

 

 

 

 

1

1

1

0

14

 

Reserved

 

 

 

 

 

 

 

 

 

1

1

1

1

15

 

Reserved

 

 

 

 

 

 

 

 

 

Note 1: The GPIO function is enabled only if all of the TC[3–0] bits are 0.

3

 

0

Reserved. Write to zero for future compatibility.

 

 

 

 

Triple Timer Module

9-31

Page 293
Image 293
Motorola DSP56301 user manual Timer Control, Number Function