I need some code for a Microchip dsPIC33 to measure the magnitude of an analog signal using FFT.
Inputs to PIC:
- reference frequency (square wave between 50KHz and 100KHz)
- analog signal (measure the magnitude of this signal that has the frequency of the reference)
- UART, send magnitude of the voltage
Operation example: the ref freq is 60KHz, output via UART the magnitude of the 60KHz component in the analog signal. Sample at least once per second.
I have all the hardware, I just need code. Port pins are up to you. I am a hardware guy and I have been writing code on the PIC18 for a while, I just don't know much about the FFT function of the dsPIC33. Thank for looking...
I have both Microchip and MikroC Pro compilers and hardware so either is fine.