Need help with 74HC165/Keypad arrangement
Gumby
Posts: 24
Hi,
I made a circuit with a 74HC165 and connected it to a 16 keys keypad matrix (8 lines).
All 8 lines from the keypad have a pullup resistor (10K) connected to +5V . These lines connect to the HC165 inputs with a 330 Ohm resistor for zap protection.
The HC165 is otherwise connected to the BS2 as per StampWorks Experiemnt#24, that is pin 8-15 to ground and pin 16 to +5V. Pin1 load and pin 2 clock.
I am using the 'Shiftin' command:
'..
Read_165:
PULSOUT Load, 5 ' grab the switch inputs
SHIFTIN DataIn, Clock, MSBPRE, [noparse][[/noparse]switches\8] ' shift them in
RETURN
'
I connected the data pin to pin 7 of the HC165 and nothing happened. I saw another schematic using pin 9 still nothing.
All my connections test Ok.
Any suggestions as to why I am not getting any input from the keypad. Any incorrect connections?
Thank you in advance for your help.
Gilles
I made a circuit with a 74HC165 and connected it to a 16 keys keypad matrix (8 lines).
All 8 lines from the keypad have a pullup resistor (10K) connected to +5V . These lines connect to the HC165 inputs with a 330 Ohm resistor for zap protection.
The HC165 is otherwise connected to the BS2 as per StampWorks Experiemnt#24, that is pin 8-15 to ground and pin 16 to +5V. Pin1 load and pin 2 clock.
I am using the 'Shiftin' command:
'..
Read_165:
PULSOUT Load, 5 ' grab the switch inputs
SHIFTIN DataIn, Clock, MSBPRE, [noparse][[/noparse]switches\8] ' shift them in
RETURN
'
I connected the data pin to pin 7 of the HC165 and nothing happened. I saw another schematic using pin 9 still nothing.
All my connections test Ok.
Any suggestions as to why I am not getting any input from the keypad. Any incorrect connections?
Thank you in advance for your help.
Gilles
Comments
·· 4X4 Matrix Keypads are meant to interface with 4 output lines and 4 input lines typically.· A recent thread shows that there are many ways to skin a cat (err, keypad).· EDIT: I just noticed Forrest posted that thread.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com