lloydi12345
Member
Hi, I am building a project right now and it would need 30 buttons. I am already leaning near to my first option which is the idea of multiplexing the input using 8 input and 4 output pins of a microcontroller like this one with some modifications. What bothers me here is that the microcontroller might not be able to handle the voltage or it might pick up some nasty signals.
**broken link removed**
Another option is to use 74HC165 but what bothers me is the processing time. It might take time for the microcontroller to determine which button was pressed. It looks like I would be using 4 of these ICs and stack them. There would be a lot of for loops and logic and shifting actions that would be involved so it could take lots of processing time. This would also complicate the PCB design since 4 ICs will be used.
I will be using PIC18F6622. Do you think the first option would be the best way for this? The things that should be considered here are PCB designing, electrical noise, complexity of the program and processing time.
If you have other suggestions I would be willing to know it. Thanks!
**broken link removed**
Another option is to use 74HC165 but what bothers me is the processing time. It might take time for the microcontroller to determine which button was pressed. It looks like I would be using 4 of these ICs and stack them. There would be a lot of for loops and logic and shifting actions that would be involved so it could take lots of processing time. This would also complicate the PCB design since 4 ICs will be used.
I will be using PIC18F6622. Do you think the first option would be the best way for this? The things that should be considered here are PCB designing, electrical noise, complexity of the program and processing time.
If you have other suggestions I would be willing to know it. Thanks!