AnsweredAssumed Answered

Measure phase between 2 signals (5kHz)

Question asked by COMPUTER SRL on Nov 26, 2018
Latest reply on Nov 26, 2018 by Robin_Shen

Hi all,

I am trying to do a simple job: Use a FRDM-KL46Z board to measure time (phase)  between 2 digital oscillations: first signal is 5kHz @50% duty, 3.3V amplitude generated onboard via PWM,  the second signal is shifted (delayed) from the first.

This is an investigation on how to demodulate signals from a LVDT, first signal is the 5KHz fed into the primary coil, the second signal is form the secondary winding, the displacement is proportional with phase shift of the secondary from the primary signal...

Using a logic analyzer I can see the signals, the phase of the second seems to follow the LVDT displacement, I only have to measure it somehow with the FRDM KL46Z board.

I am not sure how to do this with the counters/timers available in FRDM-KL46Z board? I managed to generate the PWM for the primary, just need to feed both in some digital inputs and measure phase between these 2 signals...

 

Any suggestion is welcome

Cristian

Outcomes