longan register: SPI_CTRL1
Details
- Name
- SPI_CTRL1
- Offset
- 03a0
- Feature
- INTERFACE
Description
SPI Controller register (1)
default: 0x0034_0000
Fields
Name | LSB | Bits | Description |
---|---|---|---|
RESERVED | 29 | 3 |
|
DATA_WIDTH | 20 | 9 |
SPI Command read/write data width Note, val + 1, e.g. 0x000 = 1 byte, max is 512 bytes. |
ADDR_WIDTH | 17 | 3 |
External SPI slave address width
|
SPI_CLK_DIV | 14 | 3 |
SPI Clock divider @400 MHz System Clock
@150 MHz System Clock
|
GPIO_SPI_SEL | 13 | 1 |
GPIO SPI Select
|
CSB_OUT_SEL | 12 | 1 |
Chip select choice Note, depends on GPIO6/GPIO7 setting
|
GPIO6_CSB1_SEL | 11 | 1 |
GPIO6 Chip select choice
|
GPIO7_CSB0_SEL | 10 | 1 |
GPIO7 Chip select choice
|
SPI_CMD | 2 | 8 |
SPI command |
SPI_CMD_TYPE | 1 | 1 |
SPI Read or Write selector
|
SPI_TRIG | 0 | 1 |
SPI execute command
|