Part Number: LAUNCHXL-F28377S
Tool/software: Code Composer Studio
Hi,
I have some questions about “2837x_rfft_adc_rt”:
1-I do not find ADC_SAMPLING_FREQ variable initialization, how much is it?
#define F_PER_SAMPLE (ADC_SAMPLING_FREQ/(float)RFFT_SIZE)
2- main.c :
...
//! External Connections:
//! Connect A0 (pin 9) to EPWM2A (pin 53) on the F2837x controlCARD. Refer to the
//! board schematic for pin positioning.
//! \note The ADC will sample a 50% duty cycle 1KHz wave (EPWM2A) at 100KHz
//! and run the FFT on it. Since the input is a square wave, you will
//! see the fundamental frequency, 1KHz, at the 5th bin
//! (5*fs/N = 5*100K/512 = 976.5) and all its odd harmonics.
...
The frequency of EPWM2A is 500Hz and when I connect EPWM2A to ADC pin A0,
freq = F_PER_SAMPLE * (float)j;
the frequency of input signal is 500Hz, but the final value in the CCS is, freq = 976.5
, why?
3-What is maximum input frequency for this example? (considering the 2*f Nyquist rate)
F_input_maximum=? KHz
Thanks & best regards,
Amin





