This VI simulates an 8 Inputs PRIORITY ENCODER.
Changing the states of the 8 Inputs values, you will have the Binary corrisponding to the 3 Outputs, but
at switching contemporary, you will get as output the highest value among the various inputs.
0 as the lowest Input value, follows 1, 2, ...
B0 as the lowest Output value, follows B1 and B2.
Follows the truth table:
Input | B2 | B1 | B0 |
---|
0 | 0 | 0 | 0 |
1 - 0 | 0 | 0 | 1 |
2 - 1 - 0 | 0 | 1 | 0 |
3 - 2 - 1 - 0 | 0 | 1 | 1 |
4 - 3 - 2 - 1 - 0 | 1 | 0 | 0 |
5 - 4 - 3 - 2 - 1 - 0 | 1 | 0 | 1 |
6 - 5 - 4 - 3 - 2 - 1 - 0 | 1 | 1 | 0 |
7 - 6 - 5 - 4 - 3 - 2 - 1 - 0 | 1 | 1 | 1 |
Mattia Perazzelli
Student at I.T.I. Guglielmo Marconi
Campobasso - Italy
Electronics and Telecommunications