Okay, so it looks like you're calling the power level selected by the driver as S, where S is 3 bits. You are calling the mode as C, right?Thanks:
You mean by the 3 inputs from the driver the 3 selectors?
why 3 bits for the output?
S2 S1 S0 C
0 0 0 ?
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 0
Okay, the maximum number to be represented on the output is 7/2 rounded up = 4. The lowest value is 0 (0/7 rounded down). This gives us 5 distinct output levels (0,1,2,3,4) which is represented by a minimum of 3 bits (000,001,010,011,100).
The number of required bits can be computed as log(number of possible values)/log(2) rounded up...in this case log(5)/log (2) rounded up = 3.