|
Article on other languages:
|
An encoder is a device used to change a signal (such as a bitstream) or data into a code. The code may serve any of a number of purposes such as compressing information for transmission or storage, encrypting or adding redundancies to the input code, or translating from one code to another. This is usually done by means of a programmed algorithm, especially if any part is digital, while most analog encoding is done with analog circuitry.
Single bit 4 to 2 EncoderAn encoder has 2n input lines and n output lines.The output lines genrate a binary code corresponding to the input value. For example a single bit 4 to 2 encoder takes in 4 bits and outputs 2 bits. It is assumed that there are only 4 types of input signals these are : 0001, 0010, 0100, 1000.
4 to 2 encoder
The encoder has the limitation that only one input can be active at any given time. If two inputs are simultaneously active, the output produces and undefined combination. To prevent this we make use of the priority encoder. Priority encoderA priority encoder is such that if two or more inputs is given at the same time, the the input having the highest priority will take precedence. An example of a single bit 4 to 2 encoder is shown.
4 to 2 priority encoder
Connecting Priority EncodersPriority encoders can be easily connected in arrays to make larger encoders, such as a 16 to 4 encoder made from six 4 to 2 priority encoders (four encoders having the signal source connected to their inputs, and two encoders that take the output of the first four as input). Examples
See alsoExternal links
Article keywords: linear encoder, |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net