EE 476: Homework 4

Due At the start of your 4th lab period

Read all of Lab 4. In the lab description there are two different timing schemes.

  1. For the simple DAC circuit shown in Lab 4, each port output pin can be at Vcc=5 volts or at zero volts.
    1. Show that if the port output is 0x80 that the voltage going to the oscilloscope equals 2.5 volts.
    2. Show that if the port output is 0x40 that the voltage going to the oscilloscope equals 1.25 volts.
  2. Show that the 16 table values given for a sine wave are correct to 8 bits.

  3. Write the code for lab 4.

Copyright Cornell University Jan 2000