2012-04-01 02:12 PM
in my project, i must generate a sinusoidal wave and i have to receive this wave by ADC. this signal is a response harmonic of a filter. so i want to calculate the gain and the phase shift but i don't know how. can i get some help?
2012-04-10 06:48 AM
To determine gain and phase shift, you need to also sample the pre-filter signal so a comparison can be made. Dual simultaneous mode using ADC1 and ADC2 can be used. Then compare peak signals for gain and zero positive or negative crossovers for phase. Since the ADC is a positive voltage device, the signals will have to be offset, so the crossover signal may, for example, be at half reference voltage.
Sampling frequency will have to be high enough to get the desired phase measurement accuracy. That accuracy can be improved by interpolating between before and after zero crossover samples. Signal noise can be reduced by averaging multiple gain and phase measurements. Cheers, Hal2012-04-10 11:31 AM
Thank you very much :) i will try it