10
Memory Interface
10 – 3
10.2
PROGRAM MEMORY INTERFACE
This section describes the program memory interface of all ADSP-21xx
processors except the ADSP-2181.
The processors address 16K of 24-bit wide program memory, up to 2K
on-chip and the remainder external, using the control lines shown in
Figure 10.1. The processors supply a 14-bit address on the program
memory address bus (PMA) which is driven off-chip on the address bus in
the case of external program memory accesses. Instructions or data are
transferred across the 24-bit program memory data (PMD) bus which is
also multiplexed off-chip. For a dual off-chip data fetch, the data from
program memory is read first, then the data memory data. A program
memory select pin,
PMS
, indicates that the address bus is being driven
with a program memory address and memory can be selected.
Two control lines indicate the direction of the transfer. Memory read (
RD
)
is active low signaling a read and memory write (
WR
) is active low for a
write operation. Typically, you would connect
PMS
to
CE
(Chip Enable),
RD
to
OE
(Output Enable) and
WR
to
WE
(Write Enable) of your memory.
10.2.1 External Program Memory Read / Write
On-chip memory accesses do not drive any external signals.
PMS
,
DMS
,
RD
, and
WR
remain high (deasserted); the address and data buses are
tristated. Off-chip program memory access happens in this sequence:
1. The processor places the address on the PMA bus, which is
multiplexed off-chip, and
PMS
is asserted.
2.
RD
or
WR
is asserted.
3. Within a specified time, data is placed on the data bus, multiplexed to
the internal PMD bus.
4. The data is read or written and
RD
(or
WR
) is deasserted.
5.
PMS
is deasserted.
The basic read and write cycles are illustrated in Figure 10.2 on the next
page. Figure 10.2A shows zero wait states and 10.2B shows the effect of
one wait state.