This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWRL6432: How to get the average power in SDK visualizer

Part Number: AWRL6432
Other Parts Discussed in Thread: SYSCONFIG, INA228

Hi,

Customer can see the average power in MMWAVE_L_SDK_05_04_00_01\tools\visualizer\visualizer.exe. 

Would you pls kindly advise how the visualizer gets this average power data? Would you pls share the detail calculation formula?

I knew it is based on the current info from INAs and I want to know more detail.

Thanks,

Chris

  • Hey Chris,

    The average power is calculated by adding together all active rail average powers. A power rail's average power is obtained by multiplying the current readings from the INA for a given voltage rail by the voltage of that rail. This will be sent out in the MMWDEMO_OUTPUT_EXT_MSG_STATS TLV which requires power to be reported in units of 100 uW. Therefore, the current [in mA] for a rail is multiplied by 10000 times [10^3 mV * 10^3 uW * 10^-2 uW] the rail voltage and rounded to the nearest integer value - e.g., 1.8V rail current = 3.2 mA, then 1.8V rail power = 3.2 mA * 1.8 V * 10000 = 57600 [100 uW].

    Note that the mmWave demo only measures the 1.2 V, 1.2 V RF, and 1.8 V rails. The relevant code is generated depending on the settings in SysConfig under TI Board Drivers -> INA. If enabled, the ti_board_config.c file generated should contain the function definitions needed for configuring the INA (SensorConfig) and measuring power (mmwDemo_PowerMeasurement).

    Regards,

    Kristien

  • Kristien,

    Is the average power shows in the visualizer  instantaneous power of 1.2v/1.8V power rails? Not an average power in a frame?

    Thanks,

    Chris

  • Hey Chris,

    Sorry for the confusion here. The power measured by the INA228s is an average across multiple ADC samples. The averaging period should be around 12 seconds since the INA228 are configured for the maximum number of ADC samples per average (1024 samples) and the maximum conversion time for all three measurements (4120 us each) to achieve the highest effective ADC resolution and reduce noise. 

    Regards,

    Kristien