Communication data transfer 2 Baseband signals line coding

Communication, data transfer 2. Baseband signals, line coding 2018. 04. 14.

Categorization Medium n Coding n Modulation n Number of symbols (size of alphabet) n Spectral efficiency n SNR, error correction, clock recovery, etc. n

Medium n Wire ¨ ”simple” copper wire ¨ coaxial cable ¨ wave guide ¨ optical fibre n Free space propagation (EM waves) ¨ radio frequency ¨ optical

Number of symbols Binary: two symbols (0; 1) n Non-binary: n Sometimes binary coding using more than two levels (eg. AMI, MLT-3).

Number of symbols Baseband signal is usually binary amplitude modulated (also called ASK, amplitude shift keying, or OOK, on-off keying) n Non binary transfer is usually used in high frequency modulated signals, eg. QPSK / n. PSK, QAM, n. FSK n ¨ eg. digital TV, where high speed is more important than bit errors

Number of symbols Greater M advantage: greater bit rate per unit bandwidth n Greater M disadvantage: more sensitive to noise/interference, because smaller difference between levels n With given max level (eg. voltage), binary is the most noise tolerant n

Direction of communication Simplex: fixed one way Broadcast (radio, TV), global positioning satellites n Half duplex: one way at a time Eg. PMR, walkie-talkie, amateur radio, I 2 C, USB n Duplex (full duplex): two way Eg. telephone, RS 232, SPI n How to create full duplex: n One wire for each direction (plus gnd) n Time Division Multiplexing, TDM / TDMA n Frequency Division Multiplexing, FDM / FDMA n Code Division Multiplexing, CDM / CDMA n One wire for both directions (magic) (eg. 1000 Base-T Ethernet)

Participants n n Point to point ¨ Master-Slave (SPI) or equal (telephone) Point to multipoint ¨ One Master, many Slaves (eg. broadcast) Multipoint to point ¨ One Master, many Slaves (eg. data acquisition) Multipoint to multipoint ¨ many master, many slave or equals, or changes in time (eg. computer network)

Multi-channel n n n FDMA, TDMA, CDMA are also (well, mostly) used when more than one channel is needed (for example more than one pair of users wish to talk to each other) Eg. TDMA: telephone FDMA: radio and tv broadcasts TDMA and FDMA: mobile phones (GSM) CDMA: mobile phones (UMTS)

Time/spectral domain n n Basic knowledge of spectrum, Fouriertransformation, etc. required Baseband signal: the original information presented in a simple way, in the spectrum it occupies the part close to zero freq. , its bandwidth is proportional to the data rate. Eg. in analog, the signal from a microphone would be baseband. Eg. in digital, a square waveform (where impulses represent bits) would be baseband. Such as found in microproc. systems.

Time/spectral domain n Baseband signal

Time/spectral domain n Transposed signal, modulated signal: the baseband signal (modulating signal) is mixed (multiplied) by a high frequency sine wave (carrier), effectively moves the bandwidth to be „around” the carrier; useful for radio or optical comm. , for frequency multiplexing.

Time/spectral domain n Modulated signal

Time/spectral domain Baseband Transposed

Baseband coding n Probably the most basic waveform is the binary NRZ square wave (eg. low: 0 V, high: 5 V). This is what usually comes out of digital circuits. This is often what we mean by baseband signal inthis topic. This can be re-coded to other coding types (RZ, Manchester, etc. ), while still remaining baseband; and can also be transposed to higher frequencies.

Spectrum of square wave Ideal, infitine periodic square wave. . . in real life: • there is limited bandwidth waveform distorted • not infinite; not totally periodic (info content) spectrum modified

Spectrum of square wave n n If signal is unipolar, or bipolar with non equal number of 0 and 1, then a DC component will be present (at f=0 in spectrum) A lack of DC component can be advantageous: Can be transmitted through capacitive or inductive coupling (eg. transformer) ¨ When mixing up, leaves a small area around the carrier free (eg. for "pilot", carrier signal) ¨ A separate DC component can be included (and separated before the receiver) for power supply ¨

Voltage levels n Asymmetric voltage levels (unipolar) n Symmetric voltage levels (bipolar) ¨ can provide supply voltage if two-way rectified, with limited current usually

