Other Parts Discussed in Thread: CONTROLSUITE
Hi,
ie. Amplitude = 3V(peak to peak)
DC offset = 1.5V
Frequency = 1KHz
Number of Samples = 256
Perform 256 point FPU FFT on sampled sine samples, then with help of FFT result amplitude of first 5
Harmonic is calculated.
The hardware settings are as given bellow
1. GPIO0 as input and assigned to XINT1.
4. SOC0 start trigger on
timer0 overflow on every 100us(so sampling rate will be 10KHz).
5. To
take 256 samples, timer0 overflows for 256 times then timer stops.
6.
RFFT_32f(RFFT_F32_STRUCT *) function to compute FFT.
Watch Variables:
Signal (Graph
settings: Single time, sampling frequency 10KHz)
Voltage_ADC2(Graph settings: Single time, sampling frequency
10KHz)
Outbuffer(Graph settings: FFT magnitude,
sampling frequency 10KHz, FFT Size 256, FFT stages 8)