RM0390
27.5.3
Status register (SPDIFRX_SR)
Address offset: 0x08
Reset value: 0x0000 0000
31
30
29
Res.
r
r
15
14
13
Res.
Res.
Res.
Res.
Bit 31 Reserved, must be kept at reset value.
Bits 30:16 WIDTH5[14:0]: Duration of 5 symbols counted with SPDIFRX_CLK
This value represents the amount of SPDIFRX_CLK clock periods contained on a length of 5
consecutive symbols. This value can be used to estimate the S/PDIF symbol rate. Its accuracy is
limited by the frequency of SPDIFRX_CLK.
For example if the SPDIFRX_CLK is fixed to 84 MHz, and WIDTH5 = 147d. The estimated sampling
rate of the S/PDIF stream is:
Fs = 5 x F
kHz.
Note that WIDTH5 is updated by the hardware when SYNCD goes high, and then every frame.
Bits 15:9 Reserved, must be kept at reset value.
Bit 8 TERR: Time-out error
This bit is set by hardware when the counter TRCNT reaches its max value. It indicates that the time
interval between two transitions is too long. It generally indicates that there is no valid signal on
SPDIFRX_IN input.
This flag is cleared by writing SPDIFRXEN to 0
An interrupt is generated if IFEIE=1 in the SPDIFRX_IMR register
0: No sequence error is detected
1: Sequence error is detected
Bit 7 SERR: Synchronization error
This bit is set by hardware when the synchronization fails due to amount of re-tries for NBTR.
This flag is cleared by writing SPDIFRXEN to 0
An interrupt is generated if IFEIE=1 in the SPDIFRX_IMR register.
0: No synchronization error is detected
1: Synchronization error is detected
Bit 6 FERR: Framing error
This bit is set by hardware when an error occurs during data reception: preamble not at the
expected place, short transition not grouped by pairs...
This is set by the hardware only if the synchronization has been completed (SYNCD = 1).
This flag is cleared by writing SPDIFRXEN to 0
An interrupt is generated if IFEIE=1 in the SPDIFRX_IMR register.
0: no Manchester Violation detected
1: Manchester Violation detected
28
27
26
25
r
r
r
r
12
11
10
9
Res.
Res.
Res.
/ (WIDTH5 x 64) ~ 44.6 kHz, so the closest standard sampling rate is 44.1
SPDIFRX_CLK
SPDIF receiver interface (SPDIFRX)
24
23
22
WIDTH5[14:0]
r
r
r
8
7
6
TERR
SERR
FERR SYNCD
r
r
r
RM0390 Rev 4
21
20
19
18
r
r
r
r
5
4
3
2
SBD
OVR
PERR CSRNE RXNE
r
r
r
r
17
16
r
r
1
0
r
r
921/1328
929
Need help?
Do you have a question about the STM32F446 Series and is the answer not in the manual?