CSE477 Laboratory Assignment #3


Serial Communication, Communication Protocols, Palm Pilot Development Environment

Assigned: 26 January
Due: 4 February


Objectives:

When you have completed this lab, you should know how to:


Reading:

Course notes on communication (RS-232, in particular).

Handout of the Palm Pilot application code with which your EVB board will communicate.


Part 1: Using the Palm Pilot as a User Interface

You are provided with the skeleton of a program for the Palm Pilot that displays sonar and compass data received over the serial line.

The user interface provides four menu options and a button. All of the procedures are written (and tested) except for the EVBupdate function. This function is called whenever an event occurs, or when the user requests. It should check the serial line for data and update the screen accordingly. (Think of your screen as a sonar map.)

You must decide on and implement a serial communication protocol. Packets should always start with a framing byte. The format of the remainder of the packet is left up to you.

The code was developed using the MetroWerks CodeWarrior Palm Pilot Integrated Development Environment.

Downloads:

Part 2: Controlling the Compass and Sonar Remotely

Modify the microcontroller program that controls the compass and sonar so that they can be read remotely.

Part 3: Operate the Sensors Through the Palm Pilot

Modify your microcontroller program so that it communicates with the Palm Pilot. You will need to conform to the serial communications protocol that you implemented in the Palm Pilot CSE477Lab3 application. You are able to use the two functions GetByte() and SendByte() to send and receive data over the second serial communication port on the microcontroller.

What to Turn In

Demonstrate the Palm Pilot displaying sensor data. Also turn in a flow chart of your protocol for the serial communication between the Pilot and the microcontroller. It should clearly specify what is implemented using polling and what is implemented using interrupts.


Comments to: cse477-webmaster@cs.washington.edu (Last Update: )