Skip to main content
khaled3310
Associate III
April 1, 2012
Question

adc

  • April 1, 2012
  • 2 replies
  • 811 views
Posted on April 01, 2012 at 23:12

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?

    This topic has been closed for replies.

    2 replies

    raptorhal2
    Lead
    April 10, 2012
    Posted on April 10, 2012 at 15:48

    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, Hal

    khaled3310
    Associate III
    April 10, 2012
    Posted on April 10, 2012 at 20:31

    Thank you very much :) i will try it