05 SignalEncodingTechniques
05 SignalEncodingTechniques
05 SignalEncodingTechniques
signal
discrete, discontinuous voltage pulses Each bit is a signal element binary data encoded into signal elements
Some Terms
Unipolar
sign Polar - One logic state represented by positive voltage, other by negative duration or length of a bit modulation rate in signal elements per second mark and space
needs to know
factors
signal to noise ratio data rate bandwidth encoding scheme affects performance
spectrum clocking error detection signal interference and noise immunity cost and complexity
Encoding Schemes
different voltages for 0 and 1 bits voltage constant during bit interval
no transition i.e. no return to zero voltage such as absence of voltage for zero, constant positive voltage for one more often, negative voltage for one value and positive for the other
Non-return to zero, inverted on ones constant voltage pulse for duration of bit data encoded as presence or absence of signal transition at beginning of bit time
transition (low to high or high to low) denotes binary 1 no transition denotes binary 0 data is represented by changes rather than levels more reliable detection of transition rather than level easy to lose sense of polarity in twisted-pair line (for NRZ-L)
easy to engineer make good use of bandwidth dc component lack of synchronization capability
Cons
used
represented by absence of line signal zero represented by alternating positive and negative no advantage or disadvantage over bipolar-AMI each used in some applications
can insert additional bits, c.f. ISDN scramble data (discussed later)
a 3 level system could represent log23 = 1.58 bits requires approx. 3dB more signal power for same probability of bit error
Manchester Encoding
has transition in the middle of each bit period transition serves as clock and data low to high represents one high to low represents zero used by IEEE 802.3 (Ethernet LAN)
Mid-bit transition is clocking only transition at start of bit period representing 0 no transition at start of bit period representing 1
Con
at least one transition per bit time and possibly two maximum modulation rate is twice NRZ requires more bandwidth synchronization on mid bit transition (self clocking) has no dc component has error detection
Pros
Modulation Rate
Problems
Q1. Assume a stream of ten 1s. Encode the stream using the following schemes: NRZ-I, AMI, Manchester, Differential Manchester. How many transitions (vertical lines) are there for each scheme. Q2. For the Manchester encoded binary stream of the following page, extract the clock information and the data sequence.
Problems
Scrambling
use scrambling to replace sequences that would produce constant voltage these filling sequences must
produce enough transitions to sync be recognized by receiver & replaced with original data be same length as original, no rate penalty have no dc component have no long sequences of zero level line signal have no reduction in data rate give error detection capability
design goals
B8ZS Substitution Rules: If an octet of all zeros occurs and the last voltage pulse preceding this octet was positive, then the eight zeros of the octet are encoded as 000+0+. If an octet of all zeros occurs and the last voltage pulse preceding this octet was negative, then the eight zeros of the octet are encoded as 000+0+. # If the AMI signal is inverted in the previous diagram, Draw the B8ZS and HDB3 signals.
- the fourth zero is replaced with a code violation. - successive violations are of alternate polarity
HDB3 Substitution Rules: Number of Bipolar Pulses (ones) since Last Substitution
Odd 000000+
Problems
Q3. Consider a stream of binary data consisting of a long sequence of 1s, followed by a zero, followed by a long sequence of 1s. Preceding bit and level is indicated within parentheses. Draw the waveforms for NRZI (high), AMI (1 as negative voltage), and pseudo-ternary (0 as negative voltage). Q4. The AMI waveform representing a sequence 0100101011 is transmitted over a noisy channel. The received waveform with a single error is shown in the following page. Locate the error with justification.
Problems
Problems
Q5. For the received AMI bipolar sequence + - 0 + - 0 - + which has one violation, construct two possible transmitted pattern that might result in the same received pattern.
modulate carrier frequency with analog data why modulate analog signals?
higher frequency can give more efficient transmission permits frequency division multiplexing (chapter 8) Amplitude Frequency Phase
types of modulation
encoding
techniques
Amplitude shift keying (ASK) Frequency shift keying (FSK) Phase shift keying (PSK)
Modulation Techniques
susceptible inefficient
used
for
up to 1200bps on voice grade lines very high speeds over optical fiber
most common is binary FSK (BFSK) two binary values represented by two different frequencies (near carrier) less susceptible to error than ASK used for
up to 1200bps on voice grade lines high frequency radio higher frequency on LANs using co-ax
Multiple FSK
each
signalling element represents more than one bit more than two frequencies used more bandwidth efficient more prone to error
MFSK
differential
PSK
phase shifted relative to previous transmission rather than some constant reference signal
DPSK
Quadrature PSK
get
more efficient use if each signal element represents more than one bit
e.g. shifts of /2 or (90o) each element represents two bits split input data stream in two & modulate onto carrier & phase shifted carrier
can
QPSK
ASK/PSK bandwidth directly relates to bit rate multilevel PSK gives significant improvements
in
presence of noise:
bit error rate of PSK and QPSK are about 3dB superior to ASK and FSK
analog
codec
theorem:
If a signal is sampled at regular intervals at a rate higher than twice the highest signal frequency, the samples contain all information in original signal e.g. 4000Hz voice data, requires 8000 sample per sec
Strictly:
so
PCM Example
Non-Linear Coding
Companding
Delta Modulation
analog
has
binary behavior
since function only moves up or down at each sample interval hence can encode each sample as single bit 1 for up or 0 for down
has simplicity compared to PCM but has worse SNR issue of bandwidth used
data
compression can improve on this still growing demand for digital signals
use of repeaters, TDM, efficient switching
PCM
Problem
Q6. The analog waveform shown in the following figure is to be delta modulated. The sampling period and the step size are indicated by the grid. The first DM output is also shown. Give the DM output for the complete signal.
Problem
Summary
looked
analog data, analog signal digital data, analog signal analog data, digital signal