CircuitNote

Quick electronics calculators for lab work and circuit design. Free, no sign-up, works in your browser.

한국어

Lab guide

Making sense of active-low: the 74LS147 encoder and 74LS42 decoder

Function tables for two chips whose inputs and outputs work on Low.

The first time you use a 74LS147 priority encoder it is easy to get stuck on "I pulled the input up to 5 V, so why does nothing happen?". In the lab we knew the outputs were active-low but missed that the inputs are selected by Low as well, and had to rewire once. A pin whose name has a bar over it (1̅, D̅) or whose symbol has a small circle is active (on) when Low.

1. 74LS147 (decimal to BCD priority encoder)

InputsPin(s) pulled LowOutputs D C B AValue read inverted
all High—11110
only input 1 Low1111101
only input 2 Low1211012
only input 3 Low1311003
only input 4 Low110114
only input 5 Low210105
only input 6 Low310016
only input 7 Low410007
only input 8 Low501118
only input 9 Low1001109
inputs 3 and 7 both Low13, 410007

Inputs 1–9 and outputs A–D are all active-low. An output of 1111 means "nothing selected (0)", and you read the input number by inverting each output bit. If several inputs are Low, the highest number wins (priority). There is no pin for input 0. Power is VCC on pin 16 and GND on pin 8.

2. 74LS42 (BCD to decimal decoder)

Inputs D C B ADecimalOutputs 0 1 2 … 9Output driven Low
000000 1 1 1 1 1 1 1 1 10 (pin 1)
000111 0 1 1 1 1 1 1 1 11 (pin 2)
001021 1 0 1 1 1 1 1 1 12 (pin 3)
001131 1 1 0 1 1 1 1 1 13 (pin 4)
010041 1 1 1 0 1 1 1 1 14 (pin 5)
010151 1 1 1 1 0 1 1 1 15 (pin 6)
011061 1 1 1 1 1 0 1 1 16 (pin 7)
011171 1 1 1 1 1 1 0 1 17 (pin 9)
100081 1 1 1 1 1 1 1 0 18 (pin 10)
100191 1 1 1 1 1 1 1 1 09 (pin 11)

The inputs are ordinary active-high and only the outputs are active-low: the selected output goes Low and the rest stay High. Inputs 10–15 leave every output High. Power is VCC on pin 16 and GND on pin 8.

3. How not to get confused

Convert between BCD and binary with the number base converter, and see the 7-segment calculator for display decoders (the 7447's outputs are active-low too).