Types of Encoders and Decoders. An encoder is an electronic device used to convert an analogue signal to a digital signal such as a BCD code. ... The encoder allows 2 power N inputs and generates N-number of outputs. For example, in 4-2 encoder, if we give 4 inputs it produces only 2 outputs.Dec 20, 2014