I S Bus Specification: 1.0 2.0 Basic Serial Bus Requirements
I S Bus Specification: 1.0 2.0 Basic Serial Bus Requirements
I S Bus Specification: 1.0 2.0 Basic Serial Bus Requirements
1.0 INTRODUCTION
Many digital audio systems are being introduced into the consumer audio market, including compact disc, digital audio tape, digital sound processors, and digital TV-sound. The digital audio signals in these systems are being processed by a number of (V)LSI ICs, such as:
A/D and D/A converters; digital signal processors; error correction for compact disc and digital recording; digital filters; digital input/output interfaces.
Standardized communication structures are vital for both the equipment and the IC manufacturer, because they increase system flexibility. To this end, we have developed the inter-IC sound (I2S) bus a serial link especially for digital audio.
SCK WS SD RECEIVER
TRANSMITTER = MASTER
RECEIVER = MASTER
CONTROLLER
CONTROLLER = MASTER
SCK
WS
LSB
SN00119
February 1986
Philips Semiconductors
continuous serial clock (SCK); word select (WS); serial data (SD);
3.1 Serial Data
is latched on the leading edge of the clock signal. The WS line changes one clock period before the MSB is transmitted. This allows the slave transmitter to derive synchronous timing of the serial data that will be set up for transmission. Furthermore, it enables the receiver to store the previous word and clear the input for the next word (see Figure 1).
4.0 TIMING
In the I2S format, any device can act as the system master by providing the necessary clock signals. A slave will usually derive its internal clock signal from an external clock input. This means, taking into account the propagation delays between master clock and the data and/or word-select signals, that the total delay is simply the sum of:
Serial data is transmitted in twos complement with the MSB first. The MSB is transmitted first because the transmitter and receiver may have different word lengths. It isnt necessary for the transmitter to know how many bits the receiver can handle, nor does the receiver need to know how many bits are being transmitted. When the system word length is greater than the transmitter word length, the word is truncated (least significant data bits are set to 0) for data transmission. If the receiver is sent more bits than its word length, the bits after the LSB are ignored. On the other hand, if the receiver is sent fewer bits than its word length, the missing bits are set to zero internally. And so, the MSB has a fixed position, whereas the position of the LSB depends on the word length. The transmitter always sends the MSB of the next word one clock period after the WS changes. Serial data sent by the transmitter may be synchronized with either the trailing (HIGH-to-LOW) or the leading (LOW-to-HIGH) edge of the clock signal. However, the serial data must be latched into the receiver on the leading edge of the serial clock signal, and so there are some restrictions when transmitting data that is synchronized with the leading edge (see Figure 2 and Table 1).
the delay between the external (master) clock and the slaves
internal clock; and
the delay between the internal clock and the data and/or
word-select signals. For data and word-select inputs, the external to internal clock delay is of no consequence because it only lengthens the effective set-up time (see Figure 2). The major part of the time margin is to accommodate the difference between the propagation delay of the transmitter, and the time required to set up the receiver. All timing requirements are specified relative to the clock period or to the minimum allowed clock period of a device. This means that higher data rates can be used in the future.
WS may change either on a trailing or leading edge of the serial clock, but it doesnt need to be symmetrical. In the slave, this signal
T tRC* SCK thtr 0 tdtr 0.8T tLC 0.35T tHC 0.35T VH = 2.0V VL = 0.8V
SD and WS
T Ttr T
= clock period = minimum allowed clock period for transmitter > Ttr tRC is only relevant for transmitters in slave mode. Figure 2. Timing for I2S Transmitter
SN00120
February 1986
Philips Semiconductors
T tLC 0.35T SCK tsr 0.2T SD and WS thr 0 tHC 0.35 VH = 2.0V VL = 0.8V
T = Tr = T >
clock period minimum allowed clock period for transmitter Tr Figure 3. Timing for I2S Receiver
SN00121
Note that the times given in both Figures 2 and 3 are defined by the transmitter speed. The specification of the receiver has to be able to match the performance of the transmitter Example: Master transmitter with data rate of 2.5MHz (10%) (all values in ns) MIN clock period T clock HIGH tHC clock LOW tLC delay tdtr hold time thtr clock rise-time tRC 100 60 360 160 160 300 TYP 400 MAX 440 Ttr = 360 min > 0.35T = 140 (at typical data rate) min > 0.35T = 140 (at typical data rate) max < 0.80T = 320 (at typical data rate) min > 0 max > 0.15Ttr = 54 (only relevant in slave mode) CONDITION
Example: Slave receiver with data rate of 2.5MHz (10%) (all values in ns) MIN clock period T clock HIGH tHC clock LOW tLC set-up time tsr hold time thtr 360 110 110 60 0 TYP 400 MAX 440 Ttr = 360 min < 0.35T = 126 min < 0.35T = 126 min < 0.20T = 72 min < 0 CONDITION
February 1986
Philips Semiconductors
0.35Ttr 0.35Ttr
0.35Ttr 0.35Ttr
2a 2a
0.35Tr 0.35Tr
2b 2b 3
All timing values are specified with respect to high and low threshold levels.
NOTES: 1. The system clock period T must be greater than Ttr and Tr because both the transmitter and receiver have to be able to handle the data transfer rate. 2a. At all data rates in the master mode, the transmitter or receiver generates a clock signal with a fixed mark/space ratio. For this reason tHC and tLC are specified with respect to T. 2b. In the slave mode, the transmitter and receiver need a clock signal with minimum HIGH and LOW periods so that they can detect the signal. So long as the minimum periods are greater than 0.35Tr, any clock that meets the requirements can be used (see Figure 3). 3. Because the delay (tdtr) and the maximum transmitter speed (defined by Ttr) are related, a fast transmitter driven by a slow clock edge can result in tdtr not exceeding tRC which means thtr becomes zero or negative. Therefore, the transmitter has to guarantee that thtr is greater than or equal to zero, so long as the clock rise-time tRC is not more than tRCmax, where tRCmax is not less than 0.15Ttr. 4. To allow data to be clocked out on a falling edge, the delay is specified with respect to the rising edge of the clock signal and T, always giving the receiver sufficient set-up time. 5. The data set-up and hold time must not be less than the specified receiver set-up and hold time.
SN00122
February 1986
Philips Semiconductors
Note: At present, TTL is considered a standard for logic levels. As other IC (LSI) technologies become popular, other levels will also be supported.
WSD
OE
DATA LEFT
WSD
OE
DATA RIGHT
LSB D
MSB
SHIFT REGISTER
SD
CLK SCK
WSD
WS
D CLK
D CLK
Q SCK
SCK
WS
SD
MSB
LSB
MSB
WSP
SN00123
February 1986
Philips Semiconductors
WSD WSP
EN SCK CLK
DATA LEFT
DATA RIGHT
EN CLK SCK
WSD
EN CLK B2
EN CLK B3
EN CLK
EN CLK Bn
CLK EN ENn
SN00124
Figure 6. Possible receiver configuration. The latches and the counter use synchronous set, reset and enable inputs, where set overrules the reset input, and reset overrules the enable input.
February 1986
Philips Semiconductors
WSD WSP
EN SCK CLK
DATA LEFT
DATA RIGHT
EN CLK SCK
WSD
EN CLK B2
EN CLK B3
EN CLK
EN CLK Bn
CLK
CLK
CLK
CLK
SN00125
Figure 7. Possible receiver configuration, using an n-bit shift-register to enable control of data input register.
February 1986