Problem
AID converter testing. Perform the following steps:
Step 1 Set the function generator output (in the lab) to between 0 V and 5 V.
Step 2 Connect the AN1 pin to the functional generator output. Set the frequency to about 10 KHz.
Step 3 Write a program to perform the following operations:
· Configure the AID module properly.
· Start the AID conversion.
· Take 64 samples, convert them, and store the conversion results at appropriate SRAM locations. Compute the average value and store it in PRODL.
· If your demo board has square waveform output, then select an output with frequency close to 16 KHz. Connect it to the AN1 pin.