Download Print this page

Epson S1C31D50 Technical Instructions page 213

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

A data receiving procedure, and 32-bit and 8/16-bit received data read operations in memory mapped
access mode are shown below. Figures 15.5.6.1 to 15.5.6.7 show their timing charts and a flowchart.
Data receiving procedure
QSPI Flash memories of different manufacturers have a different XIP operation mode setup
procedure. The procedure described below assumes that the external Flash memory has already
been placed into XIP operation mode.
1. Send a read command that supports XIP mode to the external Flash memory.
For the sending procedure, see Steps 1 to 5 of the data sending procedure described in Section
15.5.4, "Data Transmission in Master Mode." The slave select signal that has been asserted should
be left unchanged.
2. Set the QSPI_nMADRH.RMADR[31:20] bits.
3. Write 1 to the QSPI_nMMACFG2.MMAEN bit. (Enable memory mapped access mode)
4. Read the memory mapped access area with an 8, 16, or 32-bit memory read instruction.
This operation directly reads data within the 1M-byte Flash memory area remapped to the memory
mapped access area (1M-byte system memory area starting at address 0x80000) at Step 2.
5. Repeat Step 4 as needed.
When reading an address outside the remapped area, start from Step 2 again after setting the
QSPI_nMMACFG2.MMAEN bit to 0 once.
Data receiving operations (32-bit read)
In memory mapped access mode, the internal state machine detects the address in the memory
mapped access area from which data is read. If it is the first read operation after the QSPI has
entered memory mapped access mode, the state machine generates an address cycle and a dummy
cycle (including the XIP activation confirmation bit(s)). At the same time, it pulls the HREADY signal on
the internal system bus down to low.
The address cycle can be configured for 24 or 32-bit addresses and it consists of two transfer
cycles. The state machine determines actual Flash memory address from the memory mapped
access area start address, the read address in that area, and the external Flash memory
remapping start address set using the QSPI_ nRMADRH[31:20] bits. The first transfer cycle is an 8-
bit transfer that sends the high-order 8 bits of the ad- dress (when 24-bit address cycle is
configured) or a 16-bit transfer that sends the high-order 16 bits of the ad- dress (when 32-bit
address cycle is configured). The second cycle is fixed at 16-bit transfer that sends the low- order 16
bits of the address.
A dummy cycle follows. The XIP activation confirmation byte set in the QSPI_nMB.XIPACT[7:0] bits is
sent at the beginning of the cycle.
Then, the state machine starts fetching data from the external Flash memory. Once 32-bit data has
been fetched into the internal FIFO, the FIFO read level is incremented (FIFO data ready). At this time,
the HREADY signal reverts to high and the data fetched into the FIFO is sent to the internal system
bus. The state machine prefetches two more 32-bit data from the continuous address and stores it
into the FIFO.
If the address in the memory mapped access area that is continuous to the previous read address is
read when the FIFO contains the prefetched data (FIFO data ready status), the prefetched data is sent
to the internal system bus with the HREADY signal held high (zero-wait read).
If an address in the memory mapped access area that is not continuous to the previous read address
is read, the HREADY signal is pulled down to low immediately and the FIFO read level is cleared to 0
(empty status). The
#QSPISSn signal is negated once for the period set in the QSPI_nMMACFG1.TCSH[3:0] bits and then
asserted again. After that a new address cycle, dummy cycle, and data cycle are executed.
The beginning and the end of each address, dummy, or data cycle take a couple of HCLK clocks for
handshaking.
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
(Remap external Flash memory)
Seiko Epson Corporation
15-19

Advertisement

loading