cortex-m0 (lpc1224) question

Discussion in 'The Projects Forum' started by basex, Dec 10, 2013.

  1. basex

    Thread Starter New Member

    Oct 22, 2013
    2
    0
    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 ....
     
    Last edited by a moderator: Dec 10, 2013
  2. Wendy

    Moderator

    Mar 24, 2008
    20,764
    2,534
    Welcome to AAC!

    A thread belongs to the OP (original poster). Trying to take over someone elses thread is called hijacking, which is not allowed at All About Circuits. I have therefore given you a thread of your very own.
     
Loading...