Lecture 5

advertisement
Telecommunication Technologies
Week 5
Line Coding
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Encoding Techniques
Š Digital data, digital signal
„
NRZ, Manchester, HDB3
Š Digital data, analog signal
„
ASK, FSK, PSK
Š Analog data, digital signal
„
PCM, DM, ADPCM
Š Analog data, analog signal
„
AM, FM, PM
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Digital Data, Digital Signal
Š Digital signal
„
„
„
Discrete, discontinuous voltage pulses
Each pulse is a signal element
Binary data encoded into signal elements
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Terms
Š Unipolar
„
„
All signal elements =0 or >0
e.g. 0V and +1V
Š Polar
„
„
One logic state represented by positive and
negative voltages
e.g. +5V and -5V
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Terms
Š Data rate
„
R: Data rate (bps)
„
Rate of data transmission in bits per second
Š Duration or length of a bit
„
tB: bit duration (s)
„
Time taken for transmitter to emit the bit
Š R = 1/tB
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Terms
Š Modulation rate
„
„
Rate at which the signal level changes
Measured in baud = signal elements per
second
Š Mark:
„
Binary 1
Š Space:
„
Binary 0
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Terms
Š Bit Error Rate (BER)
„
probability that a bit is received incorrectly
Š E.g. In n bits, the probability of at least
one error is given by
1-[1-(BER)]n
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Question
Š If the BER is 0.001 what is the probability
of receiving a byte without error?
Š What if parity bit error detection is used?
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Interpreting Signals
Š Need to know
„
„
Timing of bits - when they start and end
Signal levels
Š Factors affecting successful interpreting
of signals
„
„
„
Signal to noise ratio (SNR)
Data rate (R)
Bandwidth (B)
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Comparison of Encoding
Schemes
Š Signal Spectrum
„
„
„
Lack of high frequencies reduces required
bandwidth
Lack of dc component allows ac coupling via
transformer, providing isolation
Concentrate power in the middle of the
bandwidth
Š Clocking
Synchronizing transmitter and receiver
„ External clock
„ Sync mechanism based on signal
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
„
Comparison of Encoding
Schemes
Š Error detection
„
Can be built in to signal encoding
Š Signal interference and noise immunity
„
Some codes are better than others
Š Cost and complexity
„
„
Higher signal rate (& thus data rate) lead to
higher costs
Some codes require signal rate greater than
data rate
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Encoding Schemes
Š Nonreturn to Zero-Level
(NRZ-L)
Š Nonreturn to Zero Inverted
(NRZI)
Š Bipolar - AMI
Š Pseudoternary
Š Manchester
Š Differential Manchester
Š B8ZS
Š HDB3
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Nonreturn to Zero-Level
(NRZ-L)
Š Two different voltages for 0 and 1 bits
Š Voltage constant during bit interval
„
I.e. no return to zero voltage
Š E.g. Absence of voltage for zero,
constant positive voltage for one
Š More often, negative voltage for one
value and positive for the other
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Nonreturn to Zero Inverted
(NRZI)
Š Nonreturn 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 a binary 1
Š No transition denotes binary 0
Š An example of differential encoding
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Differential Encoding
„
„
Same as last bit = 0
Change = 1
Š Data represented by changes rather than
levels
Š More reliable detection of transition
rather than level
Š Polarity irrelevant
„
In complex transmission layouts it is easy to
lose sense of polarity
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
NRZ
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
NRZ pros and cons
Š Pros
„
„
Easy to engineer
Make good use of
bandwidth
Š Cons
„
„
dc component
Lack of
synchronization
capability
EIE325: Telecommunication Technologies
Š Used for magnetic
recording
Š Not often used for
signal
transmission
Maciej Ogorzałek, PolyU, EIE
Bipolar-AMI/Pseudoternary
(AMI – Alternate Mark Inversion)
Š Bipolar-AMI
„
„
„
Zero represented
by no line signal
One represented
by positive or
negative pulse
One pulses
alternate in
polarity
EIE325: Telecommunication Technologies
Š Pseudoternary
„
„
„
One represented
by no line signal
Zero represented
by positive or
negative pulse
Zero pulses
alternate in
polarity
Maciej Ogorzałek, PolyU, EIE
Bipolar-AMI and Pseudoternary
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Multilevel Binary Techniques
Š No loss of sync if a long string of
ones/zeros (zeros/ones still a problem)
Š No net dc component
Š Lower bandwidth
Š Easy error detection
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Trade Off for Multilevel Binary
Š Not as efficient as NRZ
„
„
„
„
Each signal element only represents one bit
In a 3 level system could represent log23 =
1.58 bits
Receiver must distinguish between three
levels
(+A, -A, 0)
Requires approx. 3dB more signal power for
same probability of bit error
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Biphase: Manchester
Š Transition in 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) baseband
coaxial cable and twisted pair CSMA/CD
bus LANs
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Biphase: Differential Manchester
Š Mid-bit transition is clocking only
Š Transition at start of a bit period
represents zero
Š No transition at start of a bit period
represents one
Š Note: this is a differential encoding
scheme
Š Used by IEEE 802.5 (Token Ring LAN
using shielded twisted pair)
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Manchester and Differential
Manchester
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Biphase: Pros and Cons
Š Con
„
„
„
At least one transition per bit time and
possibly two
Maximum modulation rate is twice NRZ
Requires more bandwidth
Š Pros
„
„
„
Synchronization on mid bit transition (self
clocking)
No dc component
Error detection (absence of expected
transition)
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Encoding Schemes
Š Nonreturn to Zero-Level
(NRZ-L)
Š Nonreturn to Zero Inverted
(NRZI)
Š Bipolar - AMI
Š Pseudoternary
Š Manchester
Š Differential Manchester
Š B8ZS
Š HDB3
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Question
100101110111000
Š Encode this sequence with
„
„
„
„
„
NRZ-L
NRZI
AMI
Manchester
Differential Manchester
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Modulation Rate
Š Manchester/Differential Manchester has
more transitions than other techniques
Š Signal element duration = ½tB
Š In general D = R/b=R/log2M
„
D: modulation rate (baud)
R: data rate (bps)
b: number of bits per signal element
„
M: number of different signal elements =2b
„
„
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Modulation Rate
Š R = 1 MHz
Š b = 0.5
Š D = 2 MBaud
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Multilevel schemes
Š May achieve
fewer signal
elements than bit
durations by
encoding multiple
bits in a single
signal element.
Š E.g. b = 3
EIE325: Telecommunication Technologies
+7 V = 111
+5 V = 110
+3 V = 101
+1 V = 100
-1 V = 011
-3 V = 010
-5 V = 001
-7 V = 000
Maciej Ogorzałek, PolyU, EIE
Scrambling
Š Use scrambling to replace sequences that
would produce constant voltage
Š Filling sequence
„
„
„
Š
Š
Š
Š
Must produce enough transitions to sync
Must be recognized by receiver and replace with
original
Same length as original
No dc component
No long sequences of zero level line signal
No reduction in data rate
Error detection capability
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
B8ZS
Š Bipolar With 8 Zeros Substitution
Š Based on bipolar-AMI
Š If octet of all zeros and last voltage pulse
preceding was positive encode as 000+-0-+
Š If octet of all zeros and last voltage pulse
preceding was negative encode as 000-+0+Š Causes two violations of AMI code
Š Unlikely to occur as a result of noise
Š Receiver detects and interprets as octet of all
zeros
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
HDB3
Š High Density Bipolar 3 Zeros
Š Based on bipolar-AMI
Š String of four zeros replaced with one or
two pulses
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
B8ZS and HDB3
Spectral Density
Power per unit Bandwidth
B8ZS, HDB3
AMI, pseudoternary
Manchester,
Differential Manchester
NRZ-L, NRZI
Normalised frequency (f/R)
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Question
Š Which of these sequences are valid data streams using
B8ZS or HDB3?
Š What is the intended sequence
+-000-+0+-0+
+0-+00+-00-0
Š [assume that the number of preceding substitutions is
0]
EIE325: Telecommunication Technologies
Maciej Ogorzałek, PolyU, EIE
Download