Moderator Comment:
This was split from Need help to light up 8 LEDs with different color.
using cortex-m0 (lpc1224)I am trying to measure the time difference between the rising or the falling edge of two square waves, that i get from the Zero Crossing Detectors.
I am trying to measure phase difference between Current and Voltages of an A.C. Circuit. Getting two inputs from Voltage and Potential transformers.
Someone told me to use CCP to measure the time but that can measure time difference between the events from input on single pin.
But I have two inputs from C.T. and P.T.
I have to measure the power factor of A.C. Circuit, but not finding a proper way to do that.
I tried this but not getting the correct output
any kind of urgent help and significant advice is really appreciable ...or the code logic itself for cortex-m0 (lpc1224)
regards ....
This was split from Need help to light up 8 LEDs with different color.
using cortex-m0 (lpc1224)I am trying to measure the time difference between the rising or the falling edge of two square waves, that i get from the Zero Crossing Detectors.
I am trying to measure phase difference between Current and Voltages of an A.C. Circuit. Getting two inputs from Voltage and Potential transformers.
Someone told me to use CCP to measure the time but that can measure time difference between the events from input on single pin.
But I have two inputs from C.T. and P.T.
I have to measure the power factor of A.C. Circuit, but not finding a proper way to do that.
I tried this but not getting the correct output
any kind of urgent help and significant advice is really appreciable ...or the code logic itself for cortex-m0 (lpc1224)
regards ....
Last edited by a moderator: