12. Th E d d D d diff t ki d
The Encoder and Decoder
The Encoder and Decoder are different kind
of combinational circuits which are used to convert binary
information to decimal,octal and hexa decimal and vice-versa.
36
13. ้ ัวงจรเข้ารหัส (Encoder)
เป็นวงจรการให้รหัสกับข้อมลโดยรหัสที่ได้จ อย่ในเปนวงจรการใหรหสกบขอมูลโดยรหสทไดจะอยูใน
รูป Binary เช่น Keyboard ซึ่งเป็น standard input ของู y y p
คอมพิวเตอร์ตัวอักษรแต่ละตัวเมื่อถูกกดจะส่ง
ั ้ ่ ์ ่ ้ ั ไ ้สัญญาณเข้าสู่ระบบคอมพิวเตอร์ผ่านวงจรเข้ารหัสได้
เป็น รหัส 8 บิทเปน รหส 8 บท
วงจร1 1
Encoder2
M
2
nm =< 2n
M nm =< 2
37
17. D dDecoder
A decoder is combinational circuit which is used for toA decoder is combinational circuit which is used for to
convert n it binary information to 2n unique outputs. so that
a decoder circuit is used for to convert a binary informationa eco e c cu t s use o to co ve t a a y o at o
to decimal,octal and hexa decimal. a decoder circuit is a
variable circuit called as nxm decoder.
The outputs are D0,D1,D2,D3,D4.The inputs are
connected to 4 AND gates and derive Unique outputs. If we
have Enable it will come along with input line.This is used to
h f d d h hstart the process of decoder circuit.Weather is Zero the
inputs representing with xx called don't care conditions.