Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

Timers

TCR01— X:$FFDF

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer Control Register

TE

 

 

OIE

TO1

TO0

ES1

ES0

TE

INV

 

OIE

TO1

TO0

ES1

ES0

Reset = $0000

*

*

*

1

1

1

1

1

 

1

0

 

0

0

0

0

0

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 1

 

 

 

 

 

 

 

Timer 0

 

 

 

TCR2— X:$FFDA

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer Control Register

 

 

 

 

 

 

 

 

 

TE

INV

 

OIE

TO1

TO0

ES1

ES0

Reset = $0000

*

*

*

*

*

*

*

 

*

*

 

2

 

2

2

2

2

2

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 2

 

 

 

TPR0— X:$FFDE

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TPR1— X:$FFDC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TPR2— X:$FFD9

 

 

 

 

 

 

Preload Register

 

 

 

 

 

 

Timer Preload Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset = $0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

TCT0— X:$FFDD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCT1— X:$FFDB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCT2— X:$FFD8

 

 

 

 

 

 

 

Count Register

 

 

 

 

 

 

Timer Count Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset = $FFFF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* Indicates reserved bits, written as zero to ensure future compatibility

AA0227

Figure 9-3. Timer Module Programming Model

NOTE:

To use the timer module, the CC[15:14] bits in the Port C control (PCC) register must be correctly set.

9.1.1 Timer Control Registers (TCR01 and TCR2)

Two 16-bit, read/write timer control registers (TCRs) contain the control bits for three 16-bit timers. The upper byte controls one timer and the lower byte controls another timer, as shown in Table 9-1.

Table 9-1. Timer Control Registers (TCR01 and TCR02)

Timer

Control Register Used

 

 

 

 

0

TCR01[7:0]

 

 

1

TCR01[15:8]

 

 

2

TCR2[7:0]

 

 

(Unused)

TCR2[15:8]

 

 

9-4

DSP56824 User’s Manual

 

Соседние файлы в папке DSP568xx