. . . or current levels „Current loop”, most often used variation: n logical 0: 4 m. A n logical 1: 20 m. A n open circuit: 0 m. A n useful for long distance (compensates for voltage drop), detects open circuit n also provides supply current n analog version also exists (4. . 20 m. A)

Timing Receiver needs to know when to sample the incoming signal. This is controlled by the data transfer clock. (This is not the same as the processor clock). n Asynchronous Receiver has own oscillator, needs to be setup in advance or auto config. ¨ Oscillator needs to be fine tuned to incoming signal (no two independent osc. have exactly same freq. !) -> Clock recovery ¨ n Synchronous ¨ Clock signal is sent on a separate wire. No separate data clock oscillator is needed in slave (it can have its own processor clock of course). Used for high freq. transmissions.

Clock recovery n n With NRZ and similar codes, if too many bits of same value follow, synchron can be lost, because the clock recovery circuit synchronizes on the edges of the incoming signal. Bit stuffing: after n same bits, an opposite is inserted (this will automatically removed on the output of the receiver). Eg. USB (NRZ -Space) n=6; CAN (NRZ) n=5 There exist more complex versions of this (eg. Bipolar with 8 zeros substitution) RZ, Manchester: there is an edge in each bit

Clock recovery: 4 B 5 B Re-codes 4 b symbols to 5 b, so to maximize number of edges n Unused 5 b symbols can indicate errors n 2 x 5 b control signals also exist (FDDI, Ethernet) n

Baseband coding n NRZ Non return to zero Will have a DC level (because 0/1 ratio is not uniform) ¨ harder to synchronise (when too many bits of same level follow) ¨ eg. RS-232, CAN ¨ n n Differential versions: NRZ-Space ¨ n NRZ-Mark or NRZ-Inverted ¨ n 0: change, 1: don’t change 0: don’t change, 1: change (mark=1, space=0 from old telegraph jargon)

Baseband coding n RZ (Return to zero) n Twice bandwidth than NRZ (at same bitrate). There is an edge in every bit (at least if bipolar), making for easier clock recovery. n

Baseband coding n Alternate Mark Inversion (bipolar) 0: 0 level 1: + or – level alternating if two consecutive 1’s are of same level -> error

Baseband coding n MLT-3 (Multi-Level Transmit) 0: same as previous level 1: alternates -; 0; +; 0 levels Smaller bandwidth (eg. 1111 results in bw ¼ of base harmonic ) Eg. 100 BASE-TX Fast Ethernet (LAN) together with 4 B 5 B coding

Baseband coding n Manchester-code Eg. Ethernet, RFID Twice bandwidth, no DC content, easy clock recovery

Baseband coding n Differential Manchester / Biphase Mark Code /FM 1 0: change at start of bit, 1: change at end of bit Polarity independent (as all diff. codes) 802. 5 Token ring LAN, magnetic and optical storage, AES 3, S/PDIF

Spectra

Spectra

Code division multiplexing / Spread spectrum modulation / Pulse compression n We can transmit several users’ stream at the same timeslot and same frequency, but in longer time. Special coding allows to select needed signal from the sum of several signals+noise, if the proper filter function is known. Also can work as encryption.

Each bit is replaced by a bit sequence. n Receiver is a digital filter, which is practically the sequence itself. n Incoming signal is correlated with this filter. n If the signal is what we look for, we get the autocorrelation function, otherwise a cross -correlation. n

The code (sequence) is chosen so that the „sidelobes” of the autocorrelation function and the maxima of the cross correlations are minimal. The „main lobe” is proportional to the code length. n If the received signal matches the filter, we get a high level pulse, otherwise a noiselike waveform. n

Code division multiplexing / Spread spectrum modulation / Pulse compression n Example: Barker-3 seq. : +1 +1 -1 n Autocorrelation fnc calc. :

Code division multiplexing / Spread spectrum modulation / Pulse compression n Barker-7 autocorrelation fnc. : Tb: original bit time n=7 long sequence is 7 Tb longm. After correlation filter, the waveform is 14 Tb long, but the main lobe (impulse) is only 1 Tb wide.

Code division multiplexing / Spread spectrum modulation / Pulse compression n DSSS: Direct Sequence Spread Spectrum ¨ CDMA: Code Division Multiple Access: eg. mobile phone systems n Pulse Compression eg. in radar systems
- Slides: 36