Encoder (digital)

An encoder (or "simple encoder") in digital electronics is a one-hot to binary converter.

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

An encoder (or "simple encoder") in digital electronics is a one-hot to binary converter. That is, if there are 2n input lines, and at most only one of them will ever be high, the binary code of this 'hot' line is produced on the n-bit output lines. A binary encoder is the dual of a binary decoder.

If the input circuit can guarantee at most a single-active input, a simple encoder is a better choice than a priority encoder, since it requires less logic to implement. However, a simple encoder can generate an incorrect output when more than a single input is active, so a priority encoder is required in such cases.

  • 2 See also
  • 3 References
  • Types of encoder

    edit edit source

    2n-to-n encoders

    edit edit source

    A 2n-to-n encoder has n number of outputs in correspondence to the 2n number of inputs. It thus reduces the number of transmission lines and can be compared to a multiplexer. Only one of the inputs become "high" (logic state "1") at a time.

    For example, a 4-to-2 simple encoder takes 4 input bits and produces 2 output bits. The illustrated gate level example implements the simple encoder defined by the truth table, but it must be understood that for all the non-explicitly defined input combinations (i.e., inputs containing 0, 2, 3, or 4 high bits) the outputs are treated as don't cares.[1]

    4-to-2 encoder

    edit edit source
    Truth Table
    Input Output
    I3 I2 I1 I0 O1 O0
    0 0 0 0 x
    0 0 0 1 0 0
    0 0 1 0 0 1
    0 1 0 0 1 0
    1 0 0 0 1 1

    https://en.m.wikipedia.org/wiki/Encoder_(digital)#/editor/4 https://en.m.wikipedia.org/wiki/Encoder_(digital)#/editor/4

    See also

    edit edit source

    References

    edit edit source
    1. ^ "Binary Encoders And Their Applications". Electronics Hub. 2015-06-29. Retrieved 2017-05-01. Wikipedia revision 1288212683, retrieved 2026-11-20

    Text derived from https://en.wikipedia.org/w/index.php?oldid=1288212683 under CC BY-SA 4.0; modifications have been made.

    Words in each sectionTypes of encoderTypes of encoderTypes of encoder: 187 words187See alsoSee alsoSee also: 9 words9
    Words in each section. Measured from the stored article body; sections below the minimum are not plotted.

    Provenance

    snapshot enwiki-001288212683 · captured 2025-05-01 · ledger · version history

    Cite this page as: encyclopegia.org, “Encoder (digital)”, snapshot enwiki-001288212683. https://encyclopegia.org/a/encoder-digital