5 v) \1 A$ u5 U4、可以连接多个设备。USB在PC上往往具有多个接口,可以同时连接几个设备,如果接上一个有4个端口的USB HUB时,就可以再连上4个USB设备,以此类推,尽可以连下去,将你家的设备都同时连在一台PC上而不会有任何问题(注:最高可连接至127个设备)。 ( N b6 S1 d6 l; e; P- L! r6 }: s# E
参考二:SPDIF接口- U% A# Q* J6 n v) o$ U: ]& v6 Z
SPDIF + q! u3 C8 | |7 U; w+ M& M# L8 x5 |9 G4 q; w1 M$ `# ~
History1 W4 C' ~1 j% _5 \& C
Since the early 80's, a step towards digital audio has been set by the introduction of the Compact Disc player. In the beginning, those signals stayed inside the set, and were converted to analog signals before leaving the cabinet. A new trend is to keep signals into the digital domain as long as possible, because this is the only way to keep the signal quality. To make this possible different devices must be able communicate with one another within the digital domain. Several interfaces exist to perform such tasks, from which one has grown to the audio standard worldwide: IEC958 1989-03 (consumer Part) from the EBU. In Japan an equivalent EIAJ CP-340 1987-9 is standard. 2 d g2 C9 H- D6 a4 t& x0 h! Z1 ~& V5 S2 `% @
1 a8 c- n" n3 [5 K: VCharacteristics. p$ @8 X6 E6 Q8 r7 Y1 {" o: r5 p" K
Standard IEC958 "Digital audio interface" from EBU (European Broadcasting Union) details: , z$ [0 R" U8 u6 m- H* Y5 i: x2 t/ `8 q ]; J) y% I
Audio format : linear 16 bit default, up to 24 bit expandable & f5 G$ Y1 b# w6 b: mAllowed sampling frequencies (Fs) of the audio: 0 F& C: M2 y$ j. q4 A) }44.1kHz from CD + F- \& B7 p3 p
48 kHz from DAT 4 o1 ]8 G5 _" j5 z( C# ?( Y d9 D7 {3 E32 kHz from DSR " Y# | F7 r& \& b
One way communication: from a transmitter to a receiver. : v& H: [4 Q1 [8 K
Control information: / f8 e6 v# \' a9 ]2 h: b2 \. W: G
V (validity) bit : indicates if audio sample is valid. , l$ O6 F! F: U6 }/ x' D# o0 WU (user) bit : user free coding i.e. running time song, track number. 0 j" i) Y& N7 l; k8 ]9 oC (channel status) bit : emphasis, sampling rate and copy permit. / H" I" n `# _* A. RP (parity) bit : error detection bit to check for good reception. : [& g' r4 k2 {2 M( G7 K7 Z
Coding format: biphase mark except the headers (preambles), for sync purposes. 3 n9 [7 B% W1 l
Bandwidth occupation : 100kHz up to 6Mhz (no DC!) * ~/ ^/ V6 d/ g. |$ BSignal bitrate is 2.8Mhz (Fs=44.1kHz), 2Mhz (Fs=32kHz) and 3.1Mhz (Fs=48kHz). / b- p" f- N5 I8 pPhysical connection: : p' a; r, ?' d! o3 b. G& `$ a
Cable: 75ohm +/-5% (l<10m) or 75ohm +/-35% (l>10m) 8 s5 v: F0 s; t: |7 {8 mLine driver: 4 I& Z1 i! h. u2 o+ EZout: 75ohm +/-20% (100kHz .. 6Mhz) % {3 `% q) I) ^9 R0 M; J: E
Vout: 0.4Vpp .. 0.6Vpp, <0.05Vdc (75ohm terminated) 5 P c5 y: e2 P. D" \: F8 n9 CLine receiver: * ]# w" c" V: V) vZin: 75ohm +/-5% 6 {* f% l8 L0 D2 {9 k. GVin: 0.2Vpp .. 0.6Vpp 4 k$ z- k4 O6 B4 K2 r0 Y3 {' X" U% I% V. @- x8 @ N- M
The interface+ K2 {4 b, g5 E, ^
IEC958 is a newer standard which supersedes AES/EBU and also S-PDIF. The S/PDIF interface (IEC-958) is a 'consumer' version of the AES/EBU-interface. The two formats are quite compatible with each other, differing only in the subcode information and connector. The professional format subcode contains ASCII strings for source and destination identification, whereas the commercial format carries the SCMS. 3 M! x% v+ _* a
) \2 z0 [1 K9 qHere is a short comparision table of AES/EBU and S/PDIF interfaces: 1 Q2 }4 O1 x0 C: g+ B6 {( P4 d
6 z- t+ P5 ?5 Y( z5 ^ AES/EBU S/PDIF (IEC-958) 1 l! ^1 [, g; O" D4 ^8 o- f3 _& o8 A: [# b. F4 X# p
Cabling 110 ohm shileded TP 75 ohm coaxial or fiber ( b" w8 j: _# z7 j4 N, ^Connector 3-pin XLR RCA (or BNC)2 ?1 X {& U! p. p- h; [
Signal level 3..10V 0.5..1V6 t1 V- h% t* Z4 X
Modulation biphase-mark-code biphase-mark-code: e) L6 p2 ?5 Y0 E% e0 W, R! y
Subcode information ASCII ID text SCMS copy protection info 1 D* T2 q4 A) c) _/ i/ _% ^Max. Resolution 24 bits 20 bits (24 bit optional) ( N5 X" s! D1 I) J / ?5 v' X3 I- T% M+ e0 n* k& ZNOTE: AES/EBU also exists in 75 ohm/BNC version (AES-3id-1995 standard). 75 ohm BNC version of AES/EBU is very electrically similar to 75 ohm coaxial S/PDIF shown above. " m! m0 @' f! e: W$ ]0 B* AThe electrical characteristics of AES/EBU are based on on RS-422, so basically any differential RS-422 chip will do as the receiver and transmitter chips. S/PDIF coaxial interface is not specificaly based on any other standard I know of (but is quite similar in signal levels and bandwidth requrements to some video signals). $ x0 d$ G) k+ E; v% z
2 G; Q1 E) u2 q7 l9 j
Both S/PDIF and AES/EBU can, and do transfer 24 bit words. In AES/EBU, the last 4 bits have a defined usage, so if anyone puts audio in there, it has to go to something that doesn't expect the standard specifies. But in S/PDIF, there's nothing that says what you have to use the bits for, so filling them all up with audio is acceptable. Typical S/PDIF equipments only use 16 or 20 bit resolutions. While many equipments use more than 16 bits in internal processing, it's not unusual for the output to be limited to 16 bits. " m: R7 \' h% j' ^0 {. @6 K
% r$ n2 Z# i* y, {8 HNote on HDR-2 (2 pin header) interface used in some PC products:8 R( i& j- u" E5 g! f2 y0 e c
Many modern PC CD-ROM drives and some soundcards (SB32, AWE32, etc.) have a two pin digital output connector in the back of the drive and they sometimes call that interface S/PDIF. Unfortunately the electrical signal which comes from it is not exactly what is described in S/PDIF specifications. The data format is exactly the same, but the signal is TTL level (5Vpp) signal instead of the normal 1Vpp signal. The output level might be selected to make the interfacing to other digital electronics easy when signal is travelling inside the computer (the normal output driver system and input amplifiers can be avoided). The downnside of this is that you need to build some electronics to make the signal from the CD-ROM drive to match what normal S/PDIF equipments expect. ! S! B9 a7 _& L9 { `6 p
) {( ~/ R: P+ U9 h, X0 j: ]$ l; I* }
. M; l t# @6 I' }0 f8 ?Multi channel audio and S/PDIF& t* m0 |$ R6 Z3 G5 E, x
IEC958 was named IEC60958 at 1998. IEC60958 (The S/PDIF) can carry normal audio and IEC61937 datastreams. IEC61937 datastreams can contain multichannel sound like MPEG2, AC3 or DTS. When IEC61937 datastrams are transferred, the bits which normally carry audio samples are replaced with the databits from the datastream and the headers of the S/PDIF signal. Channel-status information contains one bit (but 1) which tells if the data in S/PDIF frame is digital audio or some other data (DTS, AC3, MPEG audio etc.). This bit will tell normal digital audio equipments that they don't try to play back this data as they were audio samples. (would sound really horrible if this happens for some reason). 5 z& ^: t! ~: |6 m j3 [
* H7 o0 O8 t. w( w# W
The equipments which can handle both normal audio and IEC61937 just look at those header bits to determine what to do with the received data. # O5 g4 k! j. {7 b0 p
: S. T6 ]- o+ g$ @ ) V- x a7 \, E. {- [/ qCabling details2 N* y; t( i$ e2 f
S/PDIF (IEC-958) uses 75 ohm coaxial cable and RCA connectors. 75 ohm coaxial cable is inexpensive, because it is the same cable as used in video transmission (you can buy a video cable with RCA connectors to connect you S/PDIF equipments together). Coaxial S/PDIF connections work typically at least to 10-15 meter distances with good 75 ohm coaxial cable. c& k( v, V& r+ G & `- W; H l& |3 l' xAES/EBU-interface uses the well known symmetrical connections with transformer isolation and an output impedance of 110 ohm. The signal-level of this interface is reasonably higher than in the consumer version (3...10 volts). Because AES/EBU digital audio signals are transmitted at high, video-like frequencies (at around 6MHz) and should be handled very differently than standard analog audio lines. Commonly used XLR-3 microphone cables have various impedance ratings (30 ohm to 90 ohm typical) and exhibit poor digital transmission performance. The result is signal drop out and reduced cable lengths due to severe impedance mis-matching (VSWR) between AES/EBU 110 ohm equipment. AES/EBU signal transmission work for few tens of meters with a good cable. $ a$ Q; k% h- b1 A8 o 1 n. p8 @! z6 }: X# h7 iThere also an optical version of S/PDIF interface which is usually called Toslink, because uses Toslink optical components. The transmission media is 1 mm plastic fiber and the signals are trasmitted using visible light (red transmitting LED). The optical signals have exactly the same format as the electrical S/PDIF signals, they are just converted to light signals (light on/off). Because high light signal attenuation in the Toslink fiberoptic cable, the transmission distance available using this technique is less than 10 meters (with some equipments only few meters). ) F3 k- p5 ~6 y 3 q6 b+ x4 h0 }9 I $ ~2 K. r1 x) b& Z& CWhat can make difference in the sound of digital signal ?+ L F4 G" Z7 f8 P/ K4 m
There are two things which can cause differences between the sound of digital interfaces: 3 u6 K: ?+ s. Z
, c+ D2 S( `0 R6 J
; L2 g) \0 G; Q8 G3 \) ?0 w
1. Jitter (clock phase noise) ; q( P. M4 ?/ L+ n* V% EThis really only affects sound of the signal going directly to a DAC. If you're running into a computer, the computer is effectively going to be reclocking everything. Same applies also to CD-recoders, DAT tape decs and similar devices. Even modern DACs have typically a small buffer and reclocking circuitry, so the jitter is not so big problem nowadays that it used to be. 1 E; }( e" b6 B* d- Y
# _ e8 T( X" |* Y. @ O% l' M9 e. J! b6 P& z6 }
2. Errors ( A! m3 N% L# z9 E! c! UThis usually causes very significant changes in the sound, often loud popping noises but occasionally less offensive effects. Any data loss or errors in either are a sign of a very broken link which is probably intermittently dropping out altogether. , Z9 I# G9 \$ N& H
$ _# ^* b8 g. ^3 G
& C* x9 d5 k* o& r9 B
S/PDIF signals . F4 u3 [8 ^9 O6 Y" BThe signal on the digital output of a CD-player looks like almost perfect sine-wave, with an amplitude of 500 mVtt and a frequency of almost 3 MHz. ' W$ q$ o j2 t" q' O2 d/ ^0 s# w9 j; V9 W" Q/ S+ ^
For each sample, two 32-bit words are transmitted, which results in a bit-rate of: $ h" x9 }! e9 Y+ c7 } Q* Z# [
1 P4 x$ `* e6 T! y 2.8224 Mbit/s (44.1 kHz samplingrate, CD, DAT); K. Q* A( E* G9 c1 Q
3.072 Mbit/s (48 kHz sampling rate, DAT)+ D; v( W- N8 Y
2.048 Mbit/s (32 kHz sampling rate, for satellite purposes), g5 L4 r8 J& i( ~
0 {. ]! [9 V/ y+ R
The output impedance is standard 75 ohm, so ordinary coaxial cable designed for video applications can be used. The minimal input level of S/PDIF interface is 200 mVtt which allows some cable losses. There is no real need for special quality cable as long as the cable is made of 75 ohm coaxial cable (a good video accessory cable works also as good S/PDIF cable). * l o4 s) m1 H & ^+ @$ ?! h# S: fThe Coding Format & g! I: f3 x' h% Z3 ^9 y4 mThe digital signal is coded using the 'biphase-mark-code' (BMC), which is a kind of phase-modulation. In this system, two zero-crossings of the signal mean a logical 1 and one zero-crossing means a logical 0. 2 \- C _6 r# ?7 L& t) ^
) M- h0 L1 ~5 M# q _ _ _ _ _ _ _ _ _ _ _ _/ ~5 W s1 ?( ?/ S( }/ x
| | | | | | | | | | | | | | | | | | | | | | | |% E: ]" E) ^; Y @1 g: y6 N
clock 0 ___ _| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_ + R K/ j: N# Y t9 I; B & V2 n& _5 A( l6 e ___ _______ ___ ___' C f6 b, {! \. M7 P$ Q
| | | | | | | |; X- O5 b" O3 n6 D* E
data 0 ___ _| |_______| |___| |_______| |___ ) F! i9 l2 H0 I7 g; usignal 1 0 0 1 1 0 1 0 0 1 0 ) C/ l9 E& ~$ r4 `" n8 Z u/ P+ n% ?7 J& U4 q5 E _ ___ _ _ ___ _ ___ _1 _% t+ \8 P5 l8 m" K1 H
Biphase | | | | | | | | | | | | | | | | 9 H" ?) }8 _5 L5 s& j" TMark 0 ___ | | | | | | | | | | | | | | | |9 u: ^3 \2 T5 P
signal | | | | | | | | | | | | | | | | / b' y6 E$ s% h8 O2 ? _| |_| |___| |_| |_| |_| |___| |_| |___ ! Z7 @; N# q+ L# V* b) B+ j/ Y" T0 d( N5 X$ r. K
cells 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 * F9 \3 F8 i$ s n" ]$ @# J# C# [ 5 W0 d0 T1 J6 \1 l0 R7 SThe frequency of the clock if twice the bitrate. Every bit of the original data is represented as two logical states, which, together, form a cell. The length of a cel ('time-slot') is equal to the length of a databit. The logical level at the start of a bit is always inverted to the level at the end of the previous bit. The level at the end of a bit is equal (a 0 transmitted) or inverted (a 1 transmitted) to the start of that bit. $ N. ~/ { [1 R" v3 B% \- n5 tThe first 4 bits of a 32-bit word (bits 0 through 3) form a preamble which takes care of synchronisation. This sync-pattern doesn't actually carry any data, but only equals four databits in length. It also doesn't use the BMC, so bit patterns which include more than two 0's or 1's in a row can occur (in fact, they always do). % ?) s' F! R6 v0 Y- v) |
' v3 |; k# a" l2 v# L' OThere are 3 different sync-patterns, but they can appear in different forms, depending on the last cell of the previous 32-bit word (parity): ) L5 m- w6 d% [4 k" \! A. {* t * Y- @+ ~6 B/ Q9 O7 { Preamble cell-order cell-order ( o# ]3 M" y6 Y3 @. Y: [% O/ m (last cell "0") (last cell "1") ) v9 Y# Z! @$ N* v0 A ----------------------------------------------! i( p1 K- P5 ?5 e% d7 d; X" V
"B" 11101000 00010111: l" t5 D6 M. q+ W
"M" 11100010 00011101) a# x1 _2 U Z+ ~) G
"W" 11100100 00011011( F) l; j7 i, D5 d& E
. v, ], p5 X% d3 Z1 x$ x" X" M0 ~
Preamble B: Marks a word containing data for channel A (left) ' [% I) s* C% u; a. t at the start of the data-block. . \9 |$ ^1 P# g0 l% I0 `, L: m4 A% p/ C
Preamble M: Marks a word with data for channel A that isn't" H# _* ~1 q# x) I7 i1 a. G6 C/ s9 v
at the start of the data-block. * ]3 s; g7 N4 B8 _& p }4 Q$ _! c6 F7 d+ d( k B& \: _5 r
Preamble W: Marks a word containing data for channel B. 6 k8 m2 a- ]1 x* w/ N (right, for stereo). When using more than 2, U d& {' z2 e) w+ q& Y
channels, this could also be any other channel( l% ~( [8 Y! [+ b0 {. @8 f6 w
(except for A)., r! j1 C0 J) {/ o% t
/ o1 w9 B/ `. J7 N; aWord and Block Formats : ^& ~0 l, ?* A! G' JEvery sample is transmitted as a 32-bit word (subframe). These bits are used as follows: ' b: o4 e# K# J% v. ?; N! q
& f1 X5 q$ I* f! \% k
bits meaning) s' c; e; H2 c2 b9 h- g7 z2 C5 C1 J
---------------------------------------------------------- ; A4 O- W' M- D; v8 t: [+ l 0-3 Preamble (see above; special structure)+ _$ x5 \. r: C) `
1 m* V* L# j5 C$ y( @8 Z
4-7 Auxillary-audio-databits ' z6 y% s z4 g: s: _) L 9 N; b. d9 p! b 8-27 Sample* l- a1 n7 i; O, d }- U8 Q
(A 24-bit sample can be used (using bits 4-27).9 x: H7 E1 C2 _; @
A CD-player uses only 16 bits, so only bits+ |' B. N5 Z+ e
13 (LSB) to 27 (MSB) are used. Bits 4-12 are5 H+ y8 H3 @% q) o' t
set to 0). , d2 ]( M9 ^( k2 M1 b/ |: C( }' \+ r( [
28 Validity + p! b( e) C, r/ m- e: `8 k (When this bit is set, the sample should not' Q1 ?" b: D* u& ]9 E
be used by the receiver. A CD-player uses ' V9 v& r# h. T. m, Y the 'error-flag' to set this bit).# @) y' J, n1 h3 ~0 {( U% W
% Z4 K5 b* r9 d 29 Subcode-data a: _: p4 a: c/ M+ ~$ E# Y- j 7 k, Q& M% a4 ]7 Z! [ 30 Channel-status-information $ i6 E: ]4 l0 g: U7 U8 o( b. u3 H5 K. K1 v
31 Parity (bit 0-3 are not included) : {) f6 d/ @+ I ; E9 V6 l1 Y3 J' |0 K5 xThe number of subframes that are used depends on the number of channels that is transmitted. A CD-player uses Channels A and B (left/right) and so each frame contains two subframes. A block contains 192 frames and starts with a preamble "B": , l0 G+ [9 F& \ n1 M; Y
"M" Ch.1 "W" Ch.2 "B" Ch.1 "W" Ch.2 "M" Ch.1 "W" Ch.2 "M" ... 7 E+ O# W% S7 r, m' O. B4 k ( e0 j: x+ g8 e0 g# T2 @4 X| ||_ sub __|_ sub _|| | : N B' R5 T( J( B" ]| || || |1 p% r, K! X$ z9 K# f
|__ Frame 191 ___||__ Frame 0 ___||__ Frame 1 ____|$ B. {9 T# Y" Q+ @# {
, _! Y( C! ~) l: F# [* l | ! ~$ B5 h- `. t7 x- o% L( z( [ block-start " Y& S' b) w. ^* h7 H. p9 A; h1 h5 T
Channelstatus and subcode information . U2 {8 ]/ i, a! E |In each block, 384 bits of channelstatus and subcode info are transmitted. The Channel-status bits are equal for both subframes, so actually only 192 useful bits are transmitted: : J: f9 z( h2 F! Q& F; O/ O& Q2 w8 g z6 R
bit meaning # P n! ?+ ]) j -------------------------------------------------------------8 b+ U; a- C1 `4 s' m3 {
0-3 controlbits: 5 W2 {( A5 Q" g3 I# L- g ; X8 l. o$ M9 `( b5 d7 [( x- C bit 0: 0 (is set to 1 during 4 channel transmission). Z2 T; `8 }1 `- h# a
bit 1: 0=Digital audio, 1=Non-audio (reserved to be 0 on old S/PDIF specs)6 x1 E( ^. \, A }7 I: ^
bit 2: copy-protection. Copying is allowed% L5 F7 g2 A# ~
when this bit is set. " S; ]2 M" B7 w; K: C) o& e I bit 3: is set when pre-emphasis is used.3 u/ V' Z- e% x' I, a5 ~/ M
" C0 w9 x, w4 ~" P
4-7 0 (reserved), C7 `* z9 L' g* C, t* H: ^& a! S
% Q% _4 ~' d# ^/ o7 Z; y# [7 h& p 9-15 catagory-code: 0 w+ U1 X; g$ k3 D% S( n r: X; U3 e9 @! }( B
0 = common 2-channel format 6 Q& i1 |6 Q( y 1 = 2-channel CD-format % E; s' X+ B4 H- ? (set by a CD-player when a subcode is % k9 W: I& V# n& p% K" l transmitted) 0 x$ D+ @1 v& u# J& v 2 = 2-channel PCM-encoder-decoder format% Q" ?6 ~- E5 l s. K+ f3 m
0 I; n! Z5 o/ x a- ?; s others are not used : {2 v7 z* H8 f+ T) h1 R' x5 \# `+ b * f* h7 ~2 w5 S: A$ X/ ] 19-191 0 (reserved)! T' ^1 R# l, ?: e" R$ q
H8 R5 t$ O4 V1 o0 n& e0 I* `
The subcode-bits can be used by the manufacturer at will. They are used in blocks of 1176 bits before which a sync-word of 16 "0"-bits is transmitted " k! E: s5 A4 r" i4 C9 L3 I+ z
" r, q% l* B& U1 P1 d
Electrical Interface& c0 J$ A9 x! e! e4 K ]2 Q! n
The electrical interface for S/PDIF signals can be either 75 ohm coaxial cable or optical fiber (usually called Toslink). Usually consumer models use that coaxial cable interface and semiprofessional/professional equipments use optical interface. The electrical signal in the coaxial cable is about 500mVtt. 1 e2 F* j& H) @/ m2 s- V7 i
/ N, V7 X) v) \. y7 F: d 0 l5 S. c* d# [6 Y l% r$ ^ ) _, [& {3 t5 Q" u* e, K-------------------------------------------------------------------------------- ( e. n+ B2 e7 b) s; c3 z 0 `7 o- _, O. I# rConverting between AES/EBU and S/PDIF interfaces ( a3 D0 S- C _* L6 W. m, XThere are differences in the electrical characteristics of AES/EBU and S/PDIF interfaces: " W O n2 A; d1 f+ m5 [. w( t/ ]6 C: w+ C4 _1 v
AES/EBU uses a balanced differential line based on XLR connectors and the signal levels are 5 volts ( Z: o, [) s2 V$ A$ ~
S/P-DIF uses a coaxial unbalanced line with RCA connectors and the signal levels are around 0.5 volts $ i( L' w+ y' r1 y& W" k6 P& \
You can convert one electrical interface to another with a small amount of off-the-shelf hardware and a little time as you can see in the circuit below. ) ?" _0 x8 H0 m, }* {
But the protocol used in AES/EBU and S/PDIF is not exactly the same and that can cause sometimes problems. The basic data format of AES and S/P-DIF are identical. There is a bit in the channel status frame that tells which is which. Depending upon the setting of that bit, some bits have different meanings. For example, the bits used to describe de-emphasis in the AES/EBU protocol overlap the bits used to implement the SCMS protocol in S/P-DIF land. ( e, w0 b" D5 V3 g: \( Y' J( `& t' W1 c: W) e* r
The big problem comes in the fact that MANY products out there are VERY picky about what they see in the bits, and even though a given signal may fall within the letter of the standard, some equipment will absolutely refuse to talk to it. Many equipments are reasonably flexible and tolerant of slight foos in the signal so the simple converters cna work on those. But a simple converter that works fine with one piece will as likely not work with another. + i/ G: q9 Y: U/ t6 I U
; H3 U' x1 j6 D% k! @1 | ) k& M! ?: A8 z* |What are different types of IEC 958-interface6 t! }* y3 M# n M" Z' r6 q
There are 2 implementations of IEC 958: consumer and professional. Those are referred in standard as IEC958 Types I and II. IEC958 professional format is same as AES/EBU but is carried over same type of coaxial or optical interface as consumer S/PDIF. IEC958 consumer format is the S/PDIF format used in CD-players. You can put an S-PDIF data stream on an AES/EBU physical balanced cable, or vice versa, and still have it be valid IEC958 data. Professional and consumer formats (Types I and II) differ only in the subcode information. In order to do track indexing, you must have a consumer format data stream (ie. an S/PDIF style data). ; f+ P& B- f# }9 A
" w1 L! x6 X, V6 y
5 w$ l1 C( K( m M# r0 d) v9 K DJitter specifications of AES/EBU interface& \7 t. h4 A! s: M" b) w
The AES/EBU standard for serial digital audio uses typically 163 ns clock rate and allows up to +-20 ns of jitter in the signal. This peaks to peak value of 40 ns is aroun 1/4 of the unit interval. D/A conversion clock jitter requirements are considrably tighter. A draft AES/EBU standard specifies the D/A converter clock at 1 ns jitte; however, a theoretical value for 16-bit audio could be as small as 0.1 nsec. Small jitter D/A conversion is implemented by using separate PLL clocks for data recover and DAC and by using a buffering between data recovery and DAC. 3 K" `1 V: ^8 x( L# t! [7 M5 d" B$ \) N/ e v
7 }6 T! l3 j( _) X. Z. tConversion circuits l6 o( b0 t- X4 C n+ x( _
Here are some AES/EBU and S/PDIF circuit collected from various sources. The following circuit will only convert the signal levels, not other protocol details. 3 L+ ^" C) ^' b6 @6 Q! }) X7 V _- P$ T. Z$ r, A
Remeber that although the audio data is the same in both AES/EBU and S/PDIF interfaces, they are indeed different formats, at least in their subcode. AES converted to coax is NOT S/PDIF, and S/PDIF converted to XLR balanced is NOT AES. They are still their native format, just the transmission medium has changed. Whether they will work in your application depends on the equipment chosen. , I# U; l; G& k* s
8 h6 ~. R. {3 Q% H& K SSome DATs have a switch that selects one format or the other regardless of the physical interface, some just ignore what they don't understand (usually resulting in the generally positive benefit of ignoring SCMS encoding), and some indeed gag on the "other" format. But simply fixing the physical interface works far more often than it doesn't. + Q; J7 f5 J$ s& ^* v: W( N0 l+ E+ N; P2 a) G
. V4 W. P$ T1 H1 nHow to do different conversions using the circuit below( N/ @& y' X1 }0 }
Here are some ideas how to make the most common conversions using the circits described below. Note: there is no guarantee that the information in this or the circuit are correct (they are believed to be correct but note tested by the author). 2 [$ \! I" h7 ~5 T( ~1 S% h" Z3 p$ \2 Z% w( u& g- |6 u) U
AES/EBU to S/PDIF: There is complete circuit for this $ f( g- h! `) J r5 P) M2 AS/PDIF to AES/EBU: There is complete circuit for this . k5 y3 A: }4 V6 p' m/ x
S/PDIF to optical: S/PDIF coax input circuit followed with optical TOSLINK output 3 P* `/ [. D! @! ?, N3 z9 rOptical to S/ODIF: Optical TOSLINK receiver followed with S/PDIF output buffer circuit 1 ?3 l: u7 |) w- L5 NCD-ROM digital output to normal S/PDIF: S/PDIF output buffer circuit does this 2 E/ `) p( [; [/ `CD-ROM digital output to optical: Connect optical TOSLINK output circuit to CD-ROM output 0 c, S- P6 w: K' w0 t# x1 wFor every other conversion combination you can think of you can find circuits on the lis below. To build an dapter you need two parts connected after each other. 3 Z8 {* q: ^# P! i" i6 I
First you need an input circuit which converts the input you want (coax,optical or AES/EBU) to TTL format (if the input is in TTL format you don't need any input circuitry) ! F! H( \; |" l
Connect a suitable output circuit with TTL input after the receiving electronics to give you the output format you want (coax,optical,AES/EBU,TTL) " K: ]; b' [, a0 i
After you have slected the suitable circuit parts, built them an attached them together you get the conversion circuit you want. If you need more than one output, you can connect few (1-4) output modules to one input circuitry to have more then one output. 2 Q3 O: u) M* {3 e! w' |* a
2 V2 Z$ h! g4 u; d, D1 N1 x9 X3 ^7 v: mAES/EBU to S/PDIF signal level converter 8 J% v0 x2 Q$ J# M; m/ L5 Y- vAES out: 2-------330 ohm-----+------------- SPDIF in + G1 h& l+ d; {2 ^ | / b& |& x. D% l4 x& l 3--+ 91 ohm ( C7 T' P+ [+ |1 c, y | |% D! M" Q0 p) P+ k2 m
1--+------+---------+-------------: H3 l* |* V3 V+ Y8 o3 @
| ; S% m0 s- a6 L8 y0 @# \0 [4 J2 I" b - . x, C) |' x0 G8 Y' |) A ground ! U, A0 M7 |# D, M" s s4 n8 n7 j- M9 T* V6 V1 g
The idea for this circuit is taken from articles posted to Usenet News. ( K2 e; b& _# u; ?8 F; |: t9 r+ _& R% k N$ q4 S1 d' S' ?
If you are looking for a professional components for 110 ohm to 75 ohm interconnection then check Canare web site where they have 110 OHM-75 OHM IMPEDANCE TRANSFORMERS. 4 y% X5 Z) K$ w+ V3 h9 `! y1 i# B) Y4 y) I6 c c
" A( G7 E' k2 k$ {* @3 Z
S/PDIF to AES/EBU 8 |0 [0 t" ]2 C3 y6 \$ w5 G. W _ 6 s8 \) G6 _& v# {+ @ + 5 volt | \\ * h0 y! h) k9 ] pSPDIF out: | +-| O-+1 q. F( Z1 Z8 m! G3 D: u# R
_ +--4,7k-+ | |_/ | ! d9 E. g [2 E, {5 {3 f diode ^ | _ | _ | _ | - J$ R9 K, r! \0 r4 U& Y5 u 10 u (+) | | | \\ | | \\ | | \\ | 100 n0 F* x- f% X/ {- Y
O--+--+-||-+--------+-+-| O--+--+-| O-+-| O-+-120 r-||-+----+-- 29 e v& R3 c1 U. U. Q; M
| | | | |_/ | | |_/ |_/ | |" }! Y; q3 N9 r# E( k& ?2 d$ S' q
| +-||-+ 100n _ 2,2k | 1 k | 9 @: o; K3 L5 W* u3 o& b o 75r ^ diode | | IC | | AES in% ?$ H- U3 F/ @# W. p% @9 N0 a
| | --- | --- | 1 H5 j1 ?2 K6 N8 r --- --- | _ 220r 0 m2 {6 A8 B- m1 n* { | | \\ 100 n | : i3 ? X4 N4 _' ?% {, ~# f +--+---| O---+--120 r-||-+---+--- 3 % _/ ?0 `0 J& M9 o4 y" j# l Diode = 1N914 or 1N4148 | |_/ | |, Z3 o. |1 C$ p$ d1 q9 y
| _ | 1 k +--- 1/ v+ t2 i2 E7 I3 I9 O8 ]
| | \\ | | |: g% i! Q& Y" w- g5 o# T6 f
IC = 74HC04 or CMOS 4049 +---| O---+ --- --- ' X0 h2 ^# m a6 F. N |_/ 5 Q4 t, d) H7 l- b3 ]1 f5 n; }. R 5 y7 |- r; N" Q* u' z* @The idea for this circuit is taken from articles posted to Usenet News. + U1 ^% j# y; N/ q0 M& v/ D3 W8 g + `$ G9 J- W8 p5 Q9 e0 B6 J2 ]2 S$ B1 ] ' i( n5 i7 [- r( w$ Z5 [9 I-------------------------------------------------------------------------------- ' o$ I6 P2 P% z) s" _! s : @# j2 O3 D3 R0 @$ |5 u1 JS/PDIF conversion circuit building blocks: Y3 x! h* V, }& X# u; K4 `8 `
This is a collection of S/PDIF circuits found from various sources. The circuits are presented as building blocks which have one end on S/PDIF standard signal and other end an TTL level signal. The TTL levle signal end of the circuits is designed to be the the interface which you can use to wire different modules together to make whatever S/PDIF converter circuit you want. The circuit are presented as building blocks because with this approacs you can most easily build a suitable circuit for all conversion needs. - q& l A. J* k7 H q( a! k ]1 d& R; e6 B0 Y0 \( b. |; J
Here are tips for building a conversision circuits for different uses: ; O) ~6 u3 g; c; R* \! n 1 I: a! {/ W+ U1 C, ?8 K# ^Coaxial S/PDIF to optical: Select any S/PDIF coaxial input circuit and connect it's TTL output to one optical S/PDIF (Toslink) output circuit. $ B2 d% i# r4 a* M" L: {5 K& y7 rOptical S/PDIF to coaxial: Select one optical S/PDIF input circuit and connet it's TTL output to any coaxial S/PDIF output circuit. a! b U) O. Q* C, k5 DCD-ROM digital out to coaxial: CD-ROMs output TTL level S/PDIF, so get it to caoxial you just need a coaxial output circuit where you directly connect the digital signal from your CD-ROM drive. 1 R7 O/ g; L/ U1 t! N8 t' e4 mFor other conversion needs do a little thinking and you should find quite easily the answer what blocks to connect to each other 8 c/ n( K+ z$ ]* p' i: S: C. a参考三:SPDIF接口的几个误区7 D4 |" @# W# g' b; ]7 _3 N7 k
错误一:S/PDIF的同轴是数字接口,光纤是模拟接口,同轴到光纤要经过数模转换,所以光纤的音质比同轴差。 ! I8 X+ M- Z7 j1 G% V% U8 k: o; `其实同轴和光纤都是数字接口,上面跑的都是数字信号,只不过同轴用高低电平表示1和0,光纤用有光无光表示1和0。同轴到光纤只需要经过电光转换,不需要数模转换,不会对音质产生损伤。转换来转换去也不会有变化,这就是数字信号的好处。+ N2 A' M! B; s; t' q