Implement the detector discussed in Lab 6.
Choose a pin on Port B which you will use to indicate whether the frequency is present or not. Look at the schematic for the 56002 board (available in the lab) to determine how to connect to this pin. Using the EVM program, set up this pin as an output. Verify with a logic probe that you can change the state of this pin.
Implement your low pass filter using the iir.asm macro you used last week.
Put the output from your bandpass filter to one channel of your D/A, and the output from the detector to the other. Use your function generator to produce a sine wave of the correct frequency. Verify that the detector works properly.
When the output from the detector is above some threshold value, bring a pin of Port B high. When the output from the detector is low, bring the Port B pin low.