Priority encoder inputs or Parity Encoder
Input Voltage comparator outputs Output
Vin
N O P Q R S T A B C
Vin<0.125V 0 0 0 0 0 0 0 0 0 0
0.125V<Vin<0.25V 0 0 0 0 0 0 1 0 0 1
0.25<Vin<0.375V 0 0 0 0 0 1 1 0 1 0
0.375<Vin<0. 5V 0 0 0 0 1 1 1 0 1 1
0.5<Vin<0.625V 0 0 0 1 1 1 1 1 0 0
0.625<Vin<0.75V 0 0 1 1 1 1 1 1 0 1
0.75<Vin<0.875V 0 0 1 1 1 1 1 1 1 0
0.875<Vin<1V 1 1 1 1 1 1 1 1 1 1