Product specification
Supersedes data of December 1994
File under Integrated Circuits, IC01
1995 Jul 17
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
FEATURES
• Transceiver for SPDIF and
• High sensitivity input for transformer-coupled links
• TTL-level input for optical links
• Built-in IEC input selector
• Built-in IEC feed-through function
• Automatic sample frequency (fs) detection
• System clock recovery from IEC input signal
• Low system clock drift when IEC input signal is removed
• Error detection and concealment
• PLL lock detection in transmit mode
• Serial audio interface conforms to I
• Auxiliary I2S-bus input for Analog-to-Digital Converter
(ADC)
• Audio output selector
• Microcontroller-controlled and stand-alone mode
• 128-byte buffer for user data
• Bytewise exchange of user data with microcontroller
• Decoding of Compact Disc (CD) subcode Q-channel
data
• Support for serial copy management system (SCMS)
• Light Emitting Diode (LED) drive capability
(sample frequency and error indication)
• Pin-selectable device address for
microcontroller interface
• Power-down mode.
“IEC 958”
2
encoded signals
S-bus format
GENERAL DESCRIPTION
The Digital Audio Input/Output circuit (DAIO) of the
TDA1315H is a complete transceiver for biphase-mark
encoded digital audio signals that conform to the SPDIF
and
“IEC 958”
made in the full CMOS-process C200.
In the receive mode, the device adjusts automatically to
one of the three standardized sample frequencies
(32, 44.1 or 48 kHz), decodes the input signal and
separates audio and control data. A clock signal of either
256 or 384 times the sample frequency is generated to
serve as a master clock signal in digital audio systems.
In the transmit mode, the device multiplexes the audio
control and user data and encodes it for subsequent
transmission via a cable or optical link.
IECIN15E007high sensitivity IEC input
IECIN06IPP04TTL level IEC input
IECSEL7IUP04select IEC input 0 or 1 (0 = IECIN0; 1 = IECIN1); this input has an internal pull-up
IECO8OPFH3digital audio output for optical and transformer link
IECOEN9IUP04digital audio output enable (0 = enabled; 1 = disabled/3-state); this input has an
TESTB10IPP04enable factory test input (0 = normal application; 1 = scan mode)
TESTC11IPP04enable factory test input (0 = normal application; 1 = observation outputs)
UNLOCK12OPP41APLL out-of-lock (0 = not locked; 1 = locked); this output can drive an LED
FS3213OPP41Aindicates sample frequency = 32 kHz (active LOW); this output can drive an LED
FS4414OPP41Aindicates sample frequency = 44.1 kHz (active LOW); this output can drive an LED
FS4815OPP41Aindicates sample frequency = 48 kHz (active LOW); this output can drive an LED
CHMODE16OPP41Ause of channel status block (0 = professional use; 1 = consumer use); this output
V
DDD2
V
SSD2
RESET19IDP09initialization after power-on, requires only an external capacitor connected to V
PD20IPP04enable power-down input in the standby mode (0 = normal application; 1 = standby
CTRLMODE21IUP04select microcontroller/stand-alone mode (0 = microcontroller; 1 = stand-alone); this
LADDR22IPP04microcontroller interface address switch input (0 = 000001; 1 = 000010)
LMODE23IPP09microcontroller interface mode line input
LCLK24IPP09microcontroller interface clock line input
LDATA25IOF24microcontroller interface data line input/output
STROBE26IDP04strobe for control register (active HIGH); this input has an internal pull-down resistor
UDAVAIL27OPF23synchronization for output user data (0 = data available; 1 = no data)
TESTA28IPP04enable factory (scan) test input (0 = normal application; 1 = test clock enable)
COPY29OPP41Acopyright status bit (0 = copyright asserted; 1 = no copyright asserted); this output
INVALID30IOD24validity of audio sample input/output (0 = valid sample; 1 = invalid sample); this pin
DEEM31OPF23pre-emphasis output bit (0 = no pre-emphasis; 1 = pre-emphasis)
MUTE32IUP04audio mute input (0 = permanent mute; 1 = mute on receive error); this pin has an
1E029PLL loop filter input
2E029decoupling internal reference voltage output
3E008analog supply voltage
4E004analog ground
resistor
internal pull-up resistor
can drive an LED
17E008digital supply voltage 2
18E009digital ground 2
this is a Schmitt-trigger input with an internal pull-down resistor
mode)
input has an internal pull-up resistor
can drive an LED
has an internal pull-down resistor
internal pull-up resistor
DDD
;
1995 Jul 175
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
SYMBOLPINPADCELLDESCRIPTION
I2SSEL33IUP04select auxiliary input or normal input in transmit mode
SDAUX34IPP04auxiliary serial data input; I
SD35IOF24serial audio data input/output; I
WS36IOF24word select input/output; I
SCK37IOF29serial audio clock input/output; I
2
I
SOEN38IUP04serial audio output enable (0 = enabled; 1 = disabled/3-state); this input has an
internal pull-up resistor
SYSCLKI39IPP09system clock input (transmit mode)
SYSCLKO40OPFA3system clock output (receive mode)
V
V
SSD1
DDD1
41E009digital ground 1
42E008digital supply voltage 1
CLKSEL43IUP04select system clock (0 = 384f
RC
int
44E029integrating capacitor output
2
S-bus
2
S-bus
2
S-bus
2
S-bus
; 1 = 256fs); this input has an internal pull-up resistor
s
Fig.2 Pin configuration.
1995 Jul 176
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
FUNCTIONAL DESCRIPTION
Modes of operation
With respect to the control of the device and the exchange
of non-audio data, a microcontroller (host) mode and a
stand-alone mode can be considered. The selection of the
mode is performed at pin CTRLMODE.
In the stand-alone mode, the device configuration is solely
determined by pins. In the host mode an internal control
register, or pins or both can be used to change the default
settings.
With respect to the direction of the digital audio data, the
device can be operated in either a transmit or a receive
mode under control of a microcontroller. In the stand-alone
mode the device is only a receiver. In the receive mode the
input signal can also be made available at the output pin
IECO (feed-through) to ease the cascading of digital audio
equipment.
The device can be brought to standby mode at all times by
activating the PD pin (power down). In this mode all
functions are disabled, all outputs 3-stated, supply current
is minimized and the contents of the register are saved.
General
For those applications where it is important to save power,
the PD pin is provided, which, when activated, puts the
TDA1315H in standby mode by disabling all functions and
3-stating all outputs, while saving register contents.
As illustrated in Fig.1, the TDA1315H contains the
following major functional blocks:
• IEC input section
• Biphase demodulator
• Frame and error detection
• Clock and timing section
• IEC output section
• Biphase modulator
• Audio section (I
2
S-bus transceiver)
• Non-audio section (control and FIFO)
• User (microcontroller) interface.
IEC
INPUT SECTION
There are two biphase signal inputs to the IEC input
section. IECIN0 accepts TTL levels from, for example, an
optical input device, while IECIN1 is designed for coaxial
cable inputs and requires signal levels of minimum
200 mV (p-p) via an external coupling capacitor. The
selection of the active input channel is performed by pin
IECSEL or by the control register or both. In the receive
mode, the selected input signal is applied internally to the
biphase audio output section to enable a feed-through
function.
B
IPHASE DEMODULATOR
In the biphase demodulator, the received signal (for details
see Chapter “References”[1] and [2]) is converted to
binary data and separated into audio and non-audio data
for further processing in their dedicated sections. The
demodulated input signal is also required for frame and
error detection.
RAME AND ERROR DETECTION
F
In the frame and error detection block, the framing
information from the received biphase signal is retrieved to
synchronize the biphase demodulator and to allow access
to the audio and non-audio data bits. An out-of-lock
condition of the PLL is flagged at UNLOCK. The validity of
audio samples is indicated at pin INVALID.
C
LOCK AND TIMING SECTION
In the clock and timing section, the timing information
inherent to the received biphase signal is retrieved and a
symmetrical master clock signal is generated and output at
pin SYSCLKO. Depending on the mode of operation, the
frequency of this master clock can be selected by pin
CLKSEL, by the control register or both to be either 256f
or 384fs (fs= audio sampling frequency). This section
contains all the circuitry of a Phase-Locked Loop (PLL),
except for the loop filter components, which are connected
externally to pins RC
and RC
int
. When the input signal is
fil
interrupted, the oscillator will slowly drift to the
centre frequency in order to keep the system operating on
a proper frequency. In the transmit mode, all required
timing signals are input at pin SYSCLKI and are derived
from an externally supplied system clock of either 256fs or
384fs. The input HIGH time of that clock may be in the
range between 30% to 70% of the clock period.
IEC
OUTPUT SECTION
In the IEC output section, either the received (feed-through
function) or the generated biphase signal is selected for
output at pin IECO, depending on the receive/transmit
mode. The output can be enabled/disabled by pin
IECOEN, by the control register or both, and can drive a
suitable optocoupler and a transformer in parallel.
s
1995 Jul 177
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
BIPHASE DEMODULATOR
In the biphase modulator section, audio and non-audio
data are combined into subframes, frames and blocks, and
encoded in the biphase-mark format during transmit mode.
Although there are always 24 audio bits per sample in a
subframe, the number of significant bits can be selected as
16, 18, 20 or 24 via the control register (host mode).
A
UDIO SECTION
In the audio section, the left and right channel audio
samples are taken from the demodulated data frames and
are output serially in accordance with the I2S-bus format
(for details see Chapter “References”[3] pins SD, SCK and
WS) when the TDA1315H is in the receive mode (I2S-bus
transmitter). The audio output signals are concealed or
muted in case certain errors were detected during
reception. Mute can be enforced by pin MUTE or via the
control register (host mode) and affects, depending on the
receive/transmit mode, the I2S-bus or IEC output signals.
MUTE is internally synchronized with the audio data. In the
transmit mode, there is an additional I2S-bus data input
SDAUX made available to accept audio data from, for
example, an ADC. This input can be selected either by pin
I2SSEL, by the control register or both. The I2S-bus Port
can be enabled/disabled by pin I2SOEN, by the control
register or both. In the transmit mode, I2S-bus data and
timing are supplied by an external source, the TDA1315H
then becomes an I2S-bus receiver. In this event, selection
of an I2S-bus source determines which signal is to be
output at IECO. Although the phase relationship between
system clock (SYSCLKI) and I2S timing (SCK) is not
critical they must be synchronous with each other, i.e. be
derived from the same source.
Receive mode
The IEC subframe format defines 20 bits for an audio
sample, plus 4 auxiliary bits, which can be used to extend
the word length. By default, all 24 data bits per sample are
output via the I2S-bus Port. This can be changed,
however, to 16, 18 or 20 bits via bits 2 and 3 in byte 1 of
the control register. The remaining bits will then be zero.
The serial audio clock frequency at pin SCK is 64 × fs, i.e.
there are 32 clock pulses per audio sample (left or right
channel).
Apart from detecting the out-of-lock condition of the PLL,
received data is checked for the errors listed below. All
detected errors will be flagged in the status register and
two of them brought out to a pin. Depending on the type of
error, different measures are taken.
• Validity flag set. This error condition is also output at pin
INVALID, simultaneously with the data. The
corresponding audio sample is not modified.
• Parity check error. A concealment operation is
performed on both audio channels (left and right), i.e.
the last correctly received stereo sample is output again.
• Biphase violation (other than preambles). A
concealment operation (hold) is performed on both
audio channels (left and right), i.e. the last correctly
received stereo sample is output again.
• PLL is out-of-lock. This error condition is also output at
pin UNLOCK. Both audio output channels (left and right)
are set to zero (mute). The error condition is sampled
with the HIGH-to-LOW transition of WS, i.e. muting
becomes effective when the outputting of a stereo
sample begins. When the PLL has locked again, muting
is released only after a full block of audio samples has
been received, free of errors.The INVALID output will
always be set to LOW simultaneously with this muting.
In the receive mode it is possible to select the auxiliary
2
S-bus data input SDAUX for output at pin SD. However,
I
there will be no suitable system clock available in the event
of an open IEC input or a disabled IEC source and output
SD will be muted when the TDA1315H is not in lock.
Regardless of which source is selected, a MUTE
command will always mute the output signal at pin SD and
set the INVALID output to LOW regardless of the validity
bit value. When mute command is disabled, muting will be
released when the outputting of the next stereo sample
begins.
1995 Jul 178
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
Table 1 Summary of validity and muting in the receive mode
When the I2S-bus output Port is disabled by pin I2SOEN in
the stand-alone mode, pins WS, SCK, SD and INVALID
will immediately become 3-state. If, however, this is
performed in the host mode via the I2SOEN pin or the
corresponding bit in the control register, only SD and
INVALID will become 3-state immediately. Pins WS and
SCK will only become 3-state after the rising edge of
STROBE when the STROBE pulse changes the setting
from receive to transmit mode. Thus in the host mode,
when remaining in the receive mode, I2SOEN only
influences the SD and INVALID pins. Pins WS and SCK
are always enabled. When the I2S-bus output Port is
re-enabled, data output will start with the beginning of a
new stereo sample.
MUTE
ACTIVATED
Transmit mode
Although the IEC subframe format supports up to 24 bits
per audio sample, the number of significant bits can be
selected as 16, 18, 20 or 24 via the control register.
Because the I2S-bus Port then operates as a receiver, the
timing has to be selected so that all data bits can be
received. Any bits unused or unsupplied will be set to
logic 0.
The information regarding audio samples that may be
unreliable or invalid has to be entered at pin INVALID
simultaneously with the data input to pin SD. The timing
will be the same as in the CD decoder ICs (e.g. the EFAB
signal of the SAA7310, see Chapter “References”[5].
As the I2S-bus Port is used as an input, it must be disabled
by the correct combination of pin I2SOEN and the
corresponding bit in the control register. The pins WS and
SCK are set to 3-state on the rising edge of STROBE,
whenever the transmit mode is activated. I2SOEN
SDAUX
SELECTED
I2SOUT
ENABLED
influences only the data pin SD. This allows for three
different configurations:
• Transmit mode #1, I
• Transmit mode #2, I2SOEN = 1, I2SSEL = 0. In this
• Transmit mode #3, I2SOEN = 0, I2SSEL = 0. In this
The remaining combination (I2SOEN = 0, I2SSEL = 1) is
not used. WS, SCK and SD are then 3-state.
Because the SDAUX input normally receives a signal from
an ADC, the signal at pin INVALID will not be interpreted
when this input is selected. All samples are assumed to be
valid. In all transmit modes, INVALID is an input pin.
VALIDITY BITINVALIDSD
2
SOEN = 1, I2SSEL = 1. In this
instance, I2S-bus timing and data are derived from an
external source and entered at pins WS, SCK and SD.
Output will be at pin IECO, if IECOEN permits.
instance, I2S-bus timing is derived from an external
source and entered at pins WS and SCK and is also
supplied to another I2S-bus source, such as an ADC.
Data from that other I2S-bus source is entered at pin
SDAUX. Output will be at pin IECO, if IECOEN permits.
In this instance, I2SSEL acts as a source selector for
pins SD and SDAUX.
instance, I2S-bus timing is derived from an external
source and entered at pins WS and SCK and is also
supplied to another I2S-bus source, such as an ADC.
Data from the other I2S-bus source is entered at pin
SDAUX. Output will be at pin IECO, if IECOEN permits,
and at pin SD. In this mode, SDAUX data is available
both at the IEC output (a type of digital monitor function)
and on the I2S-bus (e.g. for digital signal processing
purposes).
1995 Jul 179
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
Whenever MUTE is activated in any of the transmit modes, the audio data of the IEC output signal will be muted and the
validity bit set to logic 0, regardless of the INVALID input value. When SDAUX is selected, MUTE will also affect the
output at pin SD.
Table 2 Summary of validity and muting in the transmit mode
NON-AUDIO SECTION
In the non-audio section, the first 30 channel status bits
are taken from each block of data. A selection of 16 bits is
then assembled as two bytes and transferred to the user
interface. In the event of an incorrect IEC signal, i.e. no
consumer mode, an error will be flagged at pin CHMODE.
The error signal will return to its passive state after a full
block of consumer mode data has been received. The user
data bits are searched for the beginning of a ‘message’
(see Section “User data”), which is then stored bytewise in
a buffer that can be read by an external microcontroller via
the user interface. In the transmit mode, channel status
and user data bits are taken from an internal buffer that
has been written to by an external microcontroller via the
user interface. These bits are required for frame
composition in the biphase modulator.
The non-audio section supports only the consumer mode
“IEC 958”
of the
status and user data information.
The non-audio section can be operated in the stand-alone
mode (receive only) and the host mode (transmit/receive).
In the stand-alone mode, a few bits from the channel
status are brought out to pins, the user data is not
available. In the host mode, channel status and user data
are exchanged using a microcontroller. After a RESET in
the host mode, the TDA1315H provides general format by
default.
specification and handles the channel
exchanged using an external microcontroller. The
mapping of the channel status bits into these two bytes is
given in Tables 3 and 4. All SCMS operations (Serial Copy
Management System) will be performed in the
microcontroller and no manipulation in the TDA1315H is
possible. Bit 0 is always the first bit on the user interface.
In the receive mode, an error signal is generated at pin
CHMODE if a professional mode signal is received. Even
then, two bytes of information, mapped as defined in
Tables 3 and 4, are generated for output. Although there
are two bytes of channel status available for output, only
the first byte can be read. To identify future modes of the
channel status, both mode bits (bits 6 and 7 in the channel
status) are available (inverted) from the TDA1315H status
register. The channel status is created from the left
channel subframes of the IEC signal (preambles ‘B’
and ‘M’).
Whenever the channel status, as defined in
Tables 3 and 4 (16 bits), differs from the previously
received channel status, a bit will be set in the TDA1315H
status register. This helps to reduce the data traffic by
enabling the microcontroller to read the channel status
only after it has changed.
In the transmit mode, the microcontroller supplies
consumer mode (Mode 0) channel status data as
described in Table 3. Both bytes need to be transferred.
Channel status
The channel status consists of 30 bits, a number of which
are reserved for future standardization. The 16 most
significant bits (MSBs), arranged as two bytes, are
1995 Jul 1710
Philips SemiconductorsProduct specification
Digital audio input/output circuit (DAIO)TDA1315H
Table 3 First byte of transferred channel status
BIT IN
BITDESCRIPTION
0 and 1 clock accuracy29 and 28
2 and 3 sample frequency25 and 24
In principle, the user data bits may be used in any way
required by the user. In order to guarantee compatibility
between signals of any source, attempts have been made
for the standardization of a user data format. The basic
idea is to transfer ‘messages’ that consist of ‘information
units’. As messages are, typically, asynchronous with the
IEC audio block structure, their transfer relies on software
protocol. Currently, the applications for CD subcode and
DAT have been accepted. Their general format complies
with that protocol and can be described as follows:
• User data is transferred in the form of messages.
• Messages consist of information units, i.e. groups of
8 bits (bytes).
• Messages are separated by more than 8 zero bits (0).
• Information units within a message may be separated by
0 up to and including 8 zero bits.
• The MSB of each byte is sent first in the user data
channel.
• The MSB of each byte is a 1-bit (1, start bit).
• For CD subcode, one byte consists of bits 1QRSTUVW.
Normally, the exchange of user data between the
TDA1315H and the microcontroller is based on the
general format described above. In the event of CD
subcode, this means that 96 bytes need to be transferred
for each subcode frame. In order to reduce the amount of
data traffic, it is possible to separate the Q-channel bits
from the user data and transfer only them. This mode can
be enabled by a bit in the control register and leads to the
transfers of only 12 bytes per subcode frame. As there is
no check in the TDA1315H whether user data is from a CD
source, this Q-channel decoding can be employed
whenever the user data format permits.
Receive mode
User data bits are extracted from the received IEC
subframes and searched for the beginning of a message.
When Q-channel decoding is disabled (in the control
register), the data bytes of a message are stored in a
buffer for subsequent external interpretation or
processing. Any 0 bits between information units and
between messages are skipped.
It is essential to maintain synchronization of messages,
even if not all bytes of a message can be exchanged with
the microcontroller in a single transfer, or if there are
several messages in the buffer. When user data is
transferred in the general format described earlier, the
beginning of a message is indicated in the buffer by a 1 bit
in the MSB position of the first byte of that message. In all
subsequent bytes of the same message, the MSB will be
zero. This is illustrated in Table 5 for the CD subcode.
The user data buffer is implemented as a FIFO (First-In,
First-Out) with a size of 128 bytes. This allows the storing
of a full CD subcode frame. A synchronization signal at pin
UDAVAIL supports the transfer of user data to the
microcontroller. This signal goes LOW when there is at
least 1 byte of user data in the buffer, and returns HIGH
only after the last received byte has been read. This is
illustrated in Fig.3.
Based on the timing of the CD subcode, the
microcontroller should start reading data within 17 ms after
UDAVAIL has gone LOW, otherwise the buffer will fill
completely and the most recent data will be lost.
1995 Jul 1711
Loading...
+ 25 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.