Tuesday, May 27, 2014

Final Project in Digital Design

House Security System


Members:
Cherry May Abela
Sherwin Atender
Annabel Balane
Trazyl Joy Suplico
Rommel Terante







Monday, May 5, 2014

Activity May 5 2014

           Logic Gates





"Schematic Diagram and Truth Table"

1.








2.

























Sunday, April 27, 2014

Logic Gates (Schematic Diagram, Truth Table, 74 series logic IC)

                             LOGIC GATES

 

Logic gates perform basic logical functions and are the fundamental building blocks of digital integrated circuits. Most logic gates take an input of two binary values, and output a single value of a 1 or 0. Some circuits may have only a few logic gates, while others, such as microprocessors, may have millions of them. There are seven different types of logic gates, which are outlined below.
In the following examples, each logic gate except the NOT gate has two inputs, A and B, which can either be 1 (True) or 0 (False). The resulting output is a single value of 1 if the result is true, or 0 if the result is false.

  1. AND - True if A and B are both True
  2. OR - True if either A or B are True
  3. NOT - Inverts value: True if input is False; False if input is True
  4. XOR - True if either A or B are True, but False if both are True
  5. NAND - AND followed by NOT: False only if A and B are both True
  6. NOR - OR followed by NOT: True only if A and B are both False
  7. XNOR - XOR followed by NOT: True if A and B are both True or both False
By combining thousands or millions of logic gates, it is possible to perform highly complex operations. The maximum number of logic gates on an integrated circuit is determined by the size of the chip divided by the size of the logic gates. Since transistors make up most of the logic gates in computer processors, smaller transistors mean more complex and faster processors.

 

Logic gates

Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates. The basic operations are described below with the aid of truth tables.
AND gate
  
The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are high.  A dot (.) is used to show the AND operation i.e. A.B.  Bear in mind that this dot is sometimes omitted i.e. AB
 
OR gate
  
The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are high.  A plus (+) is used to show the OR operation.
 

  
The NOT gate is an electronic circuit that produces an inverted version of the input at its output.  It is also known as an inverter.  If the input variable is A, the inverted output is known as NOT A.  This is also shown as A', or A with a bar over the top, as shown at the outputs. The diagrams below show two ways that the NAND logic gate can be configured to produce a NOT gate. It can also be done using NOR logic gates in the same way.
 


  
This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate.  The outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a small circle on the output. The small circle represents inversion.
 
NOR gate
  
This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate.  The outputs of all NOR gates are low if any of the inputs are high.
The symbol is an OR gate with a small circle on the output. The small circle represents inversion.
 
 
EXOR gate
  
The 'Exclusive-OR' gate is a circuit which will give a high output if either, but not both, of its two inputs are high.  An encircled plus sign () is used to show the EOR operation.
EXNOR gate
  
The 'Exclusive-NOR' gate circuit does the opposite to the EOR gate. It will give a low output if either, but not both, of its two inputs are high. The symbol is an EXOR gate with a small circle on the output. The small circle represents inversion.

The NAND and NOR gates are called universal functions since with either one the AND and OR functions and NOT can be generated.
Note:
A function in sum of products form can be implemented using NAND gates by replacing all AND and OR gates by NAND gates.
A function in product of sums form can be implemented using NOR gates by replacing all AND and OR gates by NOR gates.
Table 1: Logic gate symbols
Table 2 is a summary truth table of the input/output combinations for the NOT gate together with all possible input/output combinations for the other gate functions. Also note that a truth table with 'n' inputs has 2n rows. You can compare the outputs of different gates.
Table 2: Logic gates representation using the Truth table
 



Example

