Digital Electronics/Digital Encoder
Digital Encoder
editA digital encoder is a digital device that uses bits to represent information as binary numbers.
Examples
editExample 1
editUsing a two bit binary number we have four 2 bits binary numbers
- 00
- 01
- 10
- 11
Let
- 00 --- 0
- 01 --- 1
- 10 --- 2
- 11 --- 3
The decimal numbers from 0 to 3 are encoded as 2 bit binary numbers.
Example 2
editSimilarly, with a 4 bit binary number we can encode the decimal numbers from 0 to 15 as shown below
- 0000 --- 0
- 0001 --- 1
- 0010 --- 2
- 0011 --- 3
- 0100 --- 4
- 0101 --- 5
- 0110 --- 6
- 0111 --- 7
- 1000 --- 8
- 1001 --- 9
- 1010 --- 10
- 1011 --- 11
- 1100 --- 12
- 1101 --- 13
- 1110 --- 14
- 1111 --- 15