Monitoring an Input Pin by Polling
- Breadboard an input switch pulled up and connect it to an open
pin on port A of your Pic connected to a single LED 7 segment
display.
- Create a program to count the number of times the button is
pushed by polling (continually sampling) the status of the input
pin.
- Base this program on the flowchart.
To understand flowcharts see
these links.
- Remember program
organization.
- Consider the following when writing your code;
- Program Initialization
- Is Button Pushed
- Increment Count and Display
- use the previous assignment code with adjustment.
Technological Design Home