📜  编码器和解码器之间的区别

📅  最后修改于: 2021-08-27 18:14:11             🧑  作者: Mango

组合逻辑是两个或多个输入状态定义一个或多个输出状态的概念。编码器和解码器是组合逻辑电路。在其中,我们借助布尔代数实现组合逻辑。

对某物进行编码是将明确的信息转换为一种尚不十分清楚的代码形式,执行此操作的设备称为“广告编码器”。

1.编码器:
编码器是将活动数据信号转换为编码消息格式的设备,或者是将模拟信号转换为数字信号的设备。它是一种组合电路,它将2N输入线形式的二进制信息转换为代表输入N位代码的N条输出线。当将输入信号施加到编码器时,编码器中包含的逻辑电路会将特定的输入转换为编码的二进制输出。

解码是执行相反的操作:将代码转换回明确的形式代码,执行此操作的设备称为解码器。

2.解码器:
解码器也是编码器的组合电路,但其操作与编码器的操作完全相反。解码器是一种从编码输入信号生成原始信号作为输出,并将n行输入转换为2n行输出的设备。 AND门可以用作基本解码元件,因为仅当所有输入都为高电平时,AND门才产生高输出。

编码器和解码器之间的区别:

S.No. ENCODER DECODER
1 Encoder circuit basically converts the applied information signal into a coded digital bit stream. Decoder performs reverse operation and recovers the original information signal from the coded bits.
2 In case of encoder, the applied signal is the active signal input. Decoder accepts coded binary data as its input.
3 The number of inputs accepted by an encoder is 2n. The number of input accepted by decoder is only n inputs.
4 The output lines for an encoder is n. The output lines of an decoder is 2n.
5 The encoder generates coded data bits as its output. The decoder generates an active output signal in response to the coded data bits.
6 The operation performed is simple. The operation performed is complex.
7 The encoder circuit is installed at the transmitting end. The decoder circuit is installed at the receiving side.
8 OR gate is the basic logic element used in it. AND gate along with NOT gate is the basic logic element used in it.
9 It is used in E-mail, video encoders etc. It is used in Microprocessors, memory chips etc.