Lab 5

Due: Nov 8, 2000

Purpose: Introduction to Device Drivers in Linux

Reading: Sections 9.1, 9.2, and 11.13 of the SA-1100 Developer's Manual

For this lab, you are to develop and install a simple (non interrupt driven) Linux Device Driver on the CerfBoard's Linux OS for an ultrasonic range finder device. You will need to learn about:

We are still putting the finishing touches on installing device drivers for the CerfBoard, so please start by getting your Sonar system to work with you 8051 processor. We will leave a copy of a good book on how to develop device drivers in the lab for you all to share.

Part 1: Hook Up and test the sonar with your 8051

We are still putting the final touches on the development environment for the CerfBoard system, so please start by hooking your sonar up to an 8051 and get it to work...you might as well use the serial I/O to send the distance results to the screen. Two extra points for demonstrating this in lab on 11/1/00. Watch out for power supply noise due to capacitive loading by the Sonar!!!

itches.

Part 2: Sonar Device Driver (See the guide written by Douglas)

Install your sonar onto the CerfBoard System. The CerfBoard has its own power supply, but MAKE SURE TO CONNECT THE SONAR AND CERF GROUNDS TOGETHER BEFORE TURNING ON POWER!! Refer to the CerfBoard hardware documentation and to the StrongARM documentation.  Pick two pins that are available on Port0 or Port1 of the Cerf break-out-board that correspond to GPIO pins on the sa1100. Connect INIT to one of these pins and connect ECHO to the other. Make sure to check the output enable and port direction settings of the DIP switch on the Intrinsyc break-out-board.