![Texas Instruments EMIF16 User Manual Download Page 33](http://html.mh-extra.com/html/texas-instruments/emif16/emif16_user-manual_1097088033.webp)
3.8 Extended Wait Mode
SPRUGZ3A—May 2011
KeyStone Architecture External Memory Interface (EMIF16) User Guide
3-9
Chapter 3—Operating Modes
www.ti.com
3.8 Extended Wait Mode
EMIF16 supports Extended Wait Mode. Extended Wait Mode allows the asynchronous
device to extend the strobe period longer than the programmed number of clock cycles
in the Async 1-4 Config Registers. Extended Wait Mode is enabled by setting the
EW
bit in the Async 1-4 Config Register to 1. Once
EW
has been set, the EMIF16 monitors
the EMIFWAIT pin mapped to that chip select to determine if the device wants to
extend the strobe period. An assertion on the EMIFWAIT pin causes the EMIF16 to
insert additional clock cycles beyond the programmed value and extends the strobe
period until the EMIFWAIT pin is deactivated. From here on the EMIF16 resumes
normal operation.
A chip select can be mapped to either of the two pins EMIFWAIT[1:0] by appropriately
setting the
CS2-5_WAIT
fields in the Async Wait Cycle Config Register (AWCCR). It
is also important to correctly set the active polarity of the EMIFWAIT pins by
programming the WP0-1 bits in the AWCCR. A ‘0’ means EMIF16 will insert wait
cycles when EMIFWAIT is low, and sampled high when polarity is set to 1.
The strobe period in Extended Wait Mode can only be extended up to a certain
maximum number of cycles as programmed in the
MAX_EXT_WAIT
field in the
AWCCR. If the EMIFWAIT pin under consideration is not deactivated by the time the
counter on maximum number of clock cycles expires, EMIF16 proceeds to the hold
period regardless of the state of the EMIFWAIT pin. For details on AWCCR, refer to
. The expiration of the counter can also be used to set an asynchronous
timeout interrupt. For details on how to enable this interrupt, refer to
.
Note—
In Extended Wait Mode, strobe parameters R_STROBE and
W_STROBE must not be set to zero.
3.9 Data Bus Parking
The data bus is always driven to the previous write value when EMIF16 is idle. This
feature is called data bus parking. EMIF16 stops driving the data bus when it issues a
read command to memory. Once read is complete and EMIF16 latches the last data
read, the data bus is immediately parked again.
3.10 Interrupt Support
EMIF16 generates one interrupt to the DSP. The interrupt can be generated due to:
•
Asynchronous Time Out
•
Rising edge on the WAIT pin
EMIF16 sets the WR bit field in the Interrupt Raw Register on rising edge of the
EMIFWAIT pin. Wait polarity bits in the Async Wait Cycle Config register have no
effect on the WR bit. The interrupts can be used to indicate ready status of connected
NAND Flash devices to respective chip select. As mentioned, the MAX_EXT_WAIT
field in the Async Wait Cycle Config Register defines the maximum number of clock
cycles for which the strobe period may be extended in Extended Wait mode during
which the EMIFWAIT pin must go inactive. If it does not go inactive, the EMIF16 sets
the asynchronous time out bit
AT
in the Interrupt Raw Register (IRR), but continues
to the hold state. For the interrupt to be enabled and sent to the DSP, the corresponding
bit in the Interrupt Mask Set Register (IMSR)
AT_MASK_SET
must be set. The