Assignment 4: The Counter.
You are to write a PIC program that counts the number of times
the RA1 switch on the PICDEM is pushed. The LED's initially
indicate a count of zero (all off). With each push of RA1 the
count is incremented (in binary) and the LED's show the current
count. After 255, the counter naturally rolls over to zero.
In class we talked about the TRISA register, to set the proper
pin to input, so that the switch can be read at PORTA,
and discussed the issue of debouncing. A
nice program for
debouncing was discussed.