Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If the pad TX delay is t1,than from device to response data until SPI Controller receive data the delay is t2.
  • NEG_SAMPLE is spi_controller default sample point
  • As above figure,controller can't get correct data in the default sample point,user can fine tune spi_timing[3:1] to get correct read timing. For example, in figure 16-3 set spi_timing[3:1]=1 can get correct sample data.


17.4 SPINAND SPI NAND Interrupts

The SPI_NAND interrupt events are connected to the same interrupt vector, please refer to figure 17-4. These events generate an interrupt if the corresponding "Mask Bit" isn't set. The mask control register is in Group 87.17. The interrupt status register is in Group 87.18. SPI_NAND controller interrupt is a level signal. It supports three kinds of interrupt status. If one interrupt mask enable, this interrupt will only update the status, the SPINAND_INT will not

Anchor
_GoBack
_GoBack
be set.

Figure 16-4 SPINAND Interrupt Tree
SPI interrupt status register (Group 87.18 spi_intr_sts) description.

...



87.2 SPI Page Address Regsister (spi page addr)
Address: 0x9C002B88
Reset: 0x0


Field NameBitAccessDescription
PAGE ADDR BYTE331:24RWPage Address[31:24] to be send to SPI DEVICE
PAGE ADDR BYTE223:16RWPage Address[23:16] to be send to SPI DEVICE
PAGE ADDR BYTE115:8RWPage Address[15:8] to be send to SPI DEVICE
PAGE ADDR BYTE07:0RWPage Address[7:0] to be send to SPI DEVICE

 

87.3 SPI Data Register (spi data)
Address: 0x9C002B8C
Reset: 0x0


Field NameBitAccessDescription
DATA BYTE331:24RWDATA[31:24] to be write to or read from SPI DEVICE
DATA BYTE223:16RWDATA[23:16] to be write to or read from SPI DEVICE
DATA BYTE115:8RWDATA[15:8] to be write to or read from SPI DEVICE
DATA BYTE07:0RWDATA[7:0] to be write to or read from SPI DEVICE



87.4 SPI Status Register (spi status)
Address: 0x9C002B90
Reset: 0x0000


Field NameBitAccessDescription
Reserved31:21RO
PRE FETCH BUSY20ROIndicate pre-fetch operation ongoing
SP2 FLAG CHIP B19ROIndicate SP2 mode of chip B
SP2 FLAG CHIP A18ROIndicate SP2 mode of chip A
ADDR 4BYTE FLAG CHIP B17ROIndicate 4bytes address mode status of chip B
1: current ADDR mode is 4 bytes;
0: ADDR mode is normal mode.
This bit will be set to 1'b1 after EN4B command received,
1'b0 after EX4B command received.
ADDR 4BYTE FLAG CHIP A16ROIndicate 4bytes address mode status of chip A
1: current ADDR mode is 4 bytes;
0: ADDR mode is normal mode.
This bit will be set to 1'b1 after EN4B command received,
1'b0 after EX4B command received.
Reserved15:8RODefault to be zero
FLASH STATUS7:0ROStatus feed back from SPI DEVICE



87.5 SPI Configuration1 Register (spi auto cfg)
Address: 0x9C002B94
Reset: 0x3B00


...



87.10 SPI Buffer Address Register (spi buf addr)
Address: 0x9C002BA8
Reset: 0x0000


Field NameBitAccessDescription
Reserved31:22RODefault to be zero
BUF RADDR21:16RW

SPI DATA64 read address
BUF RADDR will decrease by 2 when a read of SPI DATA64 and reading from SPI DEVICE is on going.

User can define the start read address of data buffer by setting BUF RADDR.

Reserved15:6RODefault to be zero
BUF WADDR5:0RWSPI DATA64 write address
BUF WADDR will increase by 2 when every writing of SPI DATA64. User can define the start write address of data buffer by setting BUF WADDR.



87.11 SPI Status2 Register (spi status 2)
Address: 0x9C002BAC
Reset: 0x0000

...




87.13 Memory Data Address (mem data addr)
Address: 0x9C002BB4
Reset: 0x0000


Field NameBitAccessDescription
MEM DATA ADDR31:0RWMemory Data Address
DMA data start address



87.14 Memory Data Address (mem parity addr)
Address: 0x9C002BB8
Reset: 0x0000


Field NameBitAccessDescription
MEM PARITY ADDR31:0RWMemory Parity Address
DMA parity data start address



87.15 SPI Column Page Address (spi col addr)
Address: 0x9C002BBC
Reset: 0x0000


Field NameBitAccessDescription
Reserved31:16RODefault to be zero
COL ADDR BYTE115:8RWSPI Column Addr
Column Address[15:8] to be send to SPI device
COL ADDR BYTE07:0RWSPI Column Addr
Column Address[7:0] to be send to SPI device



87.16 SPI BCH configuration Register (spi bch)
Address: 0x9C002BC0
Reset: 0x0000


...