hi E,
All programming is not without problems, most regular programmers know how to avoid the pitfalls and create a reliable working program.
Most, if not all, mechanical key switches have contact bounce problems which the program has to cater for, this has to be done in either a polling or interrupt driven routine.
I would agree the OP may not be an experienced programmer and choose to take a simple pad polling route, but there is no harm in making him aware of the option of using an interrupt,
If he did choose the ISR, I would be prepared to work thru it with him and make him realise interrupts are not difficult to use once you grasp the basics and its not poor practice.
If he ever moved to the 18F series of PIC's he would have opportunity to use both the High and Low level interrupts and create more efficient programs.
Aside I would like to say.
You seem intent on being unpleasant towards me in your replies, why I have no idea.?
My sole purpose as a contributing member to AAC, is in helping with technical problems, I really have not got the time to help you resolve your personal issues.
The OP asked a question regarding keypad programming, I have answered with a viable suggestion.
The OP will make a decision based on our replies which option to use, end of story.
Eric
All programming is not without problems, most regular programmers know how to avoid the pitfalls and create a reliable working program.
Most, if not all, mechanical key switches have contact bounce problems which the program has to cater for, this has to be done in either a polling or interrupt driven routine.
I would agree the OP may not be an experienced programmer and choose to take a simple pad polling route, but there is no harm in making him aware of the option of using an interrupt,
If he did choose the ISR, I would be prepared to work thru it with him and make him realise interrupts are not difficult to use once you grasp the basics and its not poor practice.
If he ever moved to the 18F series of PIC's he would have opportunity to use both the High and Low level interrupts and create more efficient programs.
Aside I would like to say.
You seem intent on being unpleasant towards me in your replies, why I have no idea.?
My sole purpose as a contributing member to AAC, is in helping with technical problems, I really have not got the time to help you resolve your personal issues.
The OP asked a question regarding keypad programming, I have answered with a viable suggestion.
The OP will make a decision based on our replies which option to use, end of story.
Eric