Serial Peripheral Interface (SPI)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
419
31:1
RSVD
N/A
-
Reserved
0
SSRICR
R
0
When SPI is configured as serial-slave, this register is used to Clear SS_N Rinsing Edge
Detect Interrupt. This register reflects the status of the interrupt. A read from this
register clears the ssi_ssr_intr interrupt; writing has no effect.
19.3.2.24
DR
Name:
Data Register
Size:
16 bits
Address offset:
0x60 to 0xEC
Read/write access:
read/write
The SPI data register is a 16-bit read/write buffer for the transmit/receive FIFOs. When the register is read, data in the receive FIFO buffer is
accessed. When it is written to, data are moved into the transmit FIFO buffer; a write can occur only when SSI_EN = 1. FIFOs are reset when
SSI_EN = 0.
Note
: The DR register in the SPI occupies thirty-six 32-bit address locations of the memory map to facilitate AHB burst transfers. Writing to any
of these address locations has the same effect as pushing the data from the pwdata bus into the transmit FIFO. Reading from any of these
locations has the same effect as popping data from the receive FIFO onto the prdata bus. The FIFO buffers on the SPI are not addressable
.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DR
R/W
Bit
Name
Access
Reset
Description
31:16
RSVD
N/A
-
Reserved
15:0
DR
R/W
0x0
Data Register. When writing to this register, you must right-justify the data. Read data are
automatically right-justified.
Read – Receive FIFO buffer
Write – Transmit FIFO buffer
19.3.2.25
RX_SAMPLE_DLY
Name:
Rx Sample Delay Register
Size:
8 bits
Address offset:
0xFC
Read/write access:
read/write
This register is valid only when the SPI is configured as serial-master.
This register controls the number of ssi_clk cycles that are delayed—from the default sample time—before the actual sample of the rxd input
signal occurs. It is impossible to write to this register when the SPI is enabled; the SPI is enabled and disabled by writing to the SSIENR register.
31
30
29
28
27
26
…
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
RSD
R/W
Bit
Name
Access
Reset
Description
31:8
RSVD
N/A
-
Reserved
7:0
RSD
R/W
0x0
Receive Data (rxd) Sample Delay. This register is used to delay the sample of the rxd input
signal. Each value represents a single ssi_clk delay on the sample of the rxd signal.
Note
: If this register is programmed with a value that exceeds the depth of the internal
shift registers (SSI_RX_DLY_SR_DEPTH), a zero (0) delay will be applied to the rxd sample.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03