|
给你三个参考资料看一下,第二个是英文的
( c' [/ f! s0 M( S7 p参考一:部分传输接口
9 R: G. ?. S/ \ LVGA输入接口:VGA 接口采用非对称分布的15pin 连接方式,其工作原理:是将显存内以数字格式存储的图像( 帧) 信号在RAMDAC 里经过模拟调制成模拟高频信号,然后再输出到等离子成像,这样VGA信号在输入端(LED显示屏内) ,就不必像其它视频信号那样还要经过矩阵解码电路的换算。从前面的视频成像原理可知VGA的视频传输过程是最短的,所以VGA 接口拥有许多的优点,如无串扰无电路合成分离损耗等。
) Z. c7 W* c, T7 ]- w* n
9 |& m% e4 U3 \4 Y" Q: p/ BDVI输入接口:DVI接口主要用于与具有数字显示输出功能的计算机显卡相连接,显示计算机的RGB信号。DVI(Digital Visual Interface)数字显示接口,是由1998年9月,在Intel开发者论坛上成立的数字显示工作小组(Digital Display Working Group简称DDWG),所制定的数字显示接口标准。 1 V: {& _9 P/ S3 v, R5 w1 o5 l
DVI数字端子比标准VGA端子信号要好,数字接口保证了全部内容采用数字格式传输,保证了主机到监视器的传输过程中数据的完整性(无干扰信号引入),可以得到更清晰的图像。 / X& S+ H T1 T; a
. i4 D- v/ V( |) U. ]% ]. D. B标准视频输入(RCA)接口:也称AV 接口,通常都是成对的白色的音频接口和黄色的视频接口,它通常采用RCA(俗称莲花头)进行连接,使用时只需要将带莲花头的标准AV 线缆与相应接口连接起来即可。AV接口实现了音频和视频的分离传输,这就避免了因为音/视频混合干扰而导致的图像质量下降,但由于AV 接口传输的仍然是一种亮度/色度(Y/C)混合的视频信号,仍然需要显示设备对其进行亮/ 色分离和色度解码才能成像,这种先混合再分离的过程必然会造成色彩信号的损失,色度信号和亮度信号也会有很大的机会相互干扰从而影响最终输出的图像质量。AV还具有一定生命力,但由于它本身Y/C混合这一不可克服的缺点因此无法在一些追求视觉极限的场合中使用。 * P0 s2 M( c5 R, `. K. z; l4 C
9 x7 q: R8 u- Y7 i$ VS视频输入:S-Video具体英文全称叫Separate Video,为了达到更好的视频效果,人们开始探求一种更快捷优秀清晰度更高的视频传输方式,这就是当前如日中天的S-Video(也称二分量视频接口),Separate Video 的意义就是将Video 信号分开传送,也就是在AV接口的基础上将色度信号C 和亮度信号Y进行分离,再分别以不同的通道进行传输,它出现并发展于上世纪90年代后期通常采用标准的4芯(不含音效) 或者扩展的7芯( 含音效)。带S-Video接口的显卡和视频设备( 譬如模拟视频采集/ 编辑卡电视机和准专业级监视器电视卡/电视盒及视频投影设备等) 当前已经比较普遍,同AV 接口相比由于它不再进行Y/C混合传输因此也就无需再进行亮色分离和解码工作,而且使用各自独立的传输通道在很大程度上避免了视频设备内信号串扰而产生的图像失真,极大地提高了图像的清晰度,但S-Video 仍要将两路色差信号(Cr Cb)混合为一路色度信号C,进行传输然后再在显示设备内解码为Cb 和Cr 进行处理,这样多少仍会带来一定信号损失而产生失真(这种失真很小但在严格的广播级视频设备下进行测试时仍能发现) ,而且由于Cr Cb 的混合导致色度信号的带宽也有一定的限制,所以S -Video 虽然已经比较优秀但离完美还相去甚远,S-Video虽不是最好的,但考虑到目前的市场状况和综合成本等其它因素,它还是应用最普遍的视频接口。
' N9 V7 t, N6 ]7 k5 }5 Q& @1 [5 G; e4 K+ ?# J$ Q, |# a: _
视频色差输入接口:目前可以在一些专业级视频工作站/编辑卡专业级视频设备或高档影碟机等家电上看到有YUV YCbCr Y/B-Y/B-Y等标记的接口标识,虽然其标记方法和接头外形各异但都是指的同一种接口色差端口( 也称分量视频接口) 。它通常采用YPbPr 和YCbCr两种标识,前者表示逐行扫描色差输出,后者表示隔行扫描色差输出。由上述关系可知,我们只需知道Y Cr Cb的值就能够得到G 的值( 即第四个等式不是必要的),所以在视频输出和颜色处理过程中就统一忽略绿色差Cg 而只保留Y Cr Cb ,这便是色差输出的基本定义。作为S-Video的进阶产品色差输出将S-Video传输的色度信号C分解为色差Cr和Cb,这样就避免了两路色差混合解码并再次分离的过程,也保持了色度通道的最大带宽,只需要经过反矩阵解码电路就可以还原为RGB三原色信号而成像,这就最大限度地缩短了视频源到显示器成像之间的视频信号通道,避免了因繁琐的传输过程所带来的图像失真,所以色差输出的接口方式是目前各种视频输出接口中最好的一种。 8 R. x4 r2 n$ L1 p. @' z$ }6 _! L5 A
/ s1 Z/ F0 w4 d( B! o4 uHDMI接口:HDMI是基于DVI(Digital Visual Interface)制定的,可以看作是DVI的强化与延伸,两者可以兼容。HDMI在保持高品质的情况下能够以数码形式传输未经压缩的高分辨率视频和多声道音频数据,最高数据传输速度为5Gbps。HDMI能够支持所有的ATSC HDTV标准,不仅可以满足目前最高画质1080p的分辨率,还能支持DVD Audio等最先进的数字音频格式,支持八声道96kHz或立体声192kHz数码音频传送,而且只用一条HDMI线连接,免除数码音频接线。同时HDMI标准所具备的额外空间可以应用在日后升级的音视频格式中。与DVI相比HDMI接口的体积更小而且可同时传输音频及视频信号。DVI的线缆长度不能超过8米否则将影响画面质量,而HDMI基本没有线缆的长度限制。只要一条HDMI缆线,就可以取代最多13条模拟传输线,能有效解决家庭娱乐系统背后连线杂乱纠结的问题。HDMI可搭配宽带数字内容保护(High-bandwidth Digital Content Protection;HDCP),以防止具著作权的影音内容遭到未经授权的复制。正是由于HDMI内嵌HDCP内容保护机制,所以对好莱坞具有特别的吸引力。HDMI规格包含针对消费电子用的Type A连接器和PC用的Type B连接器两种,相信不久HDMI将会被PC业界采用。 ! {6 v$ t7 ` S: e: L0 C# I% z: p9 a
9 d' ?8 G2 N4 K5 z4 h Y O6 z
BNC 端口:通常用于工作站和同轴电缆连接的连接器,标准专业视频设备输入、输出端口。BNC电缆有5个连接头用于接收红、绿、蓝、水平同步和垂直同步信号。BNC接头有别于普通15针D-SUB标准接头的特殊显示器接口。由R、G、B三原色信号及行同步、场同步五个独立信号接头组成。主要用于连接工作站等对扫描频率要求很高的系统。BNC接头可以隔绝视频输入信号,使信号相互间干扰减少,且信号频宽较普通D-SUB大,可达到最佳信号响应效果。
5 t* `+ l5 ?' [; H$ d5 o, U) o2 t6 x; B
RS232C串口:RS-232C标准(协议)的全称是EIA-RS-232C标准,其中EIA(Electronic Industry Association)代表美国电子工业协会,RS(ecommeded standard)代表推荐标准,232是标识号,C代表RS232的最新一次修改(1969),在这之前,有RS232B、RS232A。。它规定连接电缆和机械、电气特性、信号功能及传送过程。常用物理标准还有有EIA�RS-232-C、EIA�RS-422-A、EIA�RS-423A、EIA�RS-485.这里只介绍EIA�RS-232-C(简称232,RS232)。计算机输入输出接口,是最为常见的串行接口,RS-232C规标准接口有25条线,4条数据线、11条控制线、3条定时线、7条备用和未定义线,常用的只有9根,常用于与25-pin D-sub端口一同使用,其最大传输速率为20kbps,线缆最长为15米。RS232C端口被用于将计算机信号输入控制LED显示屏。 $ n$ O; \4 S/ Z. ^0 w# P2 h. |/ V
# j, h) R$ a1 B7 g
AV接口
4 k# |, o/ z1 z; }/ M* a
# ^7 j) o9 S0 F/ nAV接口又称(RCARCA)可以算是TV的改进型接口,外观方面有了很大不同。分为了3条线,分别为:音频接口(红色与白色线,组成左右声道)和视频接口(黄色)。 # U, E9 I% F' q
% [+ P `( o4 U# k* F: h# B1 N( ]
由于AV输出仍然是将亮度与色度混合的视频信号,所以依旧需要显示设备进行亮度和色彩分离,并且解码才能成像。这样的做法必然对画质会造成损失,所以AV接口的画质依然不能让人满意。在连接方面非常的简单,只需将3种颜色的AV线与电视端的3种颜色的接口对应连接即可。
4 E! F* `; p; r1 O总体来说,AV接口实现了音频和视频的分离传输,在成像方面可以避免音频与视频互相干扰而导致的画质下降。AV接口在电视与DVD连接中使用的比较广,是每台电视必备的接口之一。
7 C+ n8 C% E; _9 q; q, y9 V2 J$ F/ I8 D
USB接口
6 }* G0 W' o* }' R/ q% v2 C/ x- \. ~/ A4 J1 B
USB是英文Universal Serial Bus的缩写,中文含义是“通用串行总线”。它是一种应用在PC领域的新型接口技术。早在1995年,就已经有PC机带有USB接口了,但由于缺乏软件及硬件设备的支持,这些PC机的USB接口都闲置未用。1998年后,随着微软在Windows 98中内置了对USB接口的支持模块,加上USB设备的日渐增多,USB接口才逐步走进了实用阶段。 ( |2 F% p' M* [
; g. }4 t/ ?! |' B8 I* ]: j
这几年,随着大量支持USB的个人电脑的普及,USB逐步成为PC机的标准接口已经是大势所趋。在主机(host)端,最新推出的PC机几乎100%支持USB;而在外设(device)端,使用USB接口的设备也与日俱增,例如数码相机、扫描仪、游戏杆、磁带和软驱、图像设备、打印机、键盘、鼠标等等。 2 s' G0 R, N9 B* J
6 v2 h( R! \" _) K% F G& i" a( BUSB设备之所以会被大量应用,主要具有以下优点:
( m) |) j* t! c. U9 L
6 [6 y$ r0 g0 b1、可以热插拔。这就让用户在使用外接设备时,不需要重复“关机à将并口或串口电缆接上à再开机”这样的动作,而是直接在PC开机时,就可以将USB电缆插上使用。
% ]2 W. W+ a x- Y0 I
! ], W4 y" o- k) _5 ] W9 K2、携带方便。USB设备大多以“小、轻、薄”见长,对用户来说,同样20G的硬盘,USB硬盘比IDE硬盘要轻一半的重量,在想要随身携带大量数据时,当然USB硬盘会是首要之选了。
" \" B6 I; X9 x O# \$ ?7 I- Q! e2 v2 J2 N* l3 j' l
3、标准统一。大家常见的是IDE接口的硬盘,串口的鼠标键盘,并口的打印机扫描仪,可是有了USB之后,这些应用外设统统可以用同样的标准与PC连接,这时就有了USB硬盘、USB鼠标、USB打印机,等等。
3 N" ^5 U* Q. s* _* a0 } ?
' p0 @+ } G4 W* z6 O4、可以连接多个设备。USB在PC上往往具有多个接口,可以同时连接几个设备,如果接上一个有4个端口的USB HUB时,就可以再连上4个USB设备,以此类推,尽可以连下去,将你家的设备都同时连在一台PC上而不会有任何问题(注:最高可连接至127个设备)。 & I3 T4 O2 v7 f& A
参考二:SPDIF接口
% f" o% w* k" @' BSPDIF" Z x- J! T% H# a. ^2 k( _ x
3 [0 j* q3 v& E- A$ w- a) ?
History$ p8 _ i. j! @' {$ R( v9 E
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.
( T7 o$ E7 z* T
* }5 k4 Q0 ?: o4 }6 u2 X% P8 C4 i3 U
6 E& J) G* F* o- V, M1 o" P) H6 c5 _Characteristics- `* `$ Z* y1 I5 v0 a7 J
Standard IEC958 "Digital audio interface" from EBU (European Broadcasting Union) details: 2 T7 |, L/ a9 N
, G% v6 a; O- i9 }4 l$ E- P
Audio format : linear 16 bit default, up to 24 bit expandable . B2 v, G: ~- \1 X5 L
Allowed sampling frequencies (Fs) of the audio: " @7 s/ C. k/ n' t; w0 W- W' Y% L
44.1kHz from CD
$ ?5 U. x0 `0 N1 _48 kHz from DAT ' E1 H/ \5 ^. [; w: z
32 kHz from DSR
4 B# \: O w1 B* x/ q! SOne way communication: from a transmitter to a receiver.
/ y9 X$ R4 @; J2 \. {$ v# w! q/ WControl information:
! k/ q+ x+ {# j; m/ O9 b! aV (validity) bit : indicates if audio sample is valid.
X. `/ P" N% D- v4 |U (user) bit : user free coding i.e. running time song, track number. 1 |3 e4 _6 B- N! K, Y% x
C (channel status) bit : emphasis, sampling rate and copy permit.
( t& H1 F1 l+ l9 D6 FP (parity) bit : error detection bit to check for good reception. # b# V3 S: C: A: ?
Coding format: biphase mark except the headers (preambles), for sync purposes. - S. Z/ d# M% A
Bandwidth occupation : 100kHz up to 6Mhz (no DC!)
* ~% m; I) i- y2 V8 _2 {Signal bitrate is 2.8Mhz (Fs=44.1kHz), 2Mhz (Fs=32kHz) and 3.1Mhz (Fs=48kHz). 6 V6 o( k+ l- h' ^
Physical connection: 2 r' n- Q' {! c( R8 Y# q
Cable: 75ohm +/-5% (l<10m) or 75ohm +/-35% (l>10m)
0 I& x8 z+ J o1 }2 p( |- ]/ pLine driver:
4 B7 x& l5 y) m. DZout: 75ohm +/-20% (100kHz .. 6Mhz)
$ f0 R/ a# \2 D7 b5 x, G% Q) m+ m/ QVout: 0.4Vpp .. 0.6Vpp, <0.05Vdc (75ohm terminated) ; `# `5 x8 ?1 P! \ [
Line receiver:
; V$ R! E: l* j. `" { yZin: 75ohm +/-5% 9 a7 y9 s1 h/ V+ V0 O6 t1 }' r
Vin: 0.2Vpp .. 0.6Vpp ! Q4 W" k% @7 ?
3 ^* Y! h; Z0 a3 D7 M: Q1 \7 i. I
The interface* H1 Q' h4 e0 ~/ q* M/ i) c" R x
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.
5 R2 |( \ F3 @. |! U9 b* [- r3 {8 a3 }: }. b2 ` M1 P, D, T
Here is a short comparision table of AES/EBU and S/PDIF interfaces: 9 L( @& Z! v; q; U! @6 e% j
. Q: ^' h4 `: F" t, B5 G. D
AES/EBU S/PDIF (IEC-958); F5 S0 T' i% |; D$ X7 T
* ]/ }( c$ e6 O( r5 n% d9 I2 j
Cabling 110 ohm shileded TP 75 ohm coaxial or fiber
6 o j0 G& F/ R' |! g) YConnector 3-pin XLR RCA (or BNC)
7 ^5 c0 y- X2 E) G' Q- {Signal level 3..10V 0.5..1V
9 d* g7 z! | e, M1 YModulation biphase-mark-code biphase-mark-code
J. q1 k P8 ?% @" Z; N, mSubcode information ASCII ID text SCMS copy protection info
" P. |7 h a. g2 M5 V) ~Max. Resolution 24 bits 20 bits (24 bit optional)
# V' c1 @9 L7 Q r/ q" ?
: a- w# U0 Y; _" {NOTE: 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.
& r1 I* D# Z( X0 f9 E$ iThe 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). 8 }7 \1 F& c% `
" N. F& d; Q8 B( f. d
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.
2 b5 u. ~0 Q) T/ D& ~: b* K! a$ g$ a4 w! z: t% P$ u
Note on HDR-2 (2 pin header) interface used in some PC products:, c: r% j8 J# \ R+ j
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. $ M- M- ?9 k+ U
! x# g( `% B) s/ D) x0 A. {- z
+ V- J ~0 k( |+ p. S2 iMulti channel audio and S/PDIF
0 D- c7 \) f R9 [$ x! nIEC958 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). 9 q% O) S! e4 V3 q, ?! `. I" c/ |
4 T% w) K5 O2 H* [, d. |
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.
; ^6 a3 l. L- S2 G; }9 f: p t O* G# |+ c9 w0 h
! I, V/ S: Q/ N1 L- t6 ~& X- U
Cabling details! }2 U5 v9 f `0 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& s3 @" i1 q4 f
' l0 p" |6 i3 Z. J1 E
AES/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. 3 u' S3 P. N9 o) a
2 e/ u; Q4 R; z# G6 w
There 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). ' E* x# w- a" u( c
+ q y9 p8 c+ V
2 p) S) y9 y/ N; E5 M! T( iWhat can make difference in the sound of digital signal ?9 f: s2 O% c/ O
There are two things which can cause differences between the sound of digital interfaces:
1 I) P, H# b" S
8 O& s& p; v" Q! e! L6 b+ c, B. l F4 {# I) u
1. Jitter (clock phase noise)
3 g- {7 J3 V+ i! Y( c/ X' {This 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.
9 o* R% ]/ w9 L7 ^" r
2 Z' c5 I/ E/ R# \0 ?+ i: j1 |; p/ r# t3 }4 ?3 q2 U
2. Errors' O! b9 {8 S* P" Q
This 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.
9 J+ v1 T: E& j; y& U0 s' Q/ j$ M! o2 U9 w
# L" V! I) _4 k) a. bS/PDIF signals k8 i. d# M: Q) C
The 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. ( ^% Z3 z; Q, o: ]: v% b; i) o
% U8 M& f/ o; y6 O8 t& KFor each sample, two 32-bit words are transmitted, which results in a bit-rate of: 2 F8 Z$ ~, k% w H d
0 u7 h [3 V: G8 s( _- k% Q& y0 [ 2.8224 Mbit/s (44.1 kHz samplingrate, CD, DAT)% l1 U9 P4 V: u* e5 |$ J! B$ W
3.072 Mbit/s (48 kHz sampling rate, DAT)8 x9 _% }+ P/ h! X, y5 l* u% e; p
2.048 Mbit/s (32 kHz sampling rate, for satellite purposes)' }- c) t$ M7 B4 V# I
, ~6 x# l$ }& c. MThe 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).
, d+ O: ]8 Y! Q; G7 d& ^. x
/ O" d \. m @$ P* l) VThe Coding Format7 R4 i4 r. M3 u4 D: h
The 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. * V/ ]# i7 D) k9 A+ a7 C2 ^
- m" W$ ^; F$ {1 U9 w, l' a _ _ _ _ _ _ _ _ _ _ _ _
5 Z' n9 E" H2 O& _/ Y | | | | | | | | | | | | | | | | | | | | | | | |
1 v) [ [3 F. O$ C' g% F+ dclock 0 ___ _| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_
8 y' d! s1 ]$ a/ C/ D) I" m5 o7 @" Z+ W" p- N& D( C
___ _______ ___ ___1 n9 ] y/ N; `6 E. t+ K
| | | | | | | |
. A3 K. a0 g0 L* Cdata 0 ___ _| |_______| |___| |_______| |___
* \2 _+ m7 E( m2 [: Ssignal 1 0 0 1 1 0 1 0 0 1 02 \/ t! f( m0 {) g, K' p
( H$ @ H% E; d
_ ___ _ _ ___ _ ___ _0 A9 A0 b7 e/ o
Biphase | | | | | | | | | | | | | | | |
3 W O% S0 K- s* l4 hMark 0 ___ | | | | | | | | | | | | | | | |
% X1 U9 @1 l/ k2 c7 U3 csignal | | | | | | | | | | | | | | | |/ X* `! ^. E; ?
_| |_| |___| |_| |_| |_| |___| |_| |___0 p, q: G0 u/ M" y# ?
% R+ l1 D+ _3 v- g
cells 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0
' P0 e8 v$ C- t/ @3 c) o
+ M- f3 ^( t. c+ t2 h, B: n2 iThe 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.
% R$ J, x8 p* l- X+ sThe 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).
9 O- I$ U; d! M5 X( b
* y* E. t8 s+ _0 E M' ], vThere are 3 different sync-patterns, but they can appear in different forms, depending on the last cell of the previous 32-bit word (parity):
( J6 r" O, Y8 d
0 p. R9 i# X9 f2 T# f. r Preamble cell-order cell-order5 ]+ V$ p) k- Q) {
(last cell "0") (last cell "1")" V8 y$ ~( I+ {5 @$ N
----------------------------------------------1 s9 c/ |8 V2 G4 i7 S5 j
"B" 11101000 00010111
9 V) f- X! h- M3 k( n "M" 11100010 00011101
0 J. l: N! L# W0 X ]" l7 F "W" 11100100 000110118 G. h8 q; D3 M* l+ _
9 }# n X; \, A9 Z8 y" _( ]
Preamble B: Marks a word containing data for channel A (left)
( ]/ O3 C, B9 m at the start of the data-block.$ \/ \# w! \) O" {$ Y7 ]5 Q6 @
5 f2 r- F/ F4 J% O$ i8 H- T. N& pPreamble M: Marks a word with data for channel A that isn't
# X+ c9 w/ H! l3 W at the start of the data-block.$ E' S/ A% ^' v- N" F/ B
5 Y0 t5 o; v; `3 A: @7 \
Preamble W: Marks a word containing data for channel B.2 x0 K8 B8 \% V$ B: k7 g8 X4 {6 d
(right, for stereo). When using more than 2+ y$ ^' @& N0 N6 f5 P7 P- I% b
channels, this could also be any other channel8 c8 R( l3 Z, r$ W
(except for A).+ ?4 c9 a1 z, o
" O/ _5 D& s- S
Word and Block Formats
# e! y; ^& K. g. k3 XEvery sample is transmitted as a 32-bit word (subframe). These bits are used as follows: 1 f' y/ r2 Z1 |0 u
0 _% {2 ^& B" ]3 z6 K- O$ N, I
bits meaning
3 B/ v& `3 b/ ~0 {+ P* x/ F! k ----------------------------------------------------------, h/ y5 B" |! j3 m3 [
0-3 Preamble (see above; special structure)- I1 U2 p3 L$ B4 v0 ^( S/ p
, b3 h+ I: x6 ^& E 4-7 Auxillary-audio-databits
! z! p; l6 s3 G. n) }9 y
, z2 K% f! o- @$ P/ k* o 8-27 Sample
$ h. J- p) n$ ~# \. P# j (A 24-bit sample can be used (using bits 4-27). ~. I% k# x* n! L
A CD-player uses only 16 bits, so only bits1 ?4 U% n' u2 k1 h8 h4 C
13 (LSB) to 27 (MSB) are used. Bits 4-12 are& }' W; Q2 S! x4 p
set to 0).. U2 _7 s; G& ~. E$ w
0 S y6 G$ r; C" b 28 Validity1 k: Q" y4 A9 i8 X& }$ n
(When this bit is set, the sample should not% d& J+ \5 g+ s; P! G( i6 f2 A
be used by the receiver. A CD-player uses, Y9 R. i9 p2 Q$ b2 A i5 `
the 'error-flag' to set this bit).
9 C' o ^# F' E. [, w' r
0 m- A$ d* L/ S 29 Subcode-data" _& V1 [; {+ [. ~* U2 {8 B# X
) i. \; Y) _) \
30 Channel-status-information
$ O9 K1 V' N) q0 r& u" j6 E/ P+ m7 E* j
31 Parity (bit 0-3 are not included)" I- D& T$ S+ S' k
. j8 b: W w7 a% aThe 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":
0 [1 x0 y& v% S/ J! ?0 M"M" Ch.1 "W" Ch.2 "B" Ch.1 "W" Ch.2 "M" Ch.1 "W" Ch.2 "M" ...# o' l# d! _# u7 O5 H
2 q+ b% S6 A# J6 H5 X
| ||_ sub __|_ sub _|| |
6 |0 i" M& N5 X5 o7 V7 i0 h| || || |; q+ V/ _5 k8 l) j& S% j4 p
|__ Frame 191 ___||__ Frame 0 ___||__ Frame 1 ____|' U6 X; O# b2 o2 k
& X. J. n' V K1 j& }: o' e/ c/ A$ B |; Z$ t( q, h$ d7 ^9 d
block-start
" k$ d% |8 j; M* s4 O( t5 W3 u
. U. k! p) y) b2 T) `6 v, TChannelstatus and subcode information& E# I" Y# l. d& |- Q# q& ~
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: 0 h+ O7 ]3 H- @) n7 g& q5 Y6 g
/ D2 {- R7 S# R( ~$ c, ] bit meaning
8 d5 h; p# v# |9 k+ G/ ]8 p9 U1 O -------------------------------------------------------------1 O3 q6 H* p0 P+ y6 J% P3 f+ Y
0-3 controlbits:" I* s$ \& N$ k: z; _& H5 w, t, I
9 X: |/ Z# B% o bit 0: 0 (is set to 1 during 4 channel transmission)
' s- G7 t9 v( b9 D bit 1: 0=Digital audio, 1=Non-audio (reserved to be 0 on old S/PDIF specs)
" N. Q" r! J/ s" P bit 2: copy-protection. Copying is allowed
' Y4 n4 [0 R. D7 S" C) N8 Y A3 y when this bit is set.
; H$ r' Y. T# B3 J! T! o, W bit 3: is set when pre-emphasis is used.
0 j- W; Y; W0 ~6 d7 Z0 D* m0 t; T6 ~- N6 a% |
4-7 0 (reserved)
) A, P8 Z* h- Y1 a" q# X8 T( ~0 L' Z1 L& J( F
9-15 catagory-code:* X0 M9 p1 B/ i* V) M& m
& w# F- N% G5 D2 G 0 = common 2-channel format
" o0 Z! ^# c7 a" B$ N+ V 1 = 2-channel CD-format' M1 [% I3 w4 r* z0 [
(set by a CD-player when a subcode is$ H+ |2 @6 t7 R2 T1 n+ Y
transmitted)
8 l- M: z; X/ b' K4 L7 y& |; v 2 = 2-channel PCM-encoder-decoder format
7 e; X+ ~/ ?9 O
6 s; V* h5 p/ H. }1 C others are not used3 \* G" F8 v# W" W2 j$ o
( Z4 O* d: L, c
19-191 0 (reserved)2 i- @9 I( g7 b7 A
) l4 g3 G, g5 q& x
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
# [$ T+ ^6 @- z2 O, @5 I" C# v- c# U! R! I" E; A% x
Electrical Interface
8 B$ V( r# I( b5 l8 u- ^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. ) G! J" ]; r- w. p
9 q7 j- L3 `; z" W
7 U/ O2 n c, U! Z8 _+ S
5 l' C9 Z n# U
--------------------------------------------------------------------------------; X' ? l. S w- ?
. T+ h$ f L3 M# y: n4 c8 u
Converting between AES/EBU and S/PDIF interfaces8 B% O* y9 L( U9 j, d
There are differences in the electrical characteristics of AES/EBU and S/PDIF interfaces: % J& D) s& s+ c) B+ y$ \+ b* ?# o2 x
& Y/ R! w" B+ {7 A* `1 ~
AES/EBU uses a balanced differential line based on XLR connectors and the signal levels are 5 volts ( n0 ~0 C K% [) I6 L H/ @+ p3 A2 [
S/P-DIF uses a coaxial unbalanced line with RCA connectors and the signal levels are around 0.5 volts 4 `( @- ^) P* V# p5 I; \
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. 4 V3 b7 C0 Z, C, o+ m; Y
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.
2 S9 k* G* ?1 |* d+ N8 }4 w2 ~1 n5 W T0 K0 {
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.
3 r4 H R9 X# @6 ~+ ?9 o$ n+ R8 \
7 I: `" U, u& x5 G( a8 K, k+ l4 O8 |
What are different types of IEC 958-interface% O; x& U- g" W" d" E6 k7 f
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). / h; M) o0 ~: U5 d; S
) d5 }/ O( b" b! j+ J% \
5 P8 i) W+ g D! B" L
Jitter specifications of AES/EBU interface
5 s1 }7 |1 X7 d# CThe 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.
% I2 \. P. T) H1 C z9 t+ l. @% |4 j6 s8 n
4 v' \ b& w0 n2 U1 H: o
Conversion circuits
& d* M2 V& e6 w7 R% F+ rHere 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.
7 u2 u ?/ G% L ^
% j7 Q" k" N& \0 b# _2 b4 vRemeber 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.
1 R9 e. S0 X' Y4 x. ]5 e
: i7 b, l. S- y2 Y+ NSome 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. 9 k. I1 q4 b3 z% g4 ^
+ }; w T: z3 p# d- e6 G
, o( ~2 Y' {* Y& U! c* ?
How to do different conversions using the circuit below
& k* _5 f& r+ f/ T7 I+ G) iHere 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).
( ]8 }7 f% ] A; {
0 O4 R5 p. Y5 g2 DAES/EBU to S/PDIF: There is complete circuit for this
. D- F7 y R+ ~; L/ E- Z( ?' @4 uS/PDIF to AES/EBU: There is complete circuit for this - j7 ]' g' ?! z% h) I
S/PDIF to optical: S/PDIF coax input circuit followed with optical TOSLINK output
3 I! O* K3 G4 T4 P1 hOptical to S/ODIF: Optical TOSLINK receiver followed with S/PDIF output buffer circuit 7 S. J3 ^+ P V C- f
CD-ROM digital output to normal S/PDIF: S/PDIF output buffer circuit does this
7 Y( U- D2 \; {6 _/ eCD-ROM digital output to optical: Connect optical TOSLINK output circuit to CD-ROM output
) D/ r1 _+ z. b* o) _ o* {/ HFor 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. 4 q% x2 k$ b/ ^: R
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)
2 Q- U/ D! u4 c/ j* W* ZConnect a suitable output circuit with TTL input after the receiving electronics to give you the output format you want (coax,optical,AES/EBU,TTL) * e6 E% w7 ]) u) {. I U- Z
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. $ Y5 K4 @- y: j n% o
; R ]9 L9 O$ X$ b: ^% T/ IAES/EBU to S/PDIF signal level converter- i* f+ ?6 x& p# P0 P) I5 R' c, S8 K
AES out: 2-------330 ohm-----+------------- SPDIF in
1 i9 ^( H: M9 _+ X- L t |
. O+ C7 @3 N2 d4 Z( `4 v! C7 ?- c) C0 k 3--+ 91 ohm
$ w, i! v1 Q) w! X) ]5 H ~7 D | |
9 }% o3 }7 G$ a4 R 1--+------+---------+-------------9 U3 X/ m5 r, D
|
$ s* _" H; P# c6 s -
; a" y+ k" h/ a4 ^ ground
, X; T3 [2 P8 v4 n/ p8 e9 j+ Q. u: n$ U( Y1 e9 Y
The idea for this circuit is taken from articles posted to Usenet News. - `3 V B7 l2 t
5 R# J. ]8 q" |# @
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.
# Z3 X2 S/ n1 e) ]# S( ]# b7 Y0 b* ?( P. x; C5 z, g
- k: e% ]$ M+ I1 F8 J$ }! `
S/PDIF to AES/EBU
9 S+ i. B' ?! { _7 O/ j, H5 d/ n+ X/ h
+ 5 volt | \\6 E6 h8 a7 h3 g' E
SPDIF out: | +-| O-+- a) |) k" P4 i: P# a) L, x f% U/ T
_ +--4,7k-+ | |_/ |! r5 z7 j0 Y; a8 \" E" t" L
diode ^ | _ | _ | _ |/ m2 f! \( n( \5 J# b' k
10 u (+) | | | \\ | | \\ | | \\ | 100 n! h5 l# X8 {, j) s% a0 P
O--+--+-||-+--------+-+-| O--+--+-| O-+-| O-+-120 r-||-+----+-- 2
" p- A c& [4 C5 X | | | | |_/ | | |_/ |_/ | |
) k+ x1 O) E2 ?$ I/ T | +-||-+ 100n _ 2,2k | 1 k |! Q& ]- ^6 g7 H2 n S* s
75r ^ diode | | IC | | AES in/ P; w) G2 e) L
| | --- | --- |% O K3 I) H8 G: J1 D" k
--- --- | _ 220r
. b p/ z9 M7 A& s$ ]- ? | | \\ 100 n |
) k0 d. ^+ X7 x( Q" m +--+---| O---+--120 r-||-+---+--- 36 n" B6 y1 d2 ]- J
Diode = 1N914 or 1N4148 | |_/ | |5 f8 b4 ~3 Z3 ~; |* O
| _ | 1 k +--- 1
Q0 o# \) \1 }1 m+ q# Y | | \\ | | |
2 M, z( C+ X; m% W* G3 u5 N IC = 74HC04 or CMOS 4049 +---| O---+ --- ---
3 j# R1 X& x2 O& B |_/
/ k! L% t. Y7 d b; v
$ {4 C9 X" g5 J/ eThe idea for this circuit is taken from articles posted to Usenet News.
) X2 i7 O! V R* q3 o4 D2 |
, I7 x; q7 n& ?0 R, u! J! z+ `7 A
0 s' l" l# j& f. {. p--------------------------------------------------------------------------------
- W/ t- D: \2 @; M! [; Z9 Q* {8 k$ b) c G
S/PDIF conversion circuit building blocks0 ?/ o k4 n: \* e$ m7 a
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. 2 n: x- Z& B7 ^1 t; ]2 V
1 W- X/ h, ^% `& _6 c* a) KHere are tips for building a conversision circuits for different uses: ) `& \% x' B+ D
4 }& k0 H& x' j' i1 D. K0 N
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.
8 D" W5 |2 ?0 O- j1 [6 N$ SOptical S/PDIF to coaxial: Select one optical S/PDIF input circuit and connet it's TTL output to any coaxial S/PDIF output circuit.
/ S/ m: X, G% ?2 ], c, c p& m% l$ ~CD-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. ( S; i, n6 N6 A- [
For other conversion needs do a little thinking and you should find quite easily the answer what blocks to connect to each other) }# q+ i0 j- u8 a7 l: o" p6 u0 b8 ^
参考三:SPDIF接口的几个误区* s5 O; Z$ i' S8 V4 j7 N, [- f
错误一:S/PDIF的同轴是数字接口,光纤是模拟接口,同轴到光纤要经过数模转换,所以光纤的音质比同轴差。
* N" ~! h! S. a% ~其实同轴和光纤都是数字接口,上面跑的都是数字信号,只不过同轴用高低电平表示1和0,光纤用有光无光表示1和0。同轴到光纤只需要经过电光转换,不需要数模转换,不会对音质产生损伤。转换来转换去也不会有变化,这就是数字信号的好处。0 ~1 j$ T V5 a4 W' {
& B( u5 T: U8 r9 H' T4 j8 F' n4 w
错误二:光纤比同轴的传输距离长。
% A1 t1 U' b; Q" I5 f- W根据推荐的文章描述,同轴的传输距离可以达到10~15米,而光纤反而只有不到10米,大家没想到吧。为什么呢?确实,电信设备用光纤可以把信号传几十上百公里,所以大家直观的感觉是光纤肯定传得远。但是电信设备用的可是激光,而S/PDIF的光纤(学名是TOSLINK)用的是普通的发光二极管,差了十万八千里。要是S/PDIF也改用激光,那传上几公里也不成问题。只是一个激光的光模块就要几百块RMB,发光二极管顶多几块钱,厂家会选哪个呢?! ^3 f" D3 ?8 Q7 b8 o
' t* `, B/ J. f. k$ {2 Y0 W错误三:越好的同轴电缆音质越好,用普通AV线充当同轴电缆会损伤音质。
( B3 B* G7 k4 m+ o: ?- p4 A这个观点和第一个观点错在一处。对于数字信号来说,只要是满足标准规定的电缆音质都一样,超过标准规定的电缆对音质没有提升。其实标准对于同轴电缆的要求并不高,10米之内的电缆阻抗在75ohm +/-5%范围的都可以,10米以上的更是放宽到75ohm +/-35%,一般的AV电缆完全满足要求,实在没必要买发烧级的同轴线。' J! [6 p6 \0 ?$ r* B, e1 r- u
% J2 k {$ G' ^. S错误四:如果声卡、主板没有同轴、光纤接口,但是有S/PDIF插针,那只需要自己从插针引线,直接焊上个同轴插座或者发光二极管,就能DIY出同轴、光纤接口。
& d* k; X, j8 N" y' r D) Y' F1 }这个观点不但错误,而且危险。根据标准,S/PDIF的同轴接口工作电压最大是0.5+/-0.1V,也就是最大不超过0.6V。而声卡、主板上的S/PDIF插针的电压是普通的TTL信号,最大电压是5V,是前者的10倍!要是把这个信号直接接到同轴插座上,再连到你的功放上,我不保证你的功放一定会烧坏,但机会很大。6 A( h, F% q+ K I1 r3 @' X
插针直接接发光二极管的危险要小一些,牺牲的只是小小的发光二极管。因为发光二极管的工作电流很小,主板插针供应的电流太大,至少要串联个电阻才行。 |
|