keypad problem
Posted: Mon Dec 05, 2011 9:48 pm
Hi,
I was working on my next project and as always I tested the parts of the program before the whole thing. When I did a test of receiving a number from a keypad 4×4 and displaying it on an LCD I discovered a big error. The keypad was giving me different numbers (mostly around 1-10) even when no buttons were pressed (if I am correct it should be 255).
My test program contained: LCD start , and a continuous loop in which I had macros for reading from keypad as Byte and then displaying it on LCD (cursor 0,0) as a number. Simple program.
Has anyone an idea why this wold be happening?
Jan
PS: In simulation the whole thing worked.
I was working on my next project and as always I tested the parts of the program before the whole thing. When I did a test of receiving a number from a keypad 4×4 and displaying it on an LCD I discovered a big error. The keypad was giving me different numbers (mostly around 1-10) even when no buttons were pressed (if I am correct it should be 255).
My test program contained: LCD start , and a continuous loop in which I had macros for reading from keypad as Byte and then displaying it on LCD (cursor 0,0) as a number. Simple program.
Has anyone an idea why this wold be happening?
Jan
PS: In simulation the whole thing worked.