I need to make a device that can check the state of 40 SPST switches and then send this data to a computer via USB.
The core of this board will be the SX28 micro-controller. I plan on making it check the states of the 40 SPST switches, serialize the data, send the data to a PC via USB specifications for the computer to handle.
The part throwing me for the biggest loop is handling 40 switches while the SX28 has only 20 ( -1 for USB connection) possible inputs to the registers.
I come from a Programmer and Server Management background so the solution that first comes to mind is, have 2 slave SX28 chips checking 20 switches each then send their serialized data back to a master SX28 chip that polls the slaves and updates the PC via USB.
Does anyone have any recommendations or ideas how to pull this off more efficiently?
Also does anyone know a great tutorial or document explaining how to work with the USB interface and how to process the signal on Linux?
Thanks in advance!
The core of this board will be the SX28 micro-controller. I plan on making it check the states of the 40 SPST switches, serialize the data, send the data to a PC via USB specifications for the computer to handle.
The part throwing me for the biggest loop is handling 40 switches while the SX28 has only 20 ( -1 for USB connection) possible inputs to the registers.
I come from a Programmer and Server Management background so the solution that first comes to mind is, have 2 slave SX28 chips checking 20 switches each then send their serialized data back to a master SX28 chip that polls the slaves and updates the PC via USB.
Does anyone have any recommendations or ideas how to pull this off more efficiently?
Also does anyone know a great tutorial or document explaining how to work with the USB interface and how to process the signal on Linux?
Thanks in advance!