Sully Station Technologies
Home Circuit Library Datasheets Contact

Parts, tools and supplies for the electronics experimenter.

74HC08 AND Gate Example Circuit

  • Concept of Operation

    The SN74HC08 (7408) integrated circuit provides four independent two-input AND gates in a single package. The basic example circuit presented here demonstrates the use of the SN74HC08. The basic usage presented here should also be informative in application to other similar quad two-input logic gate ICs in the 74HCxx series such as the SN74HC00 (7400) quad two-input NAND gate IC, the SN74HC02 (7402) quad two-input NOR gate IC, the SN74HC32 (7432) quad two-input OR gate IC, and the SN74HC86 (7486) quad two-input XOR gate IC.

    To understand the circuit, refer to the pinout diagram of the SN74HC08 datasheet which is copied below for reference. Pin 14, labeled Vcc, is connected to the positive power rail, and pin 7, labeled GND, is connected to the negative power rail. The AND gates on the IC are available in groups of three adjacent pins, as indicated by the standard symbol for the AND gate. For this circuit, pins 1 and 2 are the inputs, and the result is output on pin 3.

    Inputs can never be left "floating." Here they are connected to ground via 10K "pull-down" resistors. These resistors ensure that the pins will read low when there is no input, and will only register as high when a signal is applied via the DIP switch.

  • Schematic

  • Breadboard Diagram

  • Parts

    • SN74HC08 - Quad 2-Input AND Gate IC (x1)
    • 10K Resistor (x2)
    • Green 5v LED (x1)
    • 8 Position DIP Switch (x1)

    (All parts for the project are available in our store.)

  • SN74HC08 Pinout

  • Notes on Implementation

    1. Be mindful of the notch on the IC package which indicates proper orientation of the device.
    2. The schematic follows the convention for showing IC logic chips with multiple gates per chip, where individual gates are presented with their standard logic symbol and noted with A, B etc. to designate the different gates on the same chip.
    3. In the schematic unused switches on the 8 position DIP switch are not shown. Refer to the board diagram for placement of the DIP switch.
    4. The LEDs used in the project have a built in current limiting resistor eliminating the need for an external resistor to protect the device. This resistor is shown in the schematic as a resistor with the value “Lim” for completeness.
    5. The circuit was built and tested at 4.8 volts DC (4 AA NiMH rechargeable batteries). The 74HCxx series ICs are rated from 2 to 6 volts.