ECE 4760: Questions related to lab exercise 1

  1. Read the policy page.
    This is the implicit contract you are agreeing to by taking the course.
  2. Further reading for lab 1 is at Reading assignments and includes
    Reference Manual sections 12, 14, 15
    PIC32 Peripheral Libraries for MPLAB C32 Compiler sections 10, 11, 12
  3. Read all of Lab 1.
  4. From the PIC32 data sheet:
    What is the maximum current you can draw from any i/o pin?
    What is the maximum current you can source from the sum of all pins.
  5. Estimate the Thevinin equvalent output resistance of an i/o pin from the PIC32 data sheet. Use table 29-9.
    There will be two separate estimates corresponding to whether the output is logic-high or logic-low.

Standard musical note frequencies vary over a large range of frequencies, but we will use the range C4 to C6:

Given these specifications:
  1. what minimum DDS sample frequency is required, based on the above specs?
    You will choose ONE DDS sample frequency for all tones produced.
    A matlab program which computes spectrum versus number of samples/cycle.
    When you run the program, notice that the first large spectral errors are at approximately
    first_error_frequency = steps_per_cycle * frequency - frequency
    Program output examples: 8 samples/cycle, 16 samples/cycle
  2. Should you add a low pass filter to the DAC output? If so, what cutoff frequency?
  3. How accurate is the internal PIC32 oscillator? Does it meet the frequency accuracy spec?
  4. What kind of amplitude modulation will you use and why. Linear ramp? Cosine? Exponential? Hanning?
    A matlab program computes spectrum for different envelopes. Listen to the resulting waveforms.



June 10, 2019