beautypg.com

Wait states, Lcd interface mode – Rainbow Electronics AT75C220 User Manual

Page 18

background image

AT75C220

18

valid longer than in standard read protocol due to the addi-
tional wait cycle that follows a write access.

Wait States
The SMC can automatically insert wait states. The different
types of wait states are:

• standard wait states

• data float wait states

• external wait states

• chip select change wait states

• early read wait states (see “Read Protocols” on page 17

for details)

standard wait states

Each chip select can be programmed to insert one or more
wait states during an access on the corresponding device.
This is done by setting the WSE field in the corresponding
SMC_CSR. The number of cycles to insert is programmed
in the NWS field in the same register. The correspondence
between the number of standard wait states programmed
and the number of cycles during which the write strobe
pulse is held low is found in Table 7. For each additional
wait state programmed, an additional cycle is added.

Data Float Wait State

Some memory devices are slow to release the external
bus. For such devices it is necessary to add wait states
(data float waits) after a read access before starting a write
access or a read access to a different external memory.

The Data Float Output Time (TDF) for each external mem-
o r y d e v i c e i s p r o g ra m m e d i n t h e T D F f i e ld o f t h e

SMC_CSR register for the corresponding chip select. The
value (0 - 7 clock cycles) indicates the number of data float
waits to be inserted and represents the time allowed for the
data output to go high impedance after the memory is dis-
abled.

The SMC keeps track of the programmed external data
float time even when it makes internal accesses to ensure
that the external memory system is not accessed while it is
still busy.

Internal memory accesses and consecutive accesses to
the same external memory do not have added data float
wait states.

When data float wait states are being used, the SMC pre-
vents the DMC or external master from accessing the
external data bus.

External Wait

The NWAIT input can be used to add wait states at any
time NWAIT is active low and is detected on the rising edge
of the clock. If NWAIT is low at the rising edge of the clock,
the SMC adds a wait state and does not change the output
signals.

Chip Select Change Wait States

A chip select wait state is automatically inserted when con-
secutive accesses are made to two different external mem-
ories (if no wait states have already been inserted). If any
wait states have already been inserted (e.g., data float
wait), then none are added.

LCD Interface Mode
NCE3 can be configured for use with an external LCD con-
troller by setting the LCD bit in the SMC_CSR3 register.
Additionally, WSE must be set and NWS programmed with
a value of one or more.

In LCD mode, NCE3 is shortened by one-half clock cycle at
the leading and trailing edges, providing positive address
setup and hold. For read cycles, the data is latched in the
SMC as NCE3 is raised at the end of the access.

Table 7. Correspondence Wait States/Number of Cycles

Wait States

Cycles

0

1/2

1

1