Lab 2 Objective and Overview

In this laboratory, students will learn how to use a datasheet, an integrated circuit, and review the concept of binary codes by converting them to a decimal equivalent. The decimal equivalent is represented with a one-hot encoding. One output is active at a time.

You will use an IC, a 3-to-8 line decoder, as the basis of this lab. DIP (dual inline packaged) switches and resistors will be used to provide inputs. LEDs and resistors will be used as output state indicators.

Concepts and Theory

Integrated Circuit

IC Packaging

The following are some common IC packages, which contain the IC, bonding wires and connections to physical pins, as well as mechanical body. The packaging also help dissipate heat away from the IC. Sometimes we say "chip" to referred to the package, and this is understood by the context of use.

IC Part Numbering scheme

Number Schemes are used to identify parts, families of parts, and variants with different characteristics.

Technical Datasheet:

Technical Datasheet: a document containing the device’s technical characteristics including pin assignment, logic diagram, truth table, and operating details provided by the manufacturer.

3-to-8 Decoder IC

The IC used in this lab decodes three binary weighted address inputs to eight mutually exclusive outputs -- one of this outputs is active at a time. The outputs on this IC are active-low, meaning that the output is driven to a low voltage to indicate when active. The current which drives the output low will be sourced through an LED to turn it on. The IC has additional inputs other than the address pins that need to be set in order to see active outputs.

74HC138AP Pinout/Pin Assignment:

74HC138AP Truth Table:

Voltage and Logic

Tips for Beginners working with ICs

Input Generation for this lab:

Outputs Indicators YiY_i

Required Equipment

Experiment and Procedure

  1. Connect the decoder to the breadboard and wire GND and VCC pins according to the pin assignment (Figure 1).
  2. Enable the chip by holding the enable input G1G1 high and enable inputs Gˉ2A\bar{G}2A and, Gˉ2B\bar{G}2B low; otherwise, the chip is disabled and decoding function is inhibited so that all outputs go high. (G1G1, Gˉ2A\bar{G}2A , Gˉ2B\bar{G}2B and are used as address decoder in memory systems to ease cascade connections).
  3. Connect input ports to both GND and VCC by the use of a switch circuit.
  4. Connect Output ports to the voltage indicator circuits.
  5. Verify the circuit’s functionality by examining all possible input states and compare with the truth table (Table 1). Fill in the state of each LED in Table .

Table 1 -- 74138 Truth Table

Inputs Outputs
Enable Select
G1 Gˉ2B\bar{G}2B Gˉ2A\bar{G}2A C B A Yˉ0\bar{Y}0 Yˉ1\bar{Y}1 Yˉ2\bar{Y}2 Yˉ3\bar{Y}3 Yˉ4\bar{Y}4 Yˉ5\bar{Y}5 Yˉ6\bar{Y}6 Yˉ7\bar{Y}7
H L L L L L L H H H H H H H
H L L L L H H L H H H H H H
H L L L H L H H L H H H H H
H L L L H H H H H L H H H H
H L L H L L H H H H L H H H
H L L H L H H H H H H L H H
H L L H H L H H H H H H L H
H L L H H H H H H H H H H L

Table 2 -- LED Status

Inputs Outputs
Enable Select
G1 Gˉ2B\bar{G}2B Gˉ2A\bar{G}2A C B A LED0 LED1 LED2 LED3 LED4 LED5 LED6 LED7
H L L L L L _ _ _ _ _ _ _ _
H L L L L L _ _ _ _ _ _ _ _
H L L L L H _ _ _ _ _ _ _ _
H L L L H L _ _ _ _ _ _ _ _
H L L L H H _ _ _ _ _ _ _ _
H L L H L L _ _ _ _ _ _ _ _
H L L H L H _ _ _ _ _ _ _ _
H L L H H L _ _ _ _ _ _ _ _
H L L H H H _ _ _ _ _ _ _ _

Lab Instructor Verification _________________________________

Lab Report

This week no lab report is required.