A NAND gate can be used as a NOT gate using either of the following wiring configurations.

                                        (You can check this out using a truth table.)

 

 

 

         A schematic, or schematic diagram, is a representation of the elements of a system using abstract, graphic symbols rather than realistic pictures. A schematic usually omits all details that are not relevant to the information the schematic is intended to convey, and may add unrealistic elements that aid comprehension. For example, a subway map intended for riders may represent a subway station with a dot; the dot doesn't resemble the actual station at all but gives the viewer information without unnecessary visual clutter. A schematic diagram of a chemical process uses symbols to represent the vessels, piping, valves, pumps, and other equipment of the system, emphasizing their interconnection paths and suppressing physical details. In an electronic circuit diagram, the layout of the symbols may not resemble the layout in the physical circuit. In the schematic diagram, the symbolic elements are arranged to be more easily interpreted by the viewer.

          A semi-schematic diagram combines some of the abstraction of a purely schematic diagram with other elements displayed as realistically as possible, for various reasons. It is a compromise between a purely abstract diagram (e.g. the schematic of the Washington Metro) and an exclusively realistic representation

 

 

 

                           Electrical Symbols & Electronic Symbols

Electrical symbols and electronic circuit symbols are used for drawing schematic diagram.
The symbols represent electrical and electronic components.



                               Table of Electrical Symbols

Symbol Component name Meaning

Wire Symbols

electrical wire symbol Electrical Wire Conductor of electrical current
connected wires symbol Connected Wires Connected crossing
unconnected wires symbol Not Connected Wires Wires are not connected

Switch Symbols and Relay Symbols

SPST switch symbol SPST Toggle Switch Disconnects current when open
SPDT switch symbol SPDT Toggle Switch Selects between two connections
push button symbol Pushbutton Switch (N.O) Momentary switch - normally open
push button symbol Pushbutton Switch (N.C) Momentary switch - normally closed
dip switch symbol DIP Switch DIP switch is used for onboard configuration
spst relay symbol SPST Relay Relay open / close connection by an electromagnet
spdt relay symbol SPDT Relay
jumper symbol Jumper Close connection by jumper insertion on pins.
solder bridge symbol Solder Bridge Solder to close connection

Ground Symbols

earth  ground symbol Earth Ground Used for zero potential reference and electrical shock protection.
chassis symbol Chassis Ground Connected to the chassis of the circuit
common digital ground symbol Digital / Common Ground  

Resistor Symbols

resistor symbol Resistor (IEEE) Resistor reduces the current flow.
resistor symbol Resistor (IEC)
potentiomemer symbol Potentiometer (IEEE) Adjustable resistor - has 3 terminals.
potentiometer symbol Potentiometer (IEC)
variable resistor symbol Variable Resistor / Rheostat (IEEE) Adjustable resistor - has 2 terminals.
variable resistor symbol Variable Resistor / Rheostat (IEC)
Trimmer Resistor Preset resistor
Thermistor Thermal resistor - change resistance when temperature changes
Photoresistor / Light dependent resistor (LDR) Photo-resistor - change resistance with light intensity change

Capacitor Symbols

Capacitor Capacitor is used to store electric charge. It acts as short circuit with AC and open circuit with DC.
capacitor symbol Capacitor
polarized capacitor symbol Polarized Capacitor Electrolytic capacitor
polarized capacitor symbol Polarized Capacitor Electrolytic capacitor
variable capacitor symbol Variable Capacitor Adjustable capacitance

Inductor / Coil Symbols

inductor symbol Inductor Coil / solenoid that generates magnetic field
iron core inductor symbol Iron Core Inductor Includes iron
variable core inductor symbol Variable Inductor  

Power Supply Symbols

voltage source symbol Voltage Source Generates constant voltage
current source symbol Current Source Generates constant current.
ac power source symbol AC Voltage Source AC voltage source
generator symbol Generator Electrical voltage is generated by mechanical rotation of the generator
battery cell symbol Battery Cell Generates constant voltage
battery symbol Battery Generates constant voltage
controlled voltage source symbol Controlled Voltage Source Generates voltage as a function of voltage or current of other circuit element.
controlled current source symbol Controlled Current Source Generates current as a function of voltage or current of other circuit element.

Meter Symbols

voltmeter symbol Voltmeter Measures voltage. Has very high resistance. Connected in parallel.
ammeter symbol Ammeter Measures electric current. Has near zero resistance. Connected serially.
ohmmeter symbol Ohmmeter Measures resistance
wattmeter symbol Wattmeter Measures electric power

Lamp / Light Bulb Symbols

