There are many issue when interfacing a processor to a physical switch. So many that this one question can and has been broken down into several separate questions here on this web site:
How to de-bounce a switch has been asked many times including here here.
How to use pull up resistors with a switch has been asked many times including here here.
How to scan a switch matrix has been asked many times including here here.
Add to that, you need to decide how to parse your data.
- Will you always expect 2 digits?
- If so, What will you do if the user enters 3 digits?
- Will you support a back-space feature?
- Hows about a clear-entry feature?
- What about a enter-key feature?
Fortunately many of these questions are addressed in this tutorial.
There are many issue when interfacing a processor to a physical switch. So many that this one question can and has been broken down into several separate questions here on this web site:
How to de-bounce a switch has been asked many times including here.
How to use pull up resistors with a switch has been asked many times including here.
How to scan a switch matrix has been asked many times including here.
Add to that, you need to decide how to parse your data.
- Will you always expect 2 digits?
- If so, What will you do if the user enters 3 digits?
- Will you support a back-space feature?
- Hows about a clear-entry feature?
- What about a enter-key feature?
Fortunately many of these questions are addressed in this tutorial.
There are many issue when interfacing a processor to a physical switch. So many that this one question can and has been broken down into several separate questions here on this web site:
How to de-bounce a switch has been asked many times including here.
How to use pull up resistors with a switch has been asked many times including here.
How to scan a switch matrix has been asked many times including here.
Add to that, you need to decide how to parse your data.
- Will you always expect 2 digits?
- If so, What will you do if the user enters 3 digits?
- Will you support a back-space feature?
- Hows about a clear-entry feature?
- What about a enter-key feature?
Fortunately many of these questions are addressed in this tutorial.
There are many issue when interfacing a processor to a physical switch. So many that this one question can and has been broken down into several separate questions here on this web site:
How to de-bounce a switch has been asked many times including here.
How to use pull up resistors with a switch has been asked many times including here.
How to scan a switch matrix has been asked many times including here.
Add to that, you need to decide how to parse your data.
- Will you always expect 2 digits?
- If so, What will you do if the user enters 3 digits?
- Will you support a back-space feature?
- Hows about a clear-entry feature?
- What about a enter-key feature?
Fortunately many of these questions are addressed in this tutorial.