Square waves or 1's and 0's?


When my pc is sending signal to my avr via ethernet cable, is it sending 1's and 0's or is it sending square waves? When my transport is sending signal to coax input on my processor, is it sending square waves or 1's and 0's?

Lynne
arnettpartners
Hi Lynne,

The most accurate answer is probably "neither."

A square wave, in the context of electrical signals, is a voltage that alternates periodically between a higher voltage level and a lower voltage level, spending an equal amount of time in each of the two states. An ideal square wave has infinitely fast transitions between the two states, and each voltage level is perfectly precise and constant, i.e., no noise (random fluctuation of the voltage levels) is present. Neither of those conditions is possible in the real world, so what are referred to as "square waves" are approximations of ideal square waves.

A square wave cannot normally be used to convey information, because its pattern of alternating between the two voltage states remains the same all the time. It can be used in many applications as a "clock signal," however, which controls the timing of whatever operations are performed by the circuit that is involved. Square waves can also be useful as test signals, to evaluate circuit or component performance.

1's and 0's are just numbers. The decimal (base 10) numbering system that humans like to use utilizes numbers whose individual digits can range from 0 to 9. The 1's and 0's you refer to are based on the binary (base 2) numbering system, where the only allowable digits are 1 and 0. Either system can represent all possible numbers; it just takes more digits to do it in the binary system. Computers and other digital devices are designed based on the binary number system because their practical implementation is facilitated by the fact that only two states have to be distinguished from each other.

A series of 1's and 0's can be used to convey information. An example of "information" is the amplitude (volume) of a music signal at a given instant of time. Since those 1's and 0's are numbers, though, they in turn have to be represented by something else, such as a voltage level, before they can be sent or communicated or processed by a physical circuit. In some applications, a 1 may be represented by a higher voltage, and a 0 by a lower voltage, or vice versa.

In the two cases you mentioned, though, those approaches aren't used, in part because clock and data are combined into a single signal, in such a manner that the receiving circuit can separate the two. S/PDIF encodes the 1 and 0 data, together with the clock and additional necessary information as described in the writeup, into something called Biphase Mark or Differential Manchester Code. Ethernet, since it is a networking standard that is designed to provide communications between multiple devices at arbitrary and intermittent times, and in its modern forms at very high speeds, is complex and is described further in this Wikipedia writeup and at the links it provides. Different codings, all of them combining clock, data, and other necessary information, are used for each of the commonly used link speeds (10, 100, or 1000 mbps).

Hope that clarifies more than it confuses :-)

Best regards,
-- Al
first you need to understand a meaning of analogue signal, than modulation, than sampling, than binary algebra.

otherwise any technical content will seem to be confusing.
Paul McGowan ran a huge post on these issues with DACs. Go to www.psaudio.com and read "Paul's Posts". It is a ton of reading...
Thanks, everybody. I've been reading on the net. Someone says the signal is 1's and 0's and the next person (critic) says square waves. You open the door so that I can understand the concepts. What started it is that I have an entry level (RCA)MIT digital coax and a signalcable digital coax. I knew that the MIT didn't cut it so I tried the signalcable and the sound opened up. Now I'm reading overwhelming positive reviews of Oyaide DR-510 and wondering if it would be a worthwhile upgrade from the signalcable at $140 or around there. Don't know if I will try it but I feel smarter already.
It's 1's and 0's. A cd is basically a file of 1's and 0's. DAC is a computer that converts digital (1's and 0's) to an analog signal ... D to A converter. Data must be loaded into memory before the CPU can process it whether streamed from a computer or transport.

Ideally it should work like any program. When it starts, loads into memory before running. This eliminates jitter, complex synchronization between DAC and tranport ... Can you imagine running your browser or MS Office off a CD drive?

Even HD video is streaming with more data demand than audio. Netflicks almost bankrupted before streaming to compete with the cable companies.