Presentation is loading. Please wait.

Presentation is loading. Please wait.

2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 1 Lecture 6 Binary Counter Thinking Digitally.

Similar presentations


Presentation on theme: "2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 1 Lecture 6 Binary Counter Thinking Digitally."— Presentation transcript:

1 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 1 Lecture 6 Binary Counter Thinking Digitally

2 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 2 Henry Farny’s Song of the Talking Wire

3 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 3 2 Minute Quiz Name_______ Sec_______Date_______ Code Example: PWM Question:

4 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 4 Joseph Henry & the Telegraph Albany Academy Experiment Assisted Morse at Princeton 1 st Head of Smithsonian Unit of inductance: Henry

5 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 5 Morse Code Simple sequences of short and long clicks to represent letters and numbers Easier to generate than sound Easier to distinguish than sound

6 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 6 UPC Codes 0 = 3-2-1-1 1 = 2-2-2-1 2 = 2-1-2-2 3 = 1-4-1-1 4 = 1-1-3-2 5 = 1-2-3-1 6 = 1-1-1-4 7 = 1-3-1-2 8 = 1-2-1-3 9 = 3-1-1-2 Bars come in four widths 1-2-3-4 Start is 1-1-1 (black- white-black) The zero is 3-2-1-1 (space-bar-space-bar). The four is 1-1-3-2 (space-bar-space-bar). The three is 1-4-1-1 (space-bar-space-bar). The next three zeros are 3-2-1-1 (space-bar-space-bar). In the middle there is a standard 1-1-1-1-1 (space-bar- space-bar-space), which is important because it means the numbers on the right are optically inverted! The one is 2-2-2-1 (bar-space-bar-space). The stop character is a 1-1-1 (bar-space-bar).

7 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 7 Computer Number System Examples From Computer Science I 10110101110001011001110011110110 binary number 11 5 12 5 9 12 15 6 B 5 C 5 9 C F 6 equivalent base 10 value for each group of 4 consecutive binary digits (bits) corresponding hexadecimal (base 16) digit B5C59CF6 equivalent hexadecimal number

8 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 8 Communicating With Pulses PCM: Pulse Code Modulation

9 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 9 PCM: Pulse Code Modulation

10 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 10 PWM: Pulse Width Modulation Signal is compared to a sawtooth wave producing a pulse width proportional to amplitude

11 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 11 Optical Receiver Receiver detects pulses of light Pulses are amplified and partly averaged by 741 op- amp (volume adjusted with the pot)  Higher frequencies still in signal cannot be heard Signal is increased by 386 audio amp 386 audio amp drives the speaker

12 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 12 Optical Transmitter Audio signal changes thresholds for 555 timer producing a type of pulse width modulation of the light from the LED.

13 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 13 Signals from Audio Remote 3.5 x 20 = 70ms or 14Hz 4 x 500 = 2000us or 500Hz 2 x 100 / 9 = 23us or 43kHz Mostly hear higher frequencies in pulses

14 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 14 Binary Numbers 60110 70111 81000 91001 101010 111011 00000 10001 20010 30011 40100 50101 128 + 0 + 32 + 16 + 0 + 4 + 2 + 1 = 183

15 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 15 Binary Counter Animations showing counter operation http://www.play-hookey.com/digital/synchronous_counter.html Counter for lab

16 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 16 Typical Output for Binary Counter Note how the Q outputs form 4 bit numbers

17 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 17 Digital Pulses Function generator produces a 1kHz sinusoidal voltage. 1v peak-to-peak (pp)

18 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 18 Digital Pulses Switch to a square wave at 1kHz. Still 1v pp

19 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 19 Digital Pulses Add a 0.5 volt offset so that the square wave goes from 0 volts to 1 volt

20 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 20 Digital Pulses Now the duty cycle is adjusted to 20% to see what a single digital pulse looks like.

21 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 21 Pulses on a Transmission Line Pulses propagate down transmission lines at the speed of light. They reflect off of the load if the load is not the same impedance as the line. Lines, sources and loads must be matched. Cable TV lines are 75 ohms. Cables in the lab are typically 50 ohms. From Matlab

22 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 22 What Can Be Done With PWM? Question: What happens if voltages like the ones above are connected to a light bulb? (4 th 2 Minute Quiz Question) Low Duty Cycle Medium Duty Cycle High Duty Cycle

23 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 23 What Can Be Done With PWM? Average power can be controlled Average flows can also be controlled by fully opening and closing a valve with some duty cycle

24 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 24 What About Analog Modulation? AM: Amplitude Modulation FM: Frequency Modulation

25 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 25 Other Coding Applications Cryptography Image Compression  JPEG (Joint Photographic Expert Group)  GIF (Graphics Interchange Format)  TIFF (Tagged Image File Format)  MPEG (Compression of Motion Video)  Most use Discrete Cosine Transform method

26 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 26 Image Compression 24 bpp original (bits per pixel) Top: JPEG Bottom: JPEG2K 2 bpp0.5 bpp

27 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 27 2 Minute Quiz ANSWERS Code Example: MORSE, UPC Code Example: BINARY Code Example: PWM PWM Question: The longer the duty cycle, the longer the light bulb is on and the brighter the light

28 2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 28 Where Will You See This Material Again? 555 Timer – IEE Lab 6 Digital Counter – IEE Lab 7 Counters: ECSE- 2610 Computer Components and Operations, ENGR-2350 Introduction to Embedded Control Signals and Transforms: ECSE-2410 Signals and Systems Pulse Width Modulation: Embedded Control, ECSE/EPOW-4080 Semiconductor Power Electronics Pulses on Transmission Lines: ECSE-2100 Fields and Waves I


Download ppt "2/18/2004 Introduction to Engineering Electronics STOLEN FROM K. A. Connor 1 Lecture 6 Binary Counter Thinking Digitally."

Similar presentations


Ads by Google