{"id":4549,"date":"2025-03-25T11:17:30","date_gmt":"2025-03-25T05:47:30","guid":{"rendered":"https:\/\/study.madeeasy.in\/?p=4549"},"modified":"2025-07-16T14:21:00","modified_gmt":"2025-07-16T08:51:00","slug":"code-converters","status":"publish","type":"post","link":"https:\/\/www.madeeasy.in\/study\/ee\/boolean-algebra\/code-converters","title":{"rendered":"Code Converters"},"content":{"rendered":"<p style=\"text-align: justify;\">The availability of a large variety of codes for the same discrete elements of information results in the use of different codes by different systems. Therefore a conversion circuit is inserted between the two systems, if each uses different codes for the same information.<br \/>\nHence, a \u201ccode converter\u201d is a logic circuit which changes data presented in one type of binary code to another type of binary code. It makes two systems compatible even though each uses a different binary code.<\/p>\n<h2 style=\"text-align: justify;\">The following are some of most commonly used code converters.<\/h2>\n<p style=\"text-align: justify;\">(i) BCD-to-binary<br \/>\n(ii) Binary-to-BCD<br \/>\n(iii) Binary-to-gray-code<br \/>\n(iv) Gray-code-to-binary<br \/>\n(v) BCD to Excess-3<br \/>\n(vi) Excess-3 to BCD<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_1 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.madeeasy.in\/study\/ee\/boolean-algebra\/code-converters\/#ENCODERS\" >ENCODERS<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.madeeasy.in\/study\/ee\/boolean-algebra\/code-converters\/#Octal-to-Binary-Encoder\" >Octal-to-Binary Encoder<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.madeeasy.in\/study\/ee\/boolean-algebra\/code-converters\/#DECODERS\" >DECODERS<\/a><\/li><\/ul><\/nav><\/div>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"ENCODERS\"><\/span>ENCODERS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Encoder is a combinational circuit, whose inputs are decimal digits (or) alphabetic characters (or) familiar numbers (or) symbols and outputs are the coded representation of those inputs.<br \/>\nAn encoder has \u2018m\u2019 input lines and \u2018n\u2019 output lines, where m \u2264 2n. It is assume that only one input has a value of 1 at any given time.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4550 size-full\" src=\"https:\/\/study.madeeasy.in\/wp-content\/uploads\/2025\/03\/encoder.jpg\" alt=\"Encoder\" width=\"322\" height=\"101\" srcset=\"https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/encoder.jpg 322w, https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/encoder-300x94.jpg 300w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/p>\n<p style=\"text-align: justify;\">Encoders can be designed with both active high and active low signals.<\/p>\n<h4 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Octal-to-Binary-Encoder\"><\/span>Octal-to-Binary Encoder<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">Octal \u21d2 8 symbols (symbols 0 to 7)<br \/>\nm = 8. So, 2n \u2265 8 \u21d2 n \u2265 3<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4551 size-full\" src=\"https:\/\/study.madeeasy.in\/wp-content\/uploads\/2025\/03\/octal.jpg\" alt=\"Octal\" width=\"559\" height=\"198\" srcset=\"https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/octal.jpg 559w, https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/octal-300x106.jpg 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"DECODERS\"><\/span>DECODERS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Decoder is a combinational circuit, which converts the coded binary information into symbols (or) numbers. It performs the reverse operation of an encoder. It has \u2018n\u2019 inputs and \u2018m\u2019 outputs lines.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4552 size-full\" src=\"https:\/\/study.madeeasy.in\/wp-content\/uploads\/2025\/03\/Decoder.jpg\" alt=\"Decoder\" width=\"296\" height=\"101\" \/><\/p>\n<p style=\"text-align: justify;\">At a time one output line will be active based on an input combination.<\/p>\n<p style=\"text-align: justify;\">2 \u00d7 4 Decoder (with active high inputs and active high outputs)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4553 size-full\" src=\"https:\/\/study.madeeasy.in\/wp-content\/uploads\/2025\/03\/reverse-operation.jpg\" alt=\"Reverse operation\" width=\"644\" height=\"527\" srcset=\"https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/reverse-operation.jpg 644w, https:\/\/www.madeeasy.in\/study\/wp-content\/uploads\/2025\/03\/reverse-operation-300x245.jpg 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p style=\"text-align: center;\"><a class=\"btn btn-danger\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/ee\/boolean-algebra\/adders-and-subtractors\/\" target=\"_blank\" rel=\"noopener\">&lt;&lt; Previous<\/a> | <a class=\"btn btn-success\" role=\"button\" href=\"https:\/\/study.madeeasy.in\/ee\/boolean-algebra\/multiplexers\/\" target=\"_blank\" rel=\"noopener\"> Next &gt;&gt;<\/a><br \/>\n<strong> Must Read: <\/strong> <a href=\"https:\/\/study.madeeasy.in\/subjects\/what-is-boolean-algebra\" target=\"_blank\" rel=\"noopener\"><strong>What is Boolean algebra?<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The availability of a large variety of codes for the same discrete elements of information results in the use of<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1291,5],"tags":[1485,1486,1484,1340,1427,1432,1338,1487,1443,1488,1339],"class_list":["post-4549","post","type-post","status-publish","format-standard","hentry","category-boolean-algebra","category-ee","tag-bcd-to-binary","tag-binary-to-gray","tag-code-converters","tag-decoder","tag-digital-circuits","tag-digital-electronics","tag-encoder","tag-gray-code","tag-logic-gates","tag-number-systems","tag-octal-to-binary-encoder"],"_links":{"self":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/4549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/comments?post=4549"}],"version-history":[{"count":0,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/posts\/4549\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/media?parent=4549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/categories?post=4549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madeeasy.in\/study\/wp-json\/wp\/v2\/tags?post=4549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}