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

Port A Description

4.2 Port A Description

The external memory interface (also referred to as Port A) is the port through which all accesses to external memories and external memory-mapped peripherals are made. This port contains a 16-bit address bus, a 16-bit data bus, and four bus control pins for strobes. The external memory interface uses one programmable register for bus control, the bus control register (BCR).

External memory can be accessed at the maximum speed of the bus unit. In addition, software-controlled wait states can be introduced when accessing slower memories or peripherals. Wait states are programmable using registers. Figure 4-3 and Figure 4-4 on page 4-5 show examples of bus cycles with and without wait states.

4.2.1 Bus Control Register (BCR)

The bus control register (BCR), located at X:$FFF9, is a 16-bit read/write register used for inserting software wait states on accesses to external program or data memory. Two 4-bit wait state fields are provided, each capable of specifying from 0 to 15 wait states. On processor reset, each wait state field is set to $F so that 15 wait states are inserted, allowing slower memory to be used immediately after reset. All other BCR bits are cleared on processor reset.

BCR— X:$FFF9

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bus Control Register

 

 

 

 

 

 

 

 

Wait State Field

 

Wait State Field

 

Reset = $00FF

*

*

*

*

*

*

DRV

*

for External X Memory

for External P Memory

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* Indicates reserved bits, written as 0 for future compatibility

 

 

 

 

 

AA0141

Figure 4-2. BCR Programming Model

4.2.1.1 Reserved Bits—Bits 15–10

Bits 15–10 are reserved and are read as zero during read operations. These bits should be written with zero to ensure future compatibility.

4.2.1.2 Drive (DRV)—Bit 9

The Drive (DRV) control bit is used to specify what occurs on the external memory port pins when no external access is performed—whether the pins remain driven or are placed in tri-state. Table 4-2 on page 4-6 and Table 4-3 on page 4-7 summarize the action of the DRV bit. The DRV bit is cleared on hardware reset.

4.2.1.3 Reserved Bit—Bit 8

Bit 8 is reserved and is read as zero during read operations. This bit should be written with zero to ensure future compatibility.

External Memory Interface

4-3

External Memory Interface

4.2.1.4 Wait State X Data Memory (WSX[3:0])—Bits 7–4

The wait state X data memory (WSX[3:0]) control bits allow for the programming of the wait states for external X data memory. Table 4-1 shows the wait states provided with these bits. The WSX[3:0] and the WSP[3:0] bits are programmed in the same fashion but do not need to be set to the same value.

Table 4-1. Programming WSP[3:0] and WSX[3:0] Bits for Wait States

Bit String

Hex Value

Number of Wait States

 

 

 

 

 

 

0000

$0

0

 

 

 

0001

$1

1

 

 

 

0010

$2

2

 

 

 

0011

$3

3

 

 

 

0100

$4

4

 

 

 

0101

$5

5

 

 

 

0110

$6

6

 

 

 

0111

$7

7

 

 

 

1000

$8

8

 

 

 

1001

$9

9

 

 

 

1010

$A

10

 

 

 

1011

$B

11

 

 

 

1100

$C

12

 

 

 

1101

$D

13

 

 

 

1110

$E

14

 

 

 

1111

$F

15

 

 

 

4.2.1.5 Wait State P Memory (WSP[3:0])—Bits 3–0

The wait state program memory (WSP[3:0]) control bits allow for the programming of the wait states for external program memory. These bits are programmed as shown in Table 4-1.

Figure 4-3 on page 4-5 shows an example of bus cycles without wait states, and Figure 4-4 on page 4-5 shows an example of bus cycles with wait states. For more information on wait states, see the DSP56824 Technical Data Sheet.

4-4

DSP56824 User’s Manual

 

Port A Description

 

T0

 

T1

 

T2

 

T3

 

T0

 

T1

 

T2

 

T3

 

T0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CLKO

A15–A0

PS, DS

WR

RD

D15–D0

 

 

 

 

 

 

Data In

 

 

 

 

 

Data Out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AA0130

Figure 4-3. Bus Operation (Read/Write—Zero Wait States)

T0 T1 T2 Tw T2 Tw T2 Tw T2 T3 T0 T1 T2 Tw T2 Tw T2 Tw T2 T3 T0 T1

CLKO

A15–A0

PS, DS

WR

RD

D15–D0

 

 

 

 

 

Data In

 

 

 

Data Out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AA0133

Figure 4-4. Bus Operation (Read/Write—Three Wait States)

External Memory Interface

4-5

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