74LS147 10-to-4 line priority encoder (decimal to BCD)

The 74LS147 encodes nine active-low decimal inputs, 1′ to 9′, into a BCD code on D′ C′ B′ A′. It reports the highest input that is low, and its outputs are inverted: input 9 gives 0110, the complement of 1001. With no input low, it gives 1111, which stands for 0.

74LS147 pinout

VCC4′NC5′D′6′3′7′2′8′1′C′9′B′A′GND1611521431341251161079874LS147

Top view of the 16-pin DIP package. Pin 1 is at the bottom left, beside the notch, and the numbers run anticlockwise. Power is on pin 16 (VCC, +5 V) and pin 8 (GND).

PinNameTypeWhat it is
14′InputInput, active-low
25′InputInput, active-low
36′InputInput, active-low
47′InputInput, active-low
58′InputInput, active-low
6C′OutputTotem-pole output, active-low
7B′OutputTotem-pole output, active-low
8GNDGround0 V
9A′OutputTotem-pole output, active-low
109′InputInput, active-low
111′InputInput, active-low
122′InputInput, active-low
133′InputInput, active-low
14D′OutputTotem-pole output, active-low
15NC—Not connected
16VCCPower+5 V supply

74LS147 function table

74LS147 function table
Highest input lowD′C′B′A′
none1111
9′0110
8′0111
7′1000
6′1001
5′1010
4′1011
3′1100
2′1101
1′1110

What the 74LS147 is used for

  • Encoding a decimal keypad into BCD
  • Turning a ten-position switch into a 4-bit code

Electrical summary

Package16-pin DIP
Supply voltage5 V (4.75 V to 5.25 V)
Output typeTotem-pole — drives both high and low
Output current, lowsinks up to 8 mA
Output current, highsources up to 0.4 mA
Input current, low0.4 mA out of each input held low
Fan-outone output can drive about 20 LS inputs

Typical figures for quick reference when planning a board. Check the manufacturer's datasheet for limits and timing before committing a design. The 74HC147 and 74HCT147 use the same pin numbers, with different electrical values.

The 74LS147 and the Breadboard Simulator

The 74LS147 is not in the Breadboard Simulator's parts library yet — this page is a reference. The simulator seats the gates, decoders, multiplexers, adders and buffers marked on the chips page, so the logic around a 74LS147 can be planned and wired there.

Related chips

Build it before you build it.

Seat real 74-series chips on a virtual breadboard, wire them and probe every pin.