7.4.7.2 SPDIF Receiver Mode Register

This register can only be written if the WPEN bit is cleared in the SPDIF Receiver Write Protection Mode Register.

Name: SPDIFRX_MR
Offset: 0x04
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
 LOOPTEST     DPLLERSTAUTORST 
Access R/WR/WR/W 
Reset 000 
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
    RXDIRECT   SBMODE 
Access R/WR/W 
Reset 00 
Bit 76543210 
 PACK DATAWIDTH[1:0]PBMODEENDIANVBMODERXEN 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bit 31 – LOOPTEST SPDIFTX to SPDIFRX Loop Test

ValueNameDescription
0 DISABLE SPDIFRX decodes the external received line (SPDIF_RX).
1 ENABLE The SPDIFTX internal output line is decoded by SPDIFRX.

Bit 25 – DPLLERST DPLL Error Automatic Restart

ValueNameDescription
0 NOACTION An abnormal parity error detected on DPLL settings (automatically calculated each time the SPDIFRX is enabled) may lead to preamble recovery loss and after a pattern of 16 consecutive preamble errors the DPLL controller will be re-initialized to realign the data recovery (if AUTORST=1).
1 RESTART_ON_ERR As soon as a parity check error is detected on DPLL settings, the DPLL is reinitialized, providing a faster realignment time in case of abnormal internal error in the DPLL controller.

Bit 24 – AUTORST Consecutive Preamble Error Threshold Automatic Restart

ValueNameDescription
0 NOACTION No action whatever the number of consecutive preamble errors found during the period where SPDIFRX_RSR.ULOCK=0.
1 UNLOCK_ON_PRE_ERR If 16 consecutive preamble errors are detected, the clock recovery circuitry is restarted.

Bit 12 – RXDIRECT Receiver Direct Access Enable

ValueDescription
0 The Receiver Holding register must be read by software or DMA to get the audio samples from the SPDIF line.
1 The Asynchronous Sample Rate Converter (ASRC) can be directly loaded with the audio samples recovered from the SPDIF line without software or DMA intervention.

Bit 8 – SBMODE Start of Block Bit Mode

ValueNameDescription
0 ALWAYS_LOAD Whatever the preamble code, the sample is loaded in FIFO.
1 DISCARD The sample is loaded in FIFO only if a Start of Block is detected.

Bit 7 – PACK Packed Data Mode in Receive Holding Register

ValueNameDescription
0 DISABLED Each read of SPDIFRX_RHR contains 1 sample and additional information (validity bit, parity bit, user data bit, channel status bit, byte 0 bit 1 of channel status and type of frame carrying the sample).
1 ENABLED The 32-bit SPDIFRX_RHR contains only payload data. Depending on the value of SPDIFRX_MR.DATAWIDTH, the alignment of data differs. This mode optimizes the amount of system memory required to manage the samples.

Bits 5:4 – DATAWIDTH[1:0] Sample Data Width

ValueNameDescription
0 24BIT The complete data field is stored in FIFO.
1 20BIT Only the 20 MSB are stored in the FIFO.
2 16BIT Only the 16 MSB are stored in the FIFO.
3 Reserved Reserved

Bit 3 – PBMODE Parity Bit Mode

ValueNameDescription
0 PARCHECK Parity check enabled on data payload
1 NOPARCHECK No parity check on data payload

Bit 2 – ENDIAN Data Word Endian Mode

ValueNameDescription
0 LITTLE Little-endian mode for 24-bit samples
1 BIG Big-endian mode for 24-bit samples

Bit 1 – VBMODE Validity Bit Mode

ValueNameDescription
0 ALWAYS_LOAD Whatever the validity bit value is, the sample is loaded in FIFO.
1 DISCARD_IF_VB1 The sample is loaded in FIFO only if the validity bit equals 0.

Bit 0 – RXEN SPDIF Receive Enable

ValueNameDescription
0 DISABLE The SPDIF receiver is disabled.
1 ENABLE The SPDIF receiver is enabled.