Presentation is loading. Please wait.

Presentation is loading. Please wait.

©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 5 IC Specifications and.

Similar presentations


Presentation on theme: "©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 5 IC Specifications and."— Presentation transcript:

1

2 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 5 IC Specifications and Simple Interfacing Roger L. Tokheim ©2008 The McGraw-Hill Companies, Inc. All rights reserved.

3 INTRODUCTION Logic Levels/Noise Margin Interfacing Families of ICs Other Specifications MOS and CMOS ICs Interfacing with Switches Interfacing with LEDs Interfacing with Buzzers, Relays, Motors and Solenoids

4 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. INTRODUCTION (Continued) Interfacing Using an Optoisolator Current Sourcing and Sinking Using a Stepper Motor Using a Servo Motor Hall-effect Sensor/Switch Using the Hall-effect Switch BASIC Stamp® Driving a Servo

5 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Logic Levels / Noise Margin Voltage characteristic - defines logical 0 (LOW) or logical 1 (HIGH) Noise immunity (noise margin)- logic circuit’s insensitivity or resistance to undesired voltages called “noise.” Input Output 2.0 - 5.5V LOWGND - 0.8V HIGH 2.4 - 5.5V (3.5V typical) GND - 0.4V (0.1V typical) TTL Voltage Profiles Chart

6 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. An input voltage of 0.4V to a TTL IC (5V power supply) would be interpreted as a logical __________ (0 or LOW, 1 or HIGH). 2. An input voltage of 3V to a TTL IC (5V power supply) would be interpreted as a logical __________ (0 or LOW, 1 or HIGH). 3. A typical HIGH output from a TTL IC (5V power supply) would be about __________ (0.1V, 3.5V). 4. A logic circuit’s insensitivity or resistance to undesired voltages (called noise) is __________ (noise margin, noise clutter). 0 or LOW 1 or HIGH 3.5V noise margin

7 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. 0% 10% 60% 50% 80% 70% 40% 30% 20% 100% 90% HIGH LOW HIGH LOW TTL CMOS LOW 0 to +3V for CMOS 0 to +0.8V in TTL Input Voltage Profiles Input Voltage Profiles – TTL and 4000 Series CMOS Undefined +3 to +7V for CMOS +0.8V to +2.0V for TTL Undefined logic probe reading may vary depending on manufacturer HIGH +7V to +10V - CMOS +2V to +5V - TTL CAUTION Output V profile differs Other families V profile differs +5V+10V GND

8 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. An inexpensive hand-held instrument called a __________ (logic probe, oscilloscope) is commonly used to check logic levels in TTL or CMOS circuits. 2. An input voltage of 1V to a CMOS IC (10V power supply) would be interpreted as a(n) __________ (HIGH, LOW, undefined) input. 3. An input voltage of 5V to a CMOS IC (10V power supply) would be interpreted as a(n) __________ (HIGH, LOW, undefined) input. 4. An input voltage of 9V to a CMOS IC (10V power supply) would be interpreted as a(n) __________ (HIGH, LOW, undefined) input. logic probe LOW undefined HIGH

9 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. H Low +5V +2V +0.8V GND INPUT H Low +5V +2.4V +0.4V GND OUTPUT ? ? Input = +4V Output = ? ? HIGH Input = +0.3V Output = ? LOW Input = +1.2V Output = ? ? Undefined Input = +2.2V Output = ? ? HIGH TTL Voltage Profiles QUIZ

10 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. TTL-to-CMOS Interfacing Interfacing is the design of circuitry between devices. Interface circuitry shifts levels of voltage & current for compatibility. TTL and CMOS HIGH and LOW voltage profiles are different. Current requirements for TTL and CMOS are different. Example: CMOS Pull up resistor Design Notes: 1. Output current of TTL OK to drive CMOS device. 2. Output voltage profile does NOT fit CMOS input voltage profile. 3. Use pull up resistor as interface device to adjust voltage profiles. Standard TTL

11 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. The design of circuitry that translates voltages and currents between devices (such as between TTL and CMOS) is called __________ (boundary scanning, interfacing). 2. Interface circuitry shifts levels of __________ (current and voltage, time and temperature) for compatibility between two devices or circuits. 3. In TTL-to-CMOS interfacing, a __________ (pull-up, temperature-sensitive) resistor is used to shift voltage levels. 4. The voltage profiles for TTL and CMOS are __________ (different, the same). interfacing current and voltage pull-up different

