
13
ZR38650
The words received back from the ZR38650 when the host ini-
tiates a transfer will be of the form:
The responses are of two types, a Reply to READ commands
following specific Write commands or the Progress responses to
each Write command. The Progress response is always the
number of still expected parameters (EXPECT) and/or READs,
followed by the response and interpreter status (ISTATUS).
All responses to commands sent on the SPI are delayed by two
words as shown in the example of the SETIO command which
has both parameter words (Para 1-4) and two Reply data words
(SETIOR). Note that the initial ISTATUSes returned are a
response to previous READs sent by the host. There are no
delays on the parallel host interface or the serial Z2C interface
in the normal alternating single-byte transmit/receive protocol.
The second example below shows the response to the VER
command. The EXPECT value tells the host how many bytes of
information are returned by the command.
See Table 9 on page 23 for a summary of the sequence of com-
mands, parameters, reads, responses and status.
The following descriptions explain the ZR38650’s standard func-
tions as well as the specifics of the commands used and their
responses. They are in the same order as Tables 7 and 8.
0
1
2
3
4
5
6
7
Data Word 0
Data Word 1
Data Word N-1
Words sent from Host
1
SETIO
2
Para1
3
Para2
4
Para3
5
Para4
6
READ
7
READ
8
READ
9
READ
10
READ
Words sent from ZR38650
ISTATUS ISTATUS
1
Exp1=5
2
Exp2=4
3
Exp3=3
4
Exp4=2
5
Exp5=1
6
SETIOR1
7
SETIOR2
8
ISTATUS
Time
Words sent from Host
1
VER
2
READ
3
READ
4
READ
5
READ
6
READ
7
READ
8
READ
Words sent from ZR38650
Time
ISTATUS
ISTATUS
1
EXPECT=4
2
A1
3
20
4
10
5
02
6
ISTATUS
Note that the descriptions on the following pages are meant
to be inclusive of all functions that are currently available on
the ZR38650. Some functions require that additional code be
downloaded into program RAM. Likewise, note that
command parameter tables are all inclusive.
Individual program and ROM release documents should be
consulted to determine the exact functionality for the ROM
version and program release that is being used.
Table 8: Standard Function Response Summary (ZR38650 to Host Transfers)
Class
Name
Response
operation
code (Hex)
Number of
data words
Description
Reply Response
Data words returned to the host as the result of sending specific commands
followed by READ commands
Primary
Decoding
And Test
Functions
AC3STATR
05
16
Status and information about the AC-3 stream
PCMPROLR
04/06
8
Status and information about the PCM or Pro Logic stream
MPEGSTATR
07
12
Status and information about the MPEG stream
PNGSTATR
03
8
Status and information about the PNG stream
Set-Up
Functions
VERR
-
4
Four byte version number of ROM read by VER command
SETIOR
-
2
Two words of GPIOC and GPIO registers
PLLR
-
1
Two bits which indicate the PLL lock status after a PLLCFG command
PEEKR
-
4N
N 32-bit words from core processor RAM specified by PEEK command
Operation
Functions
SPDIFSTATR
-
4
S/PDIF input channel status
GETPTCR
-
8
PTC and STC values of 32 bits each
Progress Response
Data words returned to host in the normal process of sending any command
EXPECT
-
1
Expected number of parameter words still to be received from host
ISTATUS
-
1
Interpreter status