hi,
I have a device with 34 digital (5V or 0V) inputs. Only one of the 34 can be 5V at any one time. I'd like to know the number of input which is at 5V. I can think of two ways of doing this:
a) 5 eight-bit shift registers. Each input is connected to a shift register and the shift registers are read and outputted one bit at a time periodically (left shifting the bits one bit at a time). b) programming a FPGA. It'll have 34 inputs and report the number of input that was tripped as output.
The disadvantage of method (a) is that it has more parts and also I was told that during the reading of the shift registers there might be an error where one bit is skipped, which will result in getting the wrong number for the tripped input. The disadvantage of method (b) is that I have no idea how to program a FPGA.
Can anyone recommend either of these methods (or a simpler one if it exists)? Is it likely that the skipping error in reading the shift registers will occur?
thanks, Jon.