12 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. CMOS-to-TTL Interfacing Interfacing is the design of circuitry between devices. Interface circuitry shifts levels of current & voltage for compatibility. CMOS and TTL voltage profiles are different. Current requirements for CMOS and TTL are different. Example: CMOS Standard TTL CMOS buffer (like 4050 IC) Design Notes: 1. Output voltage profile of CMOS is OK to drive TTL inputs. 2. Output current from CMOS is NOT enough to drive standard TTL. 3. Use special purpose CMOS buffer IC to adjust the current levels.

13 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. 1. The design of circuitry to make TTL-to- CMOS or CMOS-to-TTL connections is called __________. interfacing 2. TTL and CMOS voltage profiles are __________ (different, the same). different 3. TTL and CMOS current input requirements and output drive capabilities are __________ (different, the same). different 4. Interfacing standard TTL-to-CMOS involves using a(n) __________ (buffer, pull-up resistor) between the input TTL and CMOS devices. pull-up resistor QUIZ

14 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Other Digital IC Specifications Drive Capabilities - sometimes referred to as fan-in or fan-out. Fan Out - number of inputs of a logic family that can be driven by a single output. The drive capability of outputs. Fan In - the load an input places on an output. Propagation Delay - has to do with the “speed” of the logic element. Lower propagation delays mean higher speed which is a desirable characteristic. Power Dissipation - generally, as propagation delays decrease, power consumption and heat generation increase. CMOS is noted for low power consumption.

15 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. The __________ (fan out, quantum equivalence) refers to the drive capability of the outputs of a digital IC. 2. Faster digital ICs (a desirable characteristic) have __________ (higher, lower) propagation delays. 3. The __________ (CMOS, TTL) family of digital ICs is known for its very low power consumption and is commonly used in battery powered products. fan out lower CMOS

16 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. 1. The drive capability of logic device outputs is sometimes called __________ (fan in, fan out). It is the number of inputs of a logic family that can be driven by a single output. fan out 2. CMOS devices are noted for their extremely __________ (high, low) power consumption. low 3. A logic device with a low propagation delay would be considered to be a __________ (high, low) speed device. high 4. Several desirable characteristics of logic devices are good drive capabilities, low power consumption, and __________ (high, low) propagation delays. low QUIZ

17 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. MOS and CMOS ICs MOS stands for Metal-Oxide Semiconductor. PMOS, NMOS, and CMOS are three technologies used to manufacture ICs. TTL is another very fast technology. NMOS stands for Negative-channel Metal-Oxide Semiconductor. NMOS ICs are faster than PMOS. PMOS stands for Positive-channel Metal-Oxide Semiconductor. CMOS stands for Complementary Metal-Oxide Semiconductor. Both PMOS and NMOS devices are used it its manufacture. CMOS ICs are noted for exceptionally low power consumption. CMOS ICs were slower than bipolar digital ICs (such as TTL devices). Transmission gates or bilateral switches are unique digital devices created using CMOS technology.

18 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. The MOS part of CMOS stands for metal-oxide semiconductor which is a technology used in producing ICs with __________ (high, low) power requirements. 2. PMOS, NMOS and CMOS are three technologies that use field-effect transistors to fabricate modern digital ICs. (True or False) 3. CMOS stands for negative-channel metal-oxide semiconductor and is a type of extremely high- speed high-power consumption digital IC. (True or False) low True False

19 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing with Switches Switch-to-TTL interfaces Pull up resistor Pull down resistor LOWHIGH INPUT pulled HIGH by pull up resistor INPUT pulled HIGH by pull up resistor INPUT pulled LOW by switch INPUT pulled LOW by switch +5V INPUT pulled LOW by pull down resistor INPUT pulled LOW by pull down resistor HIGH INPUT pulled HIGH by switch INPUT pulled HIGH by switch LOW Switch-to-CMOS interfaces With pull up resistor With pull down resistor Pull down resistor

20 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ A B 1. The component labeled A in the interfacing circuit is called a __________ (pull-down, pull- up) resistor and is holding the input to the inverter HIGH. 2. The component labeled B in the interfacing circuit is called a __________ (pull- down, pull-up) resistor and is holding the input to the inverter LOW. 3. The output at point C is currently __________ (HIGH, LOW) because the pull-down resistor is holding the inverter’s input LOW. C pull-up pull-down HIGH

21 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Switch Debouncing Debouncing Latch time HIGH LOW Mechanical switches that serve as inputs for some digital circuits (like counters) may need switch debouncing. A Low-to-High switch transition can result in H-L-H bounces. A demonstration of a debouncing circuit in action. Notice No switch bounce!

