
22
ZR38650
S/PDIF Status Reply
SPDIFSTATR
The SPDIFSTATR reply provides the following S/PDIF receiver
status information in response to the SPDIFSTAT command:
GETPTC Reply
GETPTCR
The GETPTCR reply is a response to eight READ commands
following the GETPTC command.
Progress Responses
Expected Parameters Response
EXPECT
EXPECT is a progress response to any command sent from the
host. It is one data word returned to the host with the number of
parameter words still expected by the ZR38650 at the time it was
sent, or the number of words still to be returned by a reply
response. It is not sent when the expected number is zero.
Interpreter Status Response
ISTATUS
The last word returned by the device after receiving a Host
command is a status word. The ISTATUS field flags any errors
detected during decoding and interpretation of the host
command.
Note that the Host commands are executed only after all param-
eters have been received and correctly decoded. Therefore the
status word does not show the outcome of the command execu-
tion, but only the result of command interpretation.
If the Host issues a new command before the previous one has
been executed the device ignores the new command and
returns ISTATUS = 83.
The Host command STAT can be used to get information on the
current execution status of a function.
SR
Sample Rate
of input: 0 = 44.1 kHz, 2 = 48 kHz or 96
kHz, 3 = 32 kHz. All other values reserved.
CC
Category Code
. The bit order in this parameter is bit-
reversed from the standard IEC-958 Category Code
where bit 0 is the left-most. Here bit 0 is the right-most bit.
PE
Pre-Emphasis
when P = 0: 0 = None, 1 = 50/15 μs.
C
Copyright
indication.
P
PCM
: 0 = PCM encoded audio, 1 = Non-PCM encoded.
SPRXSTT
S/PDIF Receiver Status.
Seven bits indicating L/R
channel, loss of synchronization, beginning of a new
block and errors for preamble, parity, biphase and invalid
input.
PTC
Presentation Time Clock.
Least significant 32 bits in units
of 90 kHz. Most significant byte first.
STC
System Time Clock.
Least significant 32 bits in units of 90
kHz. Most significant byte first.
0
1
2
3
4
5
6
7
Status Word 1
Status Word 3
Status Word 4
Status Word 2
SR
0
CC [7:0]
0
P
C
PE
0
SPRXSTT [7:0]
0
1
2
3
4
5
6
7
Status Words 1-4
Status Words 5-8
PTC [31:0]
STC [31:0]
ISTATUS
Interpreter Status
(Hex): 80 = No errors, 81 = Invalid
opcode, 82 = Invalid parameters, 83 = Not ready to
accept new commands, 84 = Command overflow, 85 =
Ready to accept new commands.
0
1
2
3
4
5
6
7
Status Word 1
Number of Expected Parameter Words
0
1
2
3
4
5
6
7
Status Word 1
ISTATUS