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

COP and RTI Timer Programming Model

For example, if Mode 2 was entered on RESET deassertion and the OMR was later altered to select Mode 1, an ensuing COP reset would change program flow to reflect the change to Mode 1. In this case, the reset vector at P:$E002 would be used.

11.2 COP and RTI Timer Programming Model

The COP/RTI block contains the following registers:

COP/RTI control (COPCTL) register

COP/RTI count (COPCNT) register

COP reset (COPRST) register

These three registers are shown in Figure 11-2 and explained in Section 11.2.1, “COP and RTI Control Register (COPCTL),” through Section 11.2.3, “COP Reset (COPRST) Register.”

COPCTL— X:$FFF1

COP/RTI Control

Register

Reset = $0000

Read/Write

COPCNT— X:$FFF0

COP/RTI Count

Register

Reset = Uninitialized

Read-Only

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CPE

CT

*

*

RTE

RTIE

RTIF

RP

DV

DV

DV

DV

DV

DV

DV

DV

 

 

 

 

 

 

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

*

*

DV

DV

DV

DV

DV

DV

DV

DV

RP

RP

SC

SC

SC

7

6

5

4

3

2

1

0

1

0

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* Indicates reserved bits, written as zero for future compatibility

COPRST— X:$FFF0

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COP Reset Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COP and Real-Time Reset and Interrupt Vectors:

RTI

P:$0016

COP RESET in Modes 0 or 3

P:$0002

COP RESET in Mode 1

P:$7F82

COP RESET in Mode 2

P:$E002

Enabling RTIs in the Interrupt Priority Register:

Set CH1 bit (bit 14) to 1 in the IPR (X:$FFFB).

(COP time-out resets the part internally and is not an interrupt.)

AA1443

Figure 11-2. RTI and COP Timer Programming Model

COP and RTI Module

11-3

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