Logaritmic ADC representation


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    RFsolution,

    The power gain is expressed in dBs and is proportional to twice the voltage gain. Now, the power in Watts is proportional to the square of the voltage.

    Robert

  2. #2
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    How can i calculate the decimal value in watt's out of my 10bit ADC value
    You have a couple of options (that I can think of):
    • Direct Math
    • Lookup Table

    In the direct math, you would follow the equation: Pwr = (Vrms ^ 2 / R). Where Vrms is the voltage read from the ADC; meaning you need to convert the ADC reading to voltage, and then input into equation. You can optimize a lot of this by pre-calculating many of the terms. For example Vrms would be ADC_count * Vref / 2^bits), where bits is the number of bits on your ADC (note that any gain/loss between the detector and ADC must be accounted for on the equation as well). In any case, pre-calculate all the known values beforehand so the PIC has less computation to do.

    In the lookup table method, you would build up a table which relates ADC_count to Pwr (again, this is all pre-calculated beforehand - Excel is great for this). You may need to interpolate between values if you need more precision.

    In either case you still have to account for any gains/losses (e.g. coupler, and conditioning OPAMP / divider - if used) between the signal you are attempting to measure and the ADC input.

    The following link provides some good examples on math techniques using the STAMP (pretty close to PBP) :http://www.emesystems.com/BS2math3.htm

  3. #3
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Hi,
    i suggest using a logarhitmic power detector. For example the HMC600 series from Hittite, it delivers 19mV/dB in a range of 70dB. Or you must put an logarithmic amplifier behind your diode detector, in both cases you will get a
    better dynamic range.
    Regards,
    Ralf

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts