Audio Codec Controller (ACC)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
391
FRAME_SYNC_OFFSET
R/W
Bit
Name
Access
Reset
Description
31:24
INT_ENABLE
R/W
8’h0
0: For the interrupt of ‘SP_READY_TO_TX’
1: For the interrupt of ‘SP_READY_TO_RX’
23
RX_SNK_LR_SWAP
R/W
1’b0
1’b1: Swap L/R audio samples written to the sink memory
22
RX_SNK_BYTE_SWAP
R/W
1’b0
1’b1: Swap H/L bytes written to the sink memory
21
TX_SRC_LR_SWAP
R/W
1’b0
1’b1: Swap L/R audio samples read from the source memory
20
TX_SRC_BYTE_SWAP
R/W
1’b0
1’b1: Swap H/L bytes read from the source memory
19:18
RSVD
N/A
6’h0
Reserved
17
MODE_128FS
R/W
1’b0
1’b1: Clock source is 128*fs
1’b0: Clock source is 256*fs
16
MODE_40MHZ
R/W
1’b0
1’b1: Clock source is 40MHz
1’b0: Clock source is 128*fs or 256*fs
15:14
RSVD
N/A
2’b00
Reserved
13
CLEAR_RX_ERR_CNT
R/W
1’b0
Write 1'b1 and then write 1'b0 to clear Rx error counter.
12
CLEAR_TX_ERR_CNT
R/W
1’b0
Write 1'b1 and then write 1'b0 to clear Tx error counter.
11
RSVD
N/A
1’b0
Reserved
10:8
DEBUG_BUS_SEL
R/W
3’h0
3’b000: debug_bus_a
3’b001: debug_bus_b
….
3’b111: debug_bus_h
7:0
FRAME_SYNC_OFFSET
R/W
8’h81
To control the length of ‘long_frame_sync’ signal when it is ON.
It is set to 50% of the period of the sampling rate by default.
18.4.1.4
SP_CTRLR2
Name
: SPORT control 2 register
Size
: 32 bits
Address offset
: 0x000C
Read/write access
: read/write
31
30
29
…
8
7
6
RSVD
5
4
3
2
1
0
RX_FIFO_DEPTH_HALF_SEL
TX_FIFO_DEPTH_HALF_SEL
RSVD
R/W
R/W
Bit
Name
Access
Reset
Description
31:6
RSVD
N/A
26’h0
Reserved
5
RX_FIFO_DEPTH_HALF_SEL
R/W
1’b0
1’b1: Rx FIFO depth will reduce to half. It can reduce the data path latency.
4
TX_FIFO_DEPTH_HALF_SEL
R/W
1’b0
1’b1: Tx FIFO depth will reduce to half. It can reduce the data path latency.
3:0
RSVD
N/A
4‘b0
Reserved
18.4.1.5
SP_RX_DR
Name
: SPORT Rx data register
Size
: 32 bits
Address offset
: 0x0010
Read/write access
: read
31
30
29
28
27
26
25
24
…
7
6
5
4
3
2
1
0
SP_RX_DR
WR
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03