Download presentation

Presentation is loading. Please wait.

Published byNicole Spencer Modified over 3 years ago

1
Gary Plimer 2005 Logic Making decisions Although it may not always seem like it, electronics and electronic systems are very logical in the way that they work. In the simplest form, if you want a light to come on, then you press a switch. Of course, it gets more complicated than that. Most technological systems involve making more complicated decisions: for example, sorting out bottles into different sizes, deciding whether a room has a burglar in it or not, or knowing when to turn a central heating system on or off.

2
Gary Plimer 2005 Logic Gates Logic gates are very useful in dealing with and processing a combination of different inputs. This switching logic can be applied to electrical switches and sensors, pneumatic valves or hydraulic systems. Switching logic uses logic gates to perform decisions. In previous work you have already seen NOT, AND and OR logic gates. Task: Draw a Truth Table for each of the Logic Gates shown.

3
Gary Plimer 2005 Integrated Circuits Although logic gates have electronic symbols, they are not discrete components: they are contained in integrated circuits. A typical example is the TTL7400 IC shown below. Your data book is useful tool to help identify Ics. Have a look now!

4
Gary Plimer 2005 Nand Logic Gate ABANDNAND 00 01 10 11 Construct the circuit shown using Croc Clips and then complete the Truth Table.

5
Gary Plimer 2005 NOR Logic Gate ABORNOR 00 01 10 11 Construct the circuit shown using Croc Clips and then complete the Truth Table.

6
Gary Plimer 2005 Boolean Expressions Each logic gate has a corresponding Boolean mathematical formula or expression. The use of these expressions saves us having to draw symbol diagrams over and over again. The name Boolean is taken from an English mathematician, George Boole, who founded symbolic logic in the nineteenth century

7
Gary Plimer 2005 Using Nand Gates NAND gate technology can be used to build other logic gates using NAND gates only. (The same thing can be achieved using NOR gates, but NAND gate chips are more common.) What benefit do you think there might be in using jut 1 type of logic gate?

8
Gary Plimer 2005 Using Nand Gates You only have to stock one type of chip instead of a large range. People only have to be familiar with the characteristics of this one chip. Very often significant simplification of complex circuits is possible, thus reducing the number of chips required.

9
Gary Plimer 2005 Pupil Assignment Redraw the following logic systems replacing the logic gates with combinations of NAND logic gates. Use the equivalents shown on the previous slide.

10
Gary Plimer 2005 Building up a Truth Table Say we have 3 inputs to a logic system, using powers of 2 we can calculate the number of possible combinations of input to the circuit as follows, No. of combinations = 2 3 = 8 ABC 000 001 010 011 100 101 110 111 Decimal equivalent 4 2 1

11
Gary Plimer 2005 Combinational Logic So far in this unit of work we have only looked at simple logic systems on their own. In reality, most logic systems use a combination of different types of logic gates in one system. This type of logic control is known as combinational logic. Questions 1. What is this system designed for? 2. What is the purpose of the AND gate? 3. Why is the inverter (NOT gate) included?

12
Gary Plimer 2005 Worked Example ABCDZ 0000 0010 0100 0110 1000 1010 1101 1111 Draw up the truth table and fill up to point D

13
Gary Plimer 2005 Worked Example Draw up the results for point Z. (This is the output from the OR gate, being fed by output D and input C only.) ABCDZ 00000 00101 01000 01101 10000 10101 11011 11111

14
Gary Plimer 2005 Pupil Assignment Draw up a truth table for each of the following logic systems.

15
Gary Plimer 2005 Pupil Assignment Draw up a truth table for each of the following logic systems.

16
Gary Plimer 2005 NAND and NOR gate TT ABCANDDORZ 0000110 0010110 0100110 0110110 1000110 1010110 1101001 1111010 Note the extra columns for the inversions of the NAND & NOR

17
Gary Plimer 2005 Pupil Assignment Draw up a truth table for each of the following logic systems.

18
Gary Plimer 2005 Logic Diagrams from T. Tables ABZ 000 0 10 101 110 The truth table below shows two inputs, A and B, and one output, Z. The output Z is at logic 1 in the third row down, and we can see that for this to happen A must be at logic 1 and B must be at logic 0. In other words

19
Gary Plimer 2005 Worked Example ABCZ 0000 0010 0 100 0111 1000 1010 1101 1110 Copy down the truth table into your workbook. Your teacher will work through the solution with you.

20
Gary Plimer 2005 Pupil Assignments Copy down the truth table, then draw the logic diagrams for each of the following truth tables.

21
Gary Plimer 2005 Logic Diagrams from a Spec Worked example A burglar alarm system is to sound if a master switch is on and either a light beam is broken or a pressure pad is stood on. Draw a logic diagram and a truth table for this system. Read the specification carefully. You should notice that it has three inputs. These are: a master switch (M) a light sensor (L), and a pressure pad (P). It has one output, an alarm bell (B). The bell should go to logic 1 if the master switch is at 1 and either the light beam goes to logic 0 or the pressure pad goes to logic 1. This can be written in Boolean as:

