Here we list some fun projects one can do with 8-bit PIC microcontrollers. For instructions on how to program the chip using the PicKit2 for the various projects, see pprogs.html .
One can construct the timer
by placing the components
onto a solderless breadboard,
or by soldering the components
onto a perf-board. The connections
are shown in the figure to the right:
For the seconds, the most-significant-bit is pin 7, and for the minutes the most-significant-bit is pin 14. The second LED's count up to 30 then back down to zero in binary. The timer starts out at one minute, and one can push the button to add more minutes to the timer. Click here to see a parts list .
The assembly code for the timer is kitimer2.asm . The minutes are displayed in binary on pins 19 -> 14, with the lowest significant bit being pin 19. The seconds are displayed on pins 7,6,5,3,2, with the lowest significant bit being 2. The 10k Ohm resistor on pin 10 is used as a "pull-up" resistor for the button. When the button is pressed, pin 10 is grounded yielding a "zero".
Physics Department| College of Science