Home |
Search |
Today's Posts |
#1
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
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. |
#2
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
|
#3
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
On May 24, 3:50 pm, John Fields wrote:
On 24 May 2007 02:52:34 -0700, wrote: 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? --- If this is a one-off I recommend the shift register method, and there's no reason for the skipping error to occur if the thing is designed properly. Would you like a schematic? -- JF It's a proof of concept, but for now I'd just like to go with whatever's simplest. If you can give me a schematic I'd be very grateful. Thanks, Jon. |
#4
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
|
#5
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
On May 24, 5:10 pm, John Fields wrote:
On 24 May 2007 06:48:26 -0700, wrote: On May 24, 3:50 pm, John Fields wrote: On 24 May 2007 02:52:34 -0700, wrote: 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? --- If this is a one-off I recommend the shift register method, and there's no reason for the skipping error to occur if the thing is designed properly. Would you like a schematic? -- JF It's a proof of concept, but for now I'd just like to go with whatever's simplest. If you can give me a schematic I'd be very grateful. --- OK. I'll post it to alt.binaries.schematics.electronic sometime tomorrow and I'll also email you a copy since you can't access binary newsgroups through Google. -- JF Got it. Thank a lot! I really appreciate it. Jon. |
#6
Posted to alt.electronics
|
|||
|
|||
FPGA or shift registers?
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Air registers | Home Repair | |||
Best Baseboard Heat Registers? | Home Repair | |||
Best Baseboard Registers? (HVAC) | Home Ownership | |||
FLASH, CPLD, FPGA - Future of repair? | Electronics Repair | |||
Duct registers. | Home Repair |