The CD4511 is a 16-pin (DIP-16) decoder and driver IC that turns a 4-bit binary (BCD) number into the seven outputs a 7-segment display needs. If the number on inputs A, B, C and D (pins 7, 1, 2 and 6; A = 1, B = 2, C = 4, D = 8) is between 0 and 9, that digit lights up; for codes 10 to 15 all segments go dark. The output of a segment that should light goes to 1, so it needs a common cathode display; a common anode one does not work. Segment outputs a to g are pins 13, 12, 11, 10, 9, 15 and 14 and each supplies at most 25 mA; every segment still gets its own resistor. Lamp test pin 3 at GND lights all segments and blanking pin 4 at GND turns the display off; in normal use both are tied to positive. While latch pin 5 (LE) is at GND the inputs go straight to the display; at positive the last digit stays on screen. It draws 6 and 9 without tails: the top bar stays off in 6, the bottom bar in 9. It does not count, it only decodes. It runs from 3 to 18 V; pin 16 is positive supply, pin 8 is GND. Unused inputs must not be left floating.

