SignalEncodingTechniques
SignalEncodingTechniques
1
Encoding Techniques
Digital Digital
Analog Digital
Digital Analog
Analog Analog
Terms (1)
• Unipolar
—All signal elements have same sign
• Polar
—One logic state represented by positive
voltage the other by negative voltage
• Data rate
—Rate of data transmission in bits per second
• Duration or length of a bit
—Time taken for transmitter to emit the bit
Terms (2)
• Modulation rate
—Rate at which the signal level changes
—Measured in baud = signal elements per
second
• Mark and Space
—Binary 1 and Binary 0 respectively
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
—Data rate
—Bandwidth
Comparison of Encoding Schemes
(1)
• 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
Comparison of Encoding Schemes
(2)
• 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
Asynchronous and Synchronous
Transmission
• Timing problems require a mechanism to
synchronize the transmitter and receiver
• Two solutions
—Asynchronous
—Synchronous
Asynchronous
• Data transmitted on character at a time
—5 to 8 bits
• Timing only needs maintaining within each
character
• Resynchronize with each character
Asynchronous (diagram)
Asynchronous - Behavior
• In a steady stream, interval between
characters is uniform (length of stop
element)
• In idle state, receiver looks for transition 1
to 0
• Then samples next seven intervals (char
length)
• Then looks for next 1 to 0 for next char
• Pros and Cons
—Simple
—Cheap
—Overhead of 2 or 3 bits per char (~20%)
—Good for data with large gaps (keyboard)
Synchronous - Bit Level
• Block of data transmitted without start or
stop bits
• Clocks must be synchronized
• Can use separate clock line
—Good over short distances
—Subject to impairments
• Embed clock signal in data
—Manchester encoding
—Carrier frequency (analog)
Synchronous - Block Level
• Need to indicate start and end of block
• Use preamble and postamble
—e.g. series of SYN (hex 16) characters
—e.g. block of 11111111 patterns ending in
11111110
• Simple
• Cheap
• Overhead of 2 or 3 bits per char (~20%)
•
Synchronous - Bit Level
• Block of data transmitted without start or
stop bits
• Clocks must be synchronized
• Can use separate clock line
—Good over short distances
—Subject to impairments
• Embed clock signal in data
—Manchester encoding
—Carrier frequency (analog)
Synchronous - Block Level
• Need to indicate start and end of block
• Use preamble and postamble
—e.g. series of SYN (hex 16) characters
—e.g. block of 11111111 patterns ending in
11111110