Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
390
1’b1: LSB first
21:20
SP_SEL_I2S_TX_CH
R/W
2’b00
2’b00: L/R
2’b01: R/L
2’b10: L/L
2’b11: R/R @ DAC path
19:18
SP_ADC_COMP
R/W
2’b00
2’b00: OFF
2’b01: u law
2’b10: A law
17
SP_START_TX
R/W
1’b0
1’b0: Tx is disabled
1’b1: Tx is started
16
SP_TX_DISABLE
R/W
1’b1
1’b1: SPORT TX is disabled
1’b0: SPORT TX is enabled
15
SP_I2S_SELF_LPBK_EN
R/W
1’b0
1’b1: Internal loopback mode is enabled
1’b0: Internal loopback mode is disabled
14
SP_INV_I2S_SCLK
R/W
1’b0
1’b1: I
2
S/PCM bit clock is inverted
1’b0: I
2
S/PCM bit clock is not inverted
13:12
SP_DATA_LEN_SEL
R/W
2’b00
2’b00: 16 bits
2’b10: 24 bits
2’b11: 8 bits
11
SP_EN_I2S_MONO
R/W
1’b0
1’b1: Mono
1’b0: Stereo
10
SP_EN_PCM_N_MODE
R/W
1’b0
1’b1: PCM negative mode
1’b0: PCM normal mode
9:8
SP_DATA_FORMAT_SEL
R/W
2’b00
3’b000: I
2
S
3’b001: Left-Justified
3’b010: PCM mode A
3’b011: PCM mode B
3’b110: PCM mode A-N
3’b111: PCM mode B-N
7
DSP_CTL_MODE
R/W
1’b0
1’b1: DSP and SPORT handshaking is enabled.
1’b0: GDMA and SPORT handshaking is enabled
6
SP_LOOPBACK
R/W
1’b0
1’b1: Self loopback mode
5
SP_WCLK_INVERSE
R/W
1’b0
1’b1: I
2
S/PCM word clock is inverted
4
SLAVE_DATA_SEL
R/W
1’b0
1’b1: To be an I
2
S or PCM slave (data path)
3
SLAVE_CLK_SEL
R/W
1’b0
1’b1: To be an I
2
S or PCM slave (CLK path)
2
RX_INV_I2S_SCLK
R/W
1’b0
1'b1: SCLK to Rx path (ADC path) is inverted.
1
TX_INV_I2S_SCLK
R/W
1’b0
1'b1: SCLK to Tx path (DAC path) is inverted.
0
SP_RESET
R/W
1’b0
1’b1: Reset SPORT module, remember to write 1 first and then write 0.
18.4.1.3
SP_CTRLR1
Name
: SPORT control 1 register
Size
: 32 bits
Address offset
: 0x0008
Read/write access
: read/write
31
30
29
28
27
26
25
24
INT_ENABLE
R/W
23
22
21
20
19
18
17
16
RX_SNK_LR_SW
AP
RX_SNK_BYTE_S
WAP
TX_SRC_LR_S
WAP
TX_SRC_BYTE_S
WAP
RSVD
MODE_128FS
MODE_40MHZ
R/W
R/W
R/W
R/W
R/W
R/W
15
14
13
12
11
10
9
8
RSVD
CLEAR_RX_ER
R_CNT
CLEAR_TX_ERR_
CNT
RSVD
DEBUG_BUS_SEL
R/W
R/W
R/W
7
6
5
4
3
2
1
0
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03