Hello, i have two signals, sine waves, with known and same frequency (2 kHz) but different amplitudes and with a phase shift. In fact, I want to measure the phase shift between between these signals and amplitude of both using a MCU PIC18F28k22.
My earlier approach was, first, to rectify each signal, sample with the MCU ADC, measure its amplitude(rms) and also convert each sine to a square wave and measure the time between the zero cross of each signal with a help of the external interrupt pin and a timer.
But this technique bothers me, and it doesn't seem very smart, because on each measurement technique i'm just acquiring one parameter.
Is there a better/simpler technique ?
My earlier approach was, first, to rectify each signal, sample with the MCU ADC, measure its amplitude(rms) and also convert each sine to a square wave and measure the time between the zero cross of each signal with a help of the external interrupt pin and a timer.
But this technique bothers me, and it doesn't seem very smart, because on each measurement technique i'm just acquiring one parameter.
Is there a better/simpler technique ?