For this lab you are to write a program that makes the Z16 development board behave like a simple stop watch. At minimum you will need to use one timer, GPIO, interrupts and polling. Your stopwatch will need to keep time in 0.1 second increments and display it. The display will show four digits (9999 10th of seconds) and the left most digits will be blank if they are zero (so for 2.4 seconds you will see "24" 10th seconds rather than "0024"). You can write your program in C or assembly or a little of each (but there is no reason you need to use assembly), its up to you.

The buttons of your stopwatch will have the following functions:
You should scan the display (either vertically or horizontally) rather than drawing the digits.
You should write your program so that you can easily expand the display code to include alphabetic characters. You might want to make reusable libraries (separate source files) for the display and another for the buttons (you might need them in a future lab or your final project (hint: read the other labs and see)). You will not need to add and wires or components for this lab (in fact you should NOT add any).
Answer these questions and include with your lab submission (as a readme.txt file):