CSE466 | Class Schedule | Lab Updates | Syllabus | Web Resources | Final Project | Lab 8 | Lab 7 | Lab 6 |    | Email Archive | Hardware Lab

CSE466-02au Lab Assignment 2

Objectives

In this lab you will learn the following:

Background

Tasks

  1. Wire the circuit in the schematic on your breadboard. Verify with a multimeter that there are no shorts between power and ground, and that power and ground are actually hooked up to the chip's pins. Have a TA check the circuit over, to make sure there are no shorts.
  2. Download your C code from lab 1 to test your circuit.
  3. Power off the breadboard, and wire up the seven segment display, in an order of your choosing.
  4. Run your code again, to verify that all segments are connected.
  5. Write a binary to hexadecimal seven-segment routine that will count from 0 to f.
  6. Dump the loop delay routine, and replace it with Timer 0 (p.g. 67-77 in the course reader/ATmega16 data sheet) an interrupt to control the counting on the display. Work out what the exact timing will be [Hz or ticks per second, would be appropriate], and add it as a comment to your code (including work)
  7. Write code so that pressing the stop-start button halts and resumes counting
  8. Write code so that pressing the up-down button changes the direction of counting. The Decimal Point on the 7-segment display should be lit when counting upwards.

Deliverables


Questions/comments can be directed to:
Instructor: bruceh
Staff: cse466-staff
Webmaster: cse466-webmaster
 CSE466 | Class Schedule | Lab Updates | Syllabus | Web Resources | Final Project | Lab 8 | Lab 7 | Lab 6 |    | Email Archive | Hardware Lab