Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
408
19.3.2.2
CTRLR1
Name:
Control Register 1
Size:
16 bits
Address offset:
0x04
Read/Write access:
read/write
This register exists only when the SPI is configured as a master device. When the SPI is configured as a serial slave, writing to this location has
no effect; reading from this location returns 0. Control register 1 controls the end of serial transfers when in receive-only mode. 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
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
NDF
R/W
Bit
Name
Access
Reset
Description
31:16
RSVD
N/A
-
Reserved
15:0
NDF
R/W
0x0
Number of Data Frames. When TMOD = 10 or TMOD = 11, this register field sets the number
of data frames to be continuously received by the SPI. The SPI continues to receive serial data
until the number of data frames received is equal to this register value plus 1, which enables
you to receive up to 64 KB of data in a continuous transfer.
When the SPI is configured as a serial slave, the transfer continues for as long as the slave is
selected. Therefore, this register serves no purpose and is not present when the SPI is
configured as a serial slave.
19.3.2.3
SSIENR
Name:
SSI Enable Register
Size:
1 bit
Address offset:
0x08
Read/Write access:
read/write
This register enables and disables the SPI.
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
RSVD
SSI_EN
R/W
Bit
Name
Access Reset
Description
31:1 RSVD
N/A
-
Reserved
0
SSI_EN
R/W
0
SPI Enable. Enables and disables all SPI operations. When disabled, all serial transfers are halted
immediately. Transmit and receive FIFO buffers are cleared when the device is disabled. It is
impossible to program some of the SPI control registers when enabled. When disabled, the
ssi_sleep output is set (after delay) to inform the system that it is safe to remove the ssi_clk, thus
saving power consumption in the system.
19.3.2.4
SER
Name:
Slave Enable Register
Size:
1 bit
Address offset:
0x10
Read/Write access:
read/write
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03