22
Gary Plimer 2005 Logic Diagrams from a Spec MLPB 0000 0010 0100 0110 1001 1011 1100 1111 The truth table for this system is shown below. Again, all you have to do is read the specification carefully and then read across each row, one at a time, and decide whether the bell should be ringing or not.

23
Gary Plimer 2005 Pupil Problems 1)A house doorbell is to ring if a push button at the front door, a push button at the back door or both buttons are operated. Draw a logic diagram and write a Boolean equation. 2)A lift motor is to start only when, by closing, the door has actuated a switch and a passenger has pressed a button. Prepare a truth table, a logic diagram and a Boolean equation for this system. 3)The driver of a dustcart is to be able to operate the loading claw by pressing a button, but only when the senior loader at the rear of the cart has pressed a button to give the all clear. Draw a logic diagram and write a Boolean equation for this system. 4)An automatic central heating system is to heat the radiators (R) if the mains switch (M) is on, the timing control switch (T) is closed and the override button (O) is not selected. Draw a logic diagram, truth table and Boolean statement for this system.

24
Gary Plimer 2005 Pupil Problems 5) A drill is to operate if an isolator is closed, a guard is in place (closing a micro switch), either HI or LOW speed is selected and a foot pedal is operated. Draw a suitable logic diagram for this system. Draw up a truth table. 6) A large hall has three temperature sensors. A logic system is to operate the radiator when any two of the temperature sensors fall below a preset level. Draw up a truth table for this system and draw a logic diagram. 7) A burglar alarm will operate if the mains switch is on and either an electronic beam is broken, a pressure pad is stood on or a window is opened. Draw a logic diagram for this system.

25
Gary Plimer 2005 Logic Gate Integrated Circuits Integrated circuits consist of plastic cases filled with electronic circuitry. There are many resistors, transistors and other components packed into the chips. There are literally thousands of ICs on the market, all designed to do different jobs – logic gates, amplifiers, timers, etc

26
Gary Plimer 2005 TTL Integrated Circuits There are two main types of Integrated Circuit, (IC) TTL (Transistor - Transistor Logic) TTL Advantages- Very fast switching speed. - Unused pins can be left to float, unattached. TTL Disadvantages- Low fan out (number of subsequent gates it can drive. - Requires a stabilised voltage supply, (5V).

27
Gary Plimer 2005 CMOS Integrated Circuits CMOS (Complementary Metal Oxide Semiconductor) CMOS Advantages- High fan out (number of subsequent gates it can drive. - Works on a wide supply voltage, (5 – 15V) CMOS Disadvantages- Slower response / switching time. - Unused pins must be tied to supply rails.

28
Gary Plimer 2005 TTL Integrated Circuits In our work we will only consider TTL. However, you need to remember the advantages / disadvantages of each type. All TTL chips have a four-digit code number, which always starts with 74. For example, a 7400 is a quad two-input NAND chip. Although the chip contains complex circuitry, the internal wiring can be shown as simple logic circuits with the inputs and outputs of each logic gate shown. This is called a pin-out diagram. Your Data book lists the most common ICs Pin 14 is connected to the 5- volt stable supply and pin 7 to 0 volts

29
Gary Plimer 2005 Prototype Board Prototype board is used to build prototype circuits. It is much better to test a circuit on prototype board before mass producing the circuit. Why do you think this might be?

30
Gary Plimer 2005 Pin Out Diagrams ICs are impossible to use without the manufacturers data sheets to show what facilities are available on the chip and how the pins are to be connected. These data sheets contain pin-out diagrams. A pin-out diagram is a graphical layout of the chip and its contents.

31
Gary Plimer 2005 Pin Out Diagrams The description of each pin- out diagram gives details of the chip. For example, a dual four- input NOR means the chip has two (dual) NOR gates on it, each having four inputs. A quad two-input AND means the chip has four AND gates, each gate having two inputs.

32
Gary Plimer 2005 Pin-out and wiring diagrams Your teacher will show you how to convert this logic circuit into a pin out diagram

33
Gary Plimer 2005 Pupil Assignment Draw a pin out diagram for each of the following combinational logic circuits.

34
Gary Plimer 2005 Pupil Assignment Copy each of the shown logic diagrams into your workbook. Construct a truth table for each. Draw a pin out diagram for each. Simulate using Croc Clips to confirm your truth table.

35
Gary Plimer 2005 Test Equipment When trying to establish logic levels within a complex system or to monitor a logic output without using an LED, we use a digital logic probe. The logic probe is powered from the same supply as the logic circuit being tested and the needle point is pushed against the various pins on the IC to test their logic level. Normally the logic probe gives out a high-pitched sound and a red LED lights if the pin being tested is at logic 1. If the point tested is at logic 0, a low-pitched sound is emitted and a green LED lights. Your teacher will allow you to test a simple circuit using the logic probe.

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google