lamp symbol Lamp / light bulb Generates light when current flows through
lamp symbol Lamp / light bulb
lamp symbol Lamp / light bulb

Diode / LED Symbols

diode symbol Diode Diode allows current flow in one direction only (left to right).
zener diode Zener Diode Allows current flow in one direction, but also can flow in the reverse direction when above breakdown voltage
schottky diode symbol Schottky Diode Schottky diode is a diode with low voltage drop
varicap diode symbol Varactor / Varicap Diode Variable capacitance diode
tunnel diode symbol Tunnel Diode  
led symbol Light Emitting Diode (LED) LED emits light when current flows through
photodiode symbol Photodiode Photodiode allows current flow when exposed to light

Transistor Symbols

npn transistor symbol NPN Bipolar Transistor Allows current flow when high potential at base (middle)
pnp transistor symbol PNP Bipolar Transistor Allows current flow when low potential at base (middle)
darlington transistor symbol Darlington Transistor Made from 2 bipolar transistors. Has total gain of the product of each gain.
JFET-N transistor symbol JFET-N Transistor N-channel field effect transistor
JFET-P transistor symbol JFET-P Transistor P-channel field effect transistor
nmos transistor symbol NMOS Transistor N-channel MOSFET transistor
pmos transistor symbol PMOS Transistor P-channel MOSFET transistor

Misc. Symbols

motor symbol Motor Electric motor
transformer symbol Transformer Change AC voltage from high to low or low to high.
Electric bell Rings when activated
Buzzer Produce buzzing sound
fuse symbol Fuse The fuse disconnects when current above threshold. Used to protect circuit from high currents.
fuse symbol Fuse
bus symbol Bus Contains several wires. Usually for data / address.
bus symbol Bus
bus symbol Bus
optocoupler symbol Optocoupler / Opto-isolator Optocoupler isolates connection to other board
speaker symbol Loudspeaker Converts electrical signal to sound waves
microphone symbol Microphone Converts sound waves to electrical signal
operational amplifier symbol Operational Amplifier Amplify input signal
schmitt trigger symbol Schmitt Trigger Operates with hysteresis to reduce noise.
Analog-to-digital converter (ADC) Converts analog signal to digital numbers
Digital-to-Analog converter (DAC) Converts digital numbers to analog signal
crystal oscillator symbol Crystal Oscillator Used to generate precise frequency clock signal

Antenna Symbols

antenna symbol Antenna / aerial Transmits & receives radio waves
antenna symbol Antenna / aerial
dipole antenna symbol Dipole Antenna Two wires simple antenna

Logic Gates Symbols

NOT gate symbol NOT Gate (Inverter) Outputs 1 when input is 0
AND gate symbol AND Gate Outputs 1 when both inputs are 1.
NAND gate symbol NAND Gate Outputs 0 when both inputs are 1. (NOT + AND)
OR gate symbol OR Gate Outputs 1 when any input is 1.
NOR gate symbol NOR Gate Outputs 0 when any input is 1. (NOT + OR)
XOR gate symbol XOR Gate Outputs 1 when inputs are different. (Exclusive OR)
D flip flop symbol D Flip-Flop Stores one bit of data
mux symbol Multiplexer / Mux 2 to 1 Connects the output to  selected input line.
mux symbol Multiplexer / Mux 4 to 1
demux symbol Demultiplexer / Demux 1 to 4 Connects selected output to the input line.   



Truth Tables


A truth table shows how a logic circuit's output responds to various combinations of the inputs, using logic 1 for true and logic 0 for false. All permutations of the inputs are listed on the left, and the output of the circuit is listed on the right. The desired output can be achieved by a combination of logic gates. A truth table for two inputs is shown, but it can be extended to any number of inputs. The input columns are usually constructed in the order of binary counting with a number of bits equal to the number of inputs.

Truth tables help understand the behaviour of logic gates.
  • They show how the input(s) of a logic gate relate to its output(s).
  • The gate input(s) are shown in the left column(s) of the table with all the different possible input combinations. This is normally done by making the inputs count up in binary.
  • The gate output(s) are shown in the right hand side column.