22 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ time HIGH LOW 1. The output waveform at A going L-H-L-H is referred to as a(n) __________ (analog, digital) signal. A B 2. The block labeled B is a switch __________ latch. 3. The L-H-L-H output of the SPDT switch on the left is debounced by the electronic device labeled B. (True or False) digital debouncing True

23 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. 33 k  +5 V 150  TTL or CMOS Interfacing TTL or CMOS to LEDs HIGH LOW HIGH Off Transistor ON Either TTL or CMOS ICs can drive an LED using a transistor. Left arrow key on keyboard to erase and see action again.

24 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. If point A goes HIGH point B will go LOW and the transistor will turn off causing the LED to __________ (turn off, turn on). 2. If point B goes HIGH and the transistor will turn on causing the LED to __________ (turn off, turn on). 3. The inverter can be from either the TTL or CMOS family of ICs and be able to drive the indicator LED. (True or False) +5V A B LED turn off turn on True

25 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing with Buzzers, Relays, Motors & Solenoids Piezo buzzer - a signaling device drawing less current than older buzzers and bells. DC or AC motors - produce continuous rotary motion. (Motor voltages and current not compatible with logic circuits.) Solenoid - a device that can produce linear motion. Relay - a device to isolate logic device from high- voltage/current circuit. Optoisolator - a device to isolate logic device from high-voltage/current circuit.

26 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing with a Piezo Buzzer LOW Goes HIGH Transistor ON Buzzer sounds HIGH Goes LOW Transistor OFF No sound Left arrow on keyboard to erase and see action again.

27 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. When the input to the inverter goes LOW, the buzzer __________ (does not sound, sounds). 2. When the input to the inverter goes HIGH, the input to the transistor goes LOW which turns __________ (OFF, ON) both the transistor and the buzzer. sounds OFF

28 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Isolation-Logic to High Voltage/Current Electromechanical Relays - older method of isolation. Relays are expensive, heavy, and produce “noise.” Optoisolator (Optocoupler) - light weight alternative to electromagnetic relay when interfacing with logic circuits. Solid State Relay - a heavy-duty version of an optoisolator.

29 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing Using a Relay Electromechanical Relay Low Voltage (+5V) Side of circuit DC Motor (12 Volt) High Voltage (12V) Side of circuit Driver Transistor N.O. relay contacts Left arrow key on keyboard to erase and view again.

30 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing Using a Relay to Control a DC Motor HIGH LOWTransistorOff Coil not energized N.O. contacts remain open DC motor does not run LOW HIGHTransistorON Coil energized N.O. contacts snap closed DC motor runs (Left arrow key on keyboard to erase and view again)

31 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. If the input to the inverter is LOW, the transistor will turn ON and the relay coil will be energized. (True or False) 2. If the input to the inverter is LOW, the transistor will turn ON, the relay coil will be energized, the N.O. relay contacts close, and the motor will run. (True or False) 3. If the input to the inverter is HIGH, the DC motor __________ (will, will not) run. True will not ©2008 The McGraw-Hill Companies, Inc. All rights reserved.

32 5 VDC 120 VAC Logic ground Load ground Optical Isolation (Left click for L-to-H input signal) Solid state relay or optoisolator

33 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Interfacing Using on Optoisolator (Left click for action) LOW HIGH at pin 2 of IC LED does not light Transistor OFF No Sound HIGH LOW at pin 2 of IC LED lights ICs transistor ON Buzzer sounds Left arrow key on keyboard to erase and view again)

34 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. If the input to the inverter is HIGH, the LED inside the optoisolator lights, the transistor turns __________ (ON and the buzzer sounds, OFF and the buzzer is silent). 2. The optoisolator IC isolates the lower voltage (5V) input from the higher voltage (12V) output. (True or False) 3. There is a low resistance electrical connection between the input logic circuits and the output buzzer circuit because of the optoisolator IC. (True or False) ON and the buzzer sounds True False

35 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. ICs Sourcing and Sinking Current An example of the IC Sourcing Current To drive the output LED (conventional current flow) Notice the IC has Active-HIGH output An example of the IC Sinking Current To drive the output LED (conventional current flow) Notice the IC has Active-LOW output Active-HIGH output Active-LOW output

36 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Stepper- and Servo-Motors Stepper motor - a motor that rotates a fixed angle (in discrete steps) for each input pulse. The logic levels applied to each field coil are defined in the control sequence for the stepper motor. Can reverse direction by progressing either up or down the control sequence. Servo motor (hobby-type servo) - a motor widely used in radio-control vehicles that rotates to an angle defined by the pulse width of the input signal. It is driven by pulse-width modulation. The pulse widths for hobby servos motors range from about 1- to 2-msec. Hobby servos have a limited range of rotation such as 180 degrees.

