VS1005g Datasheet
10
SP_BIPHERR is set if biphase coding of the S/PDIF channel is compromised.
VS1005 PERIPHERALS AND REGISTERS
SP_RX_STAT_RPERR and SP_RX_STAT_LPERR are set if the parity count is failed in the
respective subframe.
SP_RX_STAT_MISS, SP_RX_STAT_BERR, SP_RX_STAT_FERR, SP_RX_STAT_SFERR, SP_BIPHERR,
SP_RX_STAT_RPERR, and SP_RX_STAT_LPERR are “sticky” bits, i.e. if set they keep their
state until cleared by sw.
SP_RX_STAT_RV and SP_RX_STAT_LV are validity bits for right channel and left channel,
restectively. When validity bit is ’0’, sample word is a valid PCM sample.
SP_RX_STAT_RU and SP_RX_STAT_LU are user data bits. User data bits should be used as
specified in IEC 60958-3.
SP_RX_STAT_RC and SP_RX_STAT_LC are channel status bits. According to the S/PDIF
standard, both channels should convey the same bits. Again, for full description of channel
status bits, refer to IEC 60958-3.
SP_RX_BLFRCNT Bits
Bits Type Description
15:8 r
Frame block count
7:0
r
Frame count
Name
SP_RX_BLCNT
SP_RX_FRCNT
PR
EL
IM
•
Validity bit for either channel, left or right, is changed.
10.13.3 S/PDIF Transmitter
Version: 0.2, 2012-03-16
SP_RX_BLCNT is a freame block counter. This counter increment each time a new frame is
received. It is zeroed after the 191th frame is received.
SP_RX_FRCNT is zeroed with every Z-preamble and incremented with every X-preamble.
S/Pdif Receiver uses two interrupts, a
frame received interrupt
and a
channel status chance
interrupt.
Device issues an interrupt when it has received a frame. The interrupt is cleared
when SP_RX_LDATA is read. Channel status change interrupt is set when at least one of the
following conditions is satisfied:
•
Channel status bit 0, selection between professional and consumer mode, is changed.
•
Channel status bit 1, which indicates whether the sample word is linear PCM or not, is
changed.
This interrupt is enabled by setting SP_RX_CTL_INTEN bit.
S/PDIF is a serial digital audio transfer standard. Sampling frequencies up to 192 KHz and
sample word width of 16 - 24 bits are supported for two channels. S/PDIF transmitter peripheral
has a processor interface and one external output signal for digital audio. S/PDIF is described
in IEC 60958-1 and IEC 60958-3. Standard connectors are defined in IEC 60268-11:1987
although commercial products feature a variety of connectors both electrical and optical.
75
IN
AR
Y