Assignment
- Create a Program, Download, Breadboard, Test and Troubleshoot
a program which will count in binary the number of times a single
switch is pushed.
- You must debounce the switch.
- You should add a reset switch
- Your count should be from 0 to 255, then repeat
- The count should be displayed in binary using 8 leds on port
B. You must calculate the resistor size such that the total
current does not exceed the maximum current for the port indicated
on the spec sheet.
- Your input switches should be connected to port A
What to Hand in
- A demonstration of system working
- A flow chart of your program and the source code in basic
- A print out of the applicable page of the spec sheet
indicating the maximum current of Port B
- A calculation of the resistor values in order not to exceed
the total allowable current
- Answer the foloowing Question
- Why is pin RA4 perhaps not suitable for use as a source
output to drive a LED ?
- What special function can pin RA4 have if used as an input
?