37 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Step L1 L1 L2 L2 1 1 0 1 0 2 0 1 1 0 3 0 1 0 1 4 1 0 0 1 1 1 0 1 0 2 0 1 1 0 L1 L2 Note: Use --> key for CW, then <-- key for CCW rotation) Stepper Motor Operation Sequence Chart

38 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. +5V Input Servo Motor End of output shaft Input= 1.5 msec positive pulse 50Hz Output=centered Input= 1 msec positive pulse 50Hz Output=CW Input= 2 msec positive pulse 50Hz Output=CCW Left arrow on keyboard to erase and see action again.

39 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. The angular position of a servo motor’s shaft can be modified by varying the pulse voltage entering the input to the device. (True or False) 2. Stepping upward or downward through a control sequence results in the stepping action (in small discrete steps) of a stepper motor. (True or False) 3. If sequencing downward through the control sequence of a stepper motor causes CCW rotation, then reversing and going upwards though the control sequence will cause __________ (CW, no) rotation of the output shaft. False True CW or clockwise

40 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Hall-Effect Switch IC Bipolar Hall-effect Switch IC Hall-effect sensor Schmitt trigger (digitizes output) Output NPN transistor Vcc (+5V) GND pin Output pin of IC (Left arrow on keyboard to erase and view again)

41 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Using the Hall-Effect Switch IC (Left arrow on keyboard to erase and view again) South pole North pole South pole North pole Transistor ON Pin 3 goes LOW LED lights Transistor OFF Pin 3 goes HIGH LED is OFF (Left click for action) S pole approaching Hall-effect sensor Turns ON transistor N pole approaching Hall-effect sensor Turns OFF transistor

42 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ 1. If the S pole of a magnet approaches the Hall-effect sensor of this IC the transistor will turn __________ (OFF and the LED will not light, ON and the LED will light). ON and the LED will light 2. If the N pole of a magnet approaches the Hall-effect sensor of this IC the transistor will turn OFF and the LED will not light. (True or False) True 3. The output of the Hall-effect sensor is analog in nature but the device called a(n) __________ (NPN transistor, Schmitt trigger) changes this to a digital output. Schmitt trigger

43 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. Hobby Servo Motor Output- pin 14 BASIC Stamp® Module Driving a Servo Motor Step 1: Write program on PC in PBASIC Key lines of code are: FOR C = 1 to 25‘Begin counting loop PULSOUT 14, 1000 ‘Emits 2ms pulses—CCW rotation PAUSE 20‘Pause 20ms NEXT‘Repeat if C<25 FOR C = 1 to 25‘Begin counting loop PULSOUT 14, 500‘Emits 1ms pulses—CW rotation PAUSE 20‘Pause 20ms NEXT‘Repeat if C<25 Step 2: Download program from PC to BS2 module Step 3: Disconnect PC from BS2 module Step 4: Power OFF and ON (BS2 module). Observe motor shaft rotation as program runs. FOR C= 1 to 25 PULSOUT 14, 1000 ‘CCW rotation PAUSE 20 NEXT FOR C= 1 to 25 PULSOUT 14, 500 ‘CW rotation PAUSE 20 NEXT PBASIC Code Left arrow on keyboard to erase and view again

44 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. QUIZ PBASIC code (BS2 module) FOR C= 1 to 20 PULSOUT 14, 1000 PAUSE 20 NEXT 1. The PULSOUT 14, 1000 line of code will cause the BASIC Stamp® to output a _____ (HIGH, LOW) pulse for 2ms (1000 x 2usec= 2ms) at pin 14 of the BS2 module. HIGH 2. The PAUSE 20 line of code will cause the BASIC Stamp® to output a LOW for 20ms. (True or False) True 3. The FOR-NEXT loop will be repeated _____ (20, 1000) times. 20 4. The 2ms positive output pulse generated by BS2 module can be used to rotate a hobby _____(servo, ac) motor in the CCW direction. servo

45 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. REVIEW Logic Levels/Noise Margin Interfacing Families of ICs Other Specifications MOS and CMOS ICs Interfacing with Switches Interfacing with LEDs Interfacing with Buzzers, Relays, Motors and Solenoids

46 ©2008 The McGraw-Hill Companies, Inc. All rights reserved. REVIEW (Continued) Interfacing Using an Optoisolator Current Sourcing and Sinking Using a Stepper Motor Using a Servo Motor Hall-effect Sensor/Switch Using the Hall-effect Switch BASIC Stamp® Driving a Servo


Download ppt "©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 5 IC Specifications and."

Similar presentations


Ads by Google