## Encoder (digital) |

A simple **encoder** or simply an ^{n} 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.

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]}

One may say it is the reverse of a

I_{3} | I_{2} | I_{1} | I_{0} | O_{1} | O_{0} | V |
---|---|---|---|---|---|---|

0 | 0 | 0 | 0 | x | x | 0 |

0 | 0 | 0 | 1 | 0 | 0 | 1 |

0 | 0 | 1 | 0 | 0 | 1 | 1 |

0 | 1 | 0 | 0 | 1 | 0 | 1 |

1 | 0 | 0 | 0 | 1 | 1 | 1 |

If the input circuit can guarantee at most a single-active input, a simple encoder is a better choice than a

- types of encoder
- see also
- references

A -to-n encoder has n number of outputs in correspondence to the number of inputs. It thus reduces the number of transmission lines and can be compared to a

Some typical examples would be 4:2 encoder, 8:3 encoder, 16:4 encoders etc.

INPUT | OUTPUT | |||||||||
---|---|---|---|---|---|---|---|---|---|---|

a[7] | a[6] | a[5] | a[4] | a[3] | a[2] | a[1] | a[0] | d[2] | d[1] | d[0] |

0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X |

0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |

0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |

0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |

0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |

0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |

0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |

0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 |

1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 |

Other Languages

العربية: مشفر

български: Шифратор

català: Codificador

Deutsch: Kodierer

eesti: Kooder

español: Codificador

euskara: Kodetzaile

فارسی: کدبند

français: Encodeur

galego: Codificador

한국어: 부호화

Bahasa Indonesia: Penyandi

italiano: Encoder (elettronica)

עברית: מקודד

ქართული: შიფრატორი

lumbaart: Codificator

日本語: エンコーダ

polski: Koder

português: Codificador

русский: Шифратор (электроника)

српски / srpski: Кодер

suomi: Enkooderi

ไทย: ตัวเข้ารหัส

Türkçe: Enkoder

українська: Шифратор

中文: 編碼器