74 series logic IC datasheets!

part #description
74LS00Quad 2-Input NAND Gate
74LS01Quad 2-Input NAND Gate; Open Collector Outputs
74LS02Quad 2-Input NOR Gate
74LS03Quad 2-Input NAND Gate; Open Collector Outputs
74LS04Hex Inverter
74LS05Hex Inverter; Open Collector Outputs
74LS06Hex Inverter; Open Collector High Voltage Outputs
74LS07Hex Buffer; Open Collector High Voltage Outputs
74LS08Quad 2-Input AND Gate
74LS09Quad 2-Input AND Gate; Open Collector Outputs
74LS10Triple 3-Input NAND Gate
74LS11Triple 3-Input AND Gate
74LS12Triple 3-Input NAND Gate; Open Collector Outputs
74LS13Dual 4-Input NAND Schmitt Triggers
74LS14Hex Schmitt-Trigger Inverter
74LS15Triple 3-Input AND Gate; Open Collector Outputs
74LS16Hex Inverter; Open Collector 15V Outputs
74LS17Hex Driver; Open Collector 15V Outputs
74LS19NAND Schmitt Trigger; Totem Pole Output
74LS20Dual 4-Input NAND Gate
74LS21Dual 4-Input AND Gate; Open Collector Outputs
74LS22Dual 4-Input NAND Gate; Open Collector Outputs
74LS232x Four input NOR with Strobe
74LS252x Four input NOR with Strobe
74LS26Quad 2-Input NAND Gate; OC (15V)
74LS27Triple 3-Input NOR Gate
74LS28Quad 2-Input NOR Gates
74LS308-Input NAND Gate
74LS31Delay Element
74LS32Quad 2-Input OR Gate
74LS33Quad 2-Input NOR Gate; Open Collector Outputs
74LS37Quad 2-Input NAND Gates
74LS38Quad 2-Input NAND Gates; Open Collector Outputs
74LS394x Two input NAND, Open collector
74LS40Dual 4-Input NAND Gates
74LS42BCD to DECIMAL Decoder
74LS45Four-to-Ten (BCD to Decimal) DECODER, High current
74LS46BCD to Seven-Segment DECODER, Open Collector, lamp test and leading zero handling
74LS47BCD to 7-Segment Decoder; Open Collector Outputs (15V)
74LS48BCD to 7-Seg Decoder; Outputs Active high
74LS49BCD to 7-Seg Decoder-Outputs Active High
74LS502x (Two input AND) NOR (Two input AND), expandable
74LS51Dual AND-OR-INVERT Gates
74LS53NOR of Four Two input ANDs, expandable
74LS544-Wide AND-OR-INVERT Gate
74LS554-Wide; 2-Input AND-OR-INVERT Gate
74LS56Frequency Divider
74LS57Frequency Divider
74LS644-3-2-2 AND-OR-INVERT
74LS654-3-2-2 AND-OR-INVERT
74LS68Dual 4-Bit Decade or Binary Counter
74LS69Dual 4-Bit Decade or Binary Counter
74LS701x gated JK FLIPFLOP with preset and clear
74LS721x gated JK FLIPFLOP with preset and clear
74LS73Dual J-K Flip-Flop
74LS74Dual D-Type Flip-Flop
74LS75Dual 2-Bit D-Type Flip-Flop
74LS76Dual J-K Flip-Flop
74LS774-Bit D-Type Latch
74LS78Dual J-K Flip-Flop
74LS834-Bit Full Adder
74LS854-Bit Comparator
74LS86Quad Exclusive OR Gate
74LS90Decade Counter
74LS918-Bit Shift Register
74LS92Divide-By-12 Counter
74LS934-Bit Binary Counter
74LS94Four bit SHIFT register
74LS954-Bit Shift Register with Parallel Inputs and Outputs
74LS965-Bit Shift Register with Parallel Inputs and Outputs
74LS107Dual J-K Master Slave Flip-Flop
74LS109Dual J-K Flip-Flop
74LS112Dual J-K Flip-Flop with Preset and Clear
74LS113Dual J-K Flip-Flop
74LS114Dual J-K Flip-Flop
74LS1162x Four bit LATCH with clear
74LS121Monostable Multivibrator
74LS122Retriggerable Monostable Multivibrator
74LS123Retriggerable Monostable Multivibrator
74LS1242x Clock Generator or Voltage Controlled Oscillator
74LS125Quad Line Driver; 3-State Outputs
74LS126Quad Line Driver; 3-State Outputs
74LS1284x Two input NOR, Line driver
74LS130Retriggerable Monostable Multivibrator
74LS132Quad 2-Input NAND Schmitt Trigger
74LS13313-Input NAND Gate
74LS134Twelve input NAND, Tri-state
74LS1354x Two input XOR (exclusive or)
74LS136Quad 2-Input Exclusive OR Gates
74LS1373-Line to 8-Line Demultiplexer with Address Latch
74LS1383-Line to 8-Line Demultiplexer
74LS1392-Line to 4-Line Decoder/Demultiplexer
74LS1402x Four input NAND, 50 ohm Line Driver
74LS143Four bit counter and latch with 7-segment LED driver
74LS145BCD to Decimal Decoder/Driver
74LS14710-Line to 4-Line Priority Encoder
74LS1488-Line to 3-Line Priority Encoder
74LS15016-1 SELECTOR (multiplexer)
74LS1518-Line to 1-Line Multiplexer
74LS153Dual 4-Line to 1-Line Multiplexer
74LS1544-Bit Binary Decoder/Demultiplexer
74LS155Dual 2-Bit Binary Decoders/Demultiplexer
74LS156Dual 2-Bit Binary Decoders/Demultiplexer
74LS157Quad 2-Line to 1-Line Multiplexer
74LS158Quad 2-Line to 1-Line Multiplexer
74LS1594-16 DECODER (demultiplexer), Open collector
74LS1604-Bit Synchronous Programmable Counter
74LS1614-Bit Synchronous Programmable Counter
74LS1624-Bit Synchronous Programmable Counter
74LS1634-Bit Synchronous Programmable Counter
74LS1648-Bit Shift Register with Parallel Outputs
74LS1658-Bit Shift Register with Parallel Inputs
74LS1668-Bit Shift Register with Parallel Inputs
74LS168Up/Down 4-Bit Synchronous Counter
74LS169Up/Down 4-Bit Synchronous Counter
74LS17016-Bit RAM; Open Collector Outputs
74LS1734-Bit Quad D-Type Flip-Flops; 3-State Outputs
74LS174Hex D-Type Flip-Flop
74LS175Quad D-Type Flip-Flop
74LS180Four bit parity checker
74LS1814-bit Arithmetic Logic Unit
74LS182Look Ahead Carry Generator
74LS183Dual Carry-Save Full Adder
74LS190Synchronous Up/Down Decade Counter
74LS191Synchronous Up/Down 4-Bit Binary Counter
74LS192Synchronous Up/Down Decade Counter
74LS193Synchronous Up/Down 4-Bit Binary Counter
74LS1944-Bit Bidirectional Shift Register
74LS1954-Bit Parallel-Access Shift Register
74LS196Programmable Decade Counter
74LS197Programmable Decade Counter
74LS198Eight bit parallel in and out bidirectional SHIFT register
74LS199Eight bit parallel in and out bidirectional SHIFT register, JK serial input
74LS221Dual Monostable Multivibrator; Schmitt-Trigger Input
74LS240Octal Inverting Buffer/Transciever; 3-State Outputs
74LS241Octal Buffer/Transciever; 3-State Outputs
74LS242Quad 3-State Bus Transceiver
74LS2434-Bit Bidirectional Bus Driver
74LS244Octal 3-State Noninverting Buffer
74LS245Octal 3-State Noninverting Bus Transceiver
74LS247BCD to 7-Seg Decoder/Display Driver OC (15V)
74LS248BCD to 7-Seg Decoder/Display Driver OC (15V)
74LS249BCD to 7-Seg Decoder/Display Driver OC (15V)
74LS2518-Line to 1-Line Multiplexer; 3-State Outputs
74LS253Dual 4-Input Data Selecttor/Multiplexer 3-State
74LS256Dual 4-Bit Addressable Latch
74LS257Quad 2-Line to 1-Line Multiplexers; 3-State Outputs
74LS258Quad 2-Line to 1-Line Multiplexers; 3-State Outputs
74LS2598-Bit Adressable Latch
74LS260Dual 5-Input NOR Gate
74LS266Quad Exclusive NOR Gate
74LS2698-BIT BIDIRECTIONAL BINARY COUNTER
74LS273Octal D-Type Flip-Flop; Common Clock and Clear
74LS279Quad SR-Flip-Flops
74LS2809-Bit Parity checker
74LS2834-Bit Full Adder
74LS2904-Bit Decade/Binary Counter
74LS298Quad 2-Line to 1-Line Multiplexers with Latch
74LS2998-Bit Bidirectional Universal Shift Register
74LS3228-Bit Sign-Extend Shift Register
74LS3238-Bit Universal Shift Register with Latch
74LS3488-Line to 3-Line Priority Encoder with 3-State Outputs
74LS352Dual 4-Line to 1-Line Multiplexers
74LS353Dual 4-Line to 1-Line Multiplexers with 3-State Outputs
74LS365Hex Bus Line Drivers
74LS3663-State Hex Line Driver
74LS367Hex Bus Line Drivers
74LS368Hex Inverting Bus Line Drivers
74LS373Octal D-Type Latch
74LS374Octal D-Type Flip-Flop
74LS375Quad D-Type Latch
74LS377Octal D-Type Flip-Flop
74LS378Hex D-Type Flip-Flop
74LS379Quad D-Type Flip-Flop
74LS386Quad 2-Input Exclusive OR Gates
74LS390Dual Decade Counters
74LS393Dual Decade Counters
74LS3954-Bit Shift Register with 3-State Outputs
74LS398Quad 2-Input Register
74LS399Quad 2-Input Register
74LS490Dual Decade Counter
74LS5218-BIT IDENTITY COMPARATOR
74LS533Octal D-Type Transparent Latche
74LS534Octal Invering D-Type Flip-Flop
74LS5381-OF-8 DECODER WITH 3-STATE OUTPUTS
74LS5408-Bit Inverting Line Driver
74LS541OCTAL BUFFER/LINE DRIVER WITH 3-STATE OUTPUTS
74LS543OCTAL REGISTERED TRANSCEIVER, NON-INVERTING, 3-STATE
74LS544OCTAL REGISTERED TRANSCEIVER, INVERTING, 3-STATE
74LS5684-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS)
74LS5694-Bit Synchronous Counter
74LS5748-Bit D-Type Flip-Flop/Bus Driver
74LS5798-BIT BIDIRECTIONAL BINARY COUNTER (3-STATE)
74LS620OCTAL BUS TRANSCEIVER WITH 3-STATE OUTPUTS (INVERTING AND NONINVERTING)
74LS623Octal Bus Transcievers
74LS629Voltage Controlled Oscilator
74LS640Octal Bus Transciever
74LS646Octal Bus Transciever
74LS648Octal Bus Transciever/Register
74LS657OCTAL BIDIRECTIONAL TRANSCEIVER WITH 8-BIT PARITY GENERATOR CHECKER (3-STATE OUTPUTS)
74LS6694-Bit Synchronous Up/Down Counter
74LS6704-By-4 Register File; 3-State Outputs
74LS6828-Bit Magnitude/Identity Comparator
74LS6848-Bit Magnitude Comparators
74LS6888-Bit Magnitude Comparators
74LS7488-Line to 3-Line Priority Encoder
74LS7798-BIT BIDIRECTIONAL BINARY COUNTER (3-STATE)
74LS795Octal Buffer with 3-State Outputs
74LS8488-Line to 3-Line Priority Encoder with 3-State Outputs
74LS224525Ohm Octal Bidirectional Transceiver With 3-State Inputs and Outputs
74LS3893QUAD FUTUREBUS BACKPLANE TRANSCEIVER (3 STATE + OPEN COLLECTOR)