Caffeinated Coder
Book an appointment
Lesson 16 · Combinational circuits

Decoders and encoders

A decoder turns a binary number into exactly one active wire: two input bits light one of four output lamps. Build a 2-to-4 decoder from two NOT gates and four AND gates, watch it pick a memory row and an operation, light the bars of a 7-segment digit, and then go the other way with an encoder, including the priority encoder that copes when several lines are on.

10 min9 steps5 questionsIntermediate
Fig 16 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.