Connect with us

Sine Wave Absolute Value.

Discussion in 'Electronic Design' started by @donis, May 16, 2006.

Scroll to continue with content
  1. @donis

    @donis Guest

    Hi Guys!! need your help on this.

    Im measuring a sine wave from the ADE7756 Energy Metering IC from its
    registers, I get the Full Wave in Hex code, positive values and
    negative values, how can I calculate from the information on the
    ADE7756 registers the Absolute Value of the Wave?

    Thanks in Advance Guys

    Adonis
     
  2. Bob Eld

    Bob Eld Guest

    If the output is two's complement which it probably is, test the msb. If it
    is "0" the value is the same, positive side. If it is "1", negative side,
    complement it and add "1". For example: Say the output is positive 5, 0x5,
    0101b then the output is 0101b and if the output is minus 5, 0xB, 1011b,
    complement it to 0100b and add "1" = 0101b.
    Bob
     
  3. Rich Grise

    Rich Grise Guest

    Turn the negative values positive? Maybe a 2s complement?

    Good Luck!
    Rich
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-