CSc 4110/6110 Embedded Systems
Lab Experiment #3
Instructor: Dr. Michael Weeks

Using the iPAQ as a drawing pad

This assignment must be done individually. You are not allowed to share your code with others. As in the previous labs, clearly define and document your code. If you use code from an example, you must indicate what that code is.

Let the user draw in multiple colors on the iPAQ's screen with the stylus, and save the work. The current color should be shown at the bottom of the screen. Assume that the keypad is minimized when your program is in use. Input will come from the stylus or one of the buttons on the iPAQ.

You can choose an appropriate name for the filename.

Requirements:

The drawings do not need to be saved in a portable format like JPEG. But your program should be able to read and display the previous image.

Colors on the iPAQ are in the format of red (5 bits), green (6 bits), and blue (5 bits).

Questions

  1. How do events and interrupts compare? Research this, describe it, and be sure to cite sources in your answer. (This should be at least 2 pages.)
  2. What ways did you use to allocate and free memory? What other ways are there?
  3. How much memory does your program use? How much RAM is available on the iPAQ? How much memory does your program request when it runs? How large could the screen be before you would run into problems?
  4. Explain how you chose to save your data to a file.