1 / 53

Chapter Two

Chapter Two. Fundamentals of Data and Signals. Objective. สามารถอธิบายความแตกต่างระหว่างข้อมูลและสัญญาณ และสามารถบอกถึงประโยชน์ของข้อมูลและสัญญาณดิจิตอล ผ่านข้อมูลและสัญญาณอนาล็อก สามารถระบุองค์ประกอบพื้นฐานทั้ง 3 ของสัญญาณได้

sheng
Download Presentation

Chapter Two

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter Two Fundamentals of Data and Signals

  2. Objective • สามารถอธิบายความแตกต่างระหว่างข้อมูลและสัญญาณ และสามารถบอกถึงประโยชน์ของข้อมูลและสัญญาณดิจิตอล ผ่านข้อมูลและสัญญาณอนาล็อก • สามารถระบุองค์ประกอบพื้นฐานทั้ง 3 ของสัญญาณได้ • สามารถอธิบายแบนด์วิธของสัญญาณ และความสัมพันธ์ที่เกี่ยวข้องกับความเร็วในการถ่ายโอนข้อมูล • สามารถระบุความแรงและความเบาบางของสัญญาณ และมีความสัมพันธ์กันอย่างไร • สามารถระบุคุณสมบัติพื้นฐานของการส่งข้อมูลอนาล็อกกับสัญญาณอนาล็อก, ข้อมูลดิจิตอลกับสัญญาณดิจิตอล, ข้อมูลดิจิตอลกับสัญญาณอนาล็อก และข้อมูลอนาล็อกกับสัญญาณดิจิตอล • สามารถระบุและออกแบบแผนภาพ เทคนิคการเข้ารหัสดิจิตอลพื้นฐาน และอธิบายข้อดี/ข้อเสียของแต่ละเทคนิค • สามารถแยกแยะเทคนิคการมอดูเลชั่นในรูปแบบต่างๆ รวมถึงสามารถอธิบายข้อดี ข้อเสีย และการนำไปใช้ได้อย่างถูกต้อง • สามารถบอกถึงเทคนิคดิจิไทซ์เซชั่น ทั้ง 2 เทคนิคที่นิยมใช้ และอธิบายข้อดีข้อเสียของแต่ละเทคนิค • สามารถอธิบายความแตกต่างของรหัสข้อมูล และนำไปประยุกต์ใช้ในระบบการสื่อสารได้

  3. Introduction – Data and Signals Chapter Two - Fundamentals of Data and Signals • Data are entities that convey meaning (computer file, music on CD, results from a blood gas analysis machine) • Signals are the electric or electromagnetic encoding of data (telephone conversation, we page download) • Computer networks and data/voice communication systems transmit signals • Data and signals can be analog or digital

  4. Four Combinations of Data and Signals Chapter Two - Fundamentals of Data and Signals

  5. Analog versus Digital Chapter Two - Fundamentals of Data and Signals • Analog is a continuous waveform, with examples such as (naturally occurring) music and voice

  6. Analog versus Digital Chapter Two - Fundamentals of Data and Signals • It is harder to separate noise from an analog signal than it is to separate noise from a digital signal (imagine the following waveform is a symphony with noise embedded)

  7. Analog versus Digital Chapter Two - Fundamentals of Data and Signals • Digital is a discrete or non-continuous waveform with examples such as computer 1s and 0s

  8. Analog versus Digital Chapter Two - Fundamentals of Data and Signals • Noise in a digital signal. You can still discern a high voltage from a low voltage

  9. Analog versus Digital Chapter Two - Fundamentals of Data and Signals • Noise in a digital signal. Too much noise – you cannot discern a high voltage from a low voltage

  10. All Signals Have Three Components Chapter Two - Fundamentals of Data and Signals • Amplitude • Frequency • Phase

  11. Amplitude Chapter Two - Fundamentals of Data and Signals • The amplitude of a signal is the height of the wave above or below a given reference point

  12. Frequency Chapter Two - Fundamentals of Data and Signals • The frequency is the number of times a signal makes a complete cycle within a given time frame; frequency is measured in Hertz (Hz), or cycles per second • Spectrum – the range of frequencies that a signal spans from minimum to maximum • Bandwidth – the absolute value of the difference between the lowest and highest frequencies of a signal

  13. Chapter Two - Fundamentals of Data and Signals

  14. Frequency Chapter Two - Fundamentals of Data and Signals • For example, consider an average voice • The average voice has a frequency range of roughly 300 Hz to 3100 Hz • The spectrum would be 300 – 3100 Hz • The bandwidth would be 2800 Hz

  15. Phase Chapter Two - Fundamentals of Data and Signals • The phase of a signal is the position of the waveform relative to a given moment of time or relative to time zero • A change in phase can be any number of angles between 0 and 360 degrees • Phase changes often occur on common angles, such as 45, 90, 135, etc.

  16. Chapter Two - Fundamentals of Data and Signals

  17. Signal Strength Chapter Two - Fundamentals of Data and Signals • All signals experience loss (attenuation) • Attenuation is denoted as a decibel (dB) loss • Decibel losses (and gains) are additive

  18. Signal Strength Chapter Two - Fundamentals of Data and Signals • So if a signal loses 3 dB, is that a lot? • A 3 dB loss indicates the signal lost half of its power dB = 10 log10 (P2 / P1) -3 dB = 10 log10 (X / 100) -0.3 = log10 (X / 100) 10-0.3 = X / 100 0.50 = X / 100 X = 50

  19. Converting Analog Data into Analog Signals Chapter Two - Fundamentals of Data and Signals • In order to transmit analog data, you can modulate the data onto a set of analog signals • Broadcast radio and television are two very common examples of this

  20. Chapter Two - Fundamentals of Data and Signals Amplitude modulation (e.g. AM radio)

  21. Converting Digital Data into Digital Signals Chapter Two - Fundamentals of Data and Signals • There are numerous techniques available to convert digital data into digital signals. Let’s examine five: • NRZ-L • NRZ-I • Manchester • Differential Manchester • Bipolar AMI

  22. Chapter Two - Fundamentals of Data and Signals • Note how with a Differential Manchester code, every bit has at least one significant change. Some bits have two signal changes per bit (baud rate = twice bps)

  23. 4B/5B Digital Encoding Chapter Two - Fundamentals of Data and Signals • Yet another encoding technique that converts four bits of data into five-bit quantities • The five-bit quantities are unique in that no five-bit code has more than 2 consecutive zeroes • The five-bit code is then transmitted using an NRZ-I encoded signal

  24. Chapter Two - Fundamentals of Data and Signals

  25. Converting Digital Data into Analog Signals Chapter Two - Fundamentals of Data and Signals • Three basic techniques: • Amplitude shift keying • Frequency shift keying • Phase shift keying

  26. Amplitude Shift Keying Chapter Two - Fundamentals of Data and Signals • One amplitude encodes a 0 while another amplitude encodes a 1 (a form of amplitude modulation)

  27. Amplitude Shift Keying Chapter Two - Fundamentals of Data and Signals • Some systems use multiple amplitudes

  28. Multiple Signal Levels Chapter Two - Fundamentals of Data and Signals • Why use multiple signal levels? • We can represent two levels with a single bit, 0 or 1 • We can represent four levels with two bits: 00, 01, 10, 11 • We can represent eight levels with three bits: 000, 001, 010, 011, 100, 101, 110, 111 • Note that the number of levels is always a power of 2

  29. Frequency Shift Keying Chapter Two - Fundamentals of Data and Signals • One frequency encodes a 0 while another frequency encodes a 1 (a form of frequency modulation)

  30. Phase Shift Keying Chapter Two - Fundamentals of Data and Signals • One phase change encodes a 0 while another phase change encodes a 1 (a form of phase modulation)

  31. Quadrature Phase Shift Keying Chapter Two - Fundamentals of Data and Signals • Four different phase angles used • 45 degrees • 135 degrees • 225 degrees • 315 degrees

  32. Chapter Two - Fundamentals of Data and Signals

  33. Quadrature Amplitude Modulation Chapter Two - Fundamentals of Data and Signals • As an example of QAM, 12 different phases are combined with two different amplitudes • Since only 4 phase angles have 2 different amplitudes, there are a total of 16 combinations • With 16 signal combinations, each baud equals 4 bits of information (2 ^ 4 = 16)

  34. Chapter Two - Fundamentals of Data and Signals

  35. Higher Data Transfer Rates Chapter Two - Fundamentals of Data and Signals • How do you send data faster? • Use a higher frequency signal (make sure the medium can handle the higher frequency • Use a higher number of signal levels • In both cases, noise can be a problem

  36. Maximum Data Transfer Rates Chapter Two - Fundamentals of Data and Signals • How do you calculate a maximum data rate? • Use Shannon’s equation S(f) = f x log2 (1 + S/N) Where f = signal frequency (bandwidth), S is the signal power in watts, and N is the noise power in watts

  37. Maximum Data Transfer Rates Chapter Two - Fundamentals of Data and Signals • For example, what is the data rate of a 3400 Hz signal with 0.2 watts of pwer and 0.0002 watts of noise? S(f) = 3400 x log2 (1 + 0.2/0.0002) = 3400 x log2 (1001) = 3400 x 9.97 = 33898 bps

  38. Converting Analog Data into Digital Signals Chapter Two - Fundamentals of Data and Signals • To convert analog data into a digital signal, there are two techniques: • Pulse code modulation (the more common) • Delta modulation

  39. Pulse Code Modulation Chapter Two - Fundamentals of Data and Signals • The analog waveform is sampled at specific intervals and the “snapshots” are converted to binary values

  40. Pulse Code Modulation Chapter Two - Fundamentals of Data and Signals • When the binary values are later converted to an analog signal, a waveform similar to the original results

  41. Pulse Code Modulation Chapter Two - Fundamentals of Data and Signals • The more snapshots taken in the same amount of time, or the more quantization levels, the better the resolution

  42. Pulse Code Modulation Chapter Two - Fundamentals of Data and Signals • Since telephone systems digitize human voice, and since the human voice has a fairly narrow bandwidth, telephone systems can digitize voice into either 128 or 256 levels • These are called quantization levels • If 128 levels, then each sample is 7 bits (2 ^ 7 = 128) • If 256 levels, then each sample is 8 bits (2 ^ 8 = 256)

  43. Pulse Code Modulation Chapter Two - Fundamentals of Data and Signals • How fast do you have to sample an input source to get a fairly accurate representation? • Nyquist says 2 times the highest frequency • Thus, if you want to digitize voice (4000 Hz), you need to sample at 8000 samples per second

  44. Delta Modulation Chapter Two - Fundamentals of Data and Signals • An analog waveform is tracked, using a binary 1 to represent a rise in voltage, and a 0 to represent a drop

  45. Data Codes Chapter Two - Fundamentals of Data and Signals • The set of all textual characters or symbols and their corresponding binary patterns is called a data code • There are three common data code sets: • EBCDIC • ASCII • Unicode

  46. Data and Signal Conversions in Action Chapter Two - Fundamentals of Data and Signals • Let us transmit the message “Sam, what time is the meeting with accounting? Hannah.” • This message leaves Hannah’s workstation and travels across a local area network

  47. Chapter Two - Fundamentals of Data and Signals EBCDIC

  48. Chapter Two - Fundamentals of Data and Signals ASCII

  49. Unicode Chapter Two - Fundamentals of Data and Signals • Each character is 16 bits • A large number of languages / character sets • For example: • T equals 0000 0000 0101 0100 • r equals 0000 0000 0111 0010 • a equals 0000 0000 0110 0001

More Related