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.

MSP430I2040: MSP430I2040 Calibration

Part Number: MSP430I2040


Hi TI Support Team,

Here we are using the MSP430I2040 IC and the Energy Measurement Design Center software for energy measurement applications.

We tested our Energy Meter board(containing the MSP430I2040 IC) using a Variac and when we varied the input voltage, the voltage reading on the Design Center interface changed proportionally.

Similarly, the current reading was also changing for different loads (0.8A, 1A, 5A, 10A).

Now when we try to calibrate the board as per the steps mentioned in the guide, it does not get calibrated i.e. it does not take in the values that we enter for Gain Calibration. It keeps on showing the default values that were displayed before the calibration. Here, 15.134A is displayed in case of a 10A load and 194.895V is displayed in case of a 230V AC input. These values do not change when we press START in the calibration window.

Neither current nor voltage gets calibrated. The values stay as it is.

Are we missing something here?

Kindly advise.

  • I think your connection is good between PC and i204x.

    Have you follown the steps to do the calibration?

    Can you check if there is any change on these parameters.

  • Yes, we have followed the exact steps that are mentioned in the guide.

    The only change here is that we are using i2040 which is single phase, whereas, in the guide, the example they have shown is for a 3 phase 6779 energy meter IC which we feel should not make a difference.

    These are the calibration factors in the 'Results' section before the calibration process:

    Now, we open the 'Calibration' tab, enter the values and do Gain Calibration:

    Also, we have deselected all the the parameters except Vrms and Irms as we are concerned with only the voltage and current values for the time being.

    Now, once we press 'Start' the Phase Results values do not change to our desired values.

    No pop-up of 'Gain Calibration Complete'  appears on the screen when we click on 'Apply'.

    When we press 'Stop' the following pop-up appears on the screen:

    And then again, in the 'Results' tab, the calibration values stay as it is:

  • It looks like you can receive the data from MCU, but the data send to MCU seems failed. I would suggest:

    1. Change the code to default one (Enable other results), to see if it can helps.

    2. Check the TX data from 5529 to i2040, to see if the data successfully sent to MCU.

  • 1] As suggested, we enabled all the default results and observed the vaules in the Results tab.

    The current reading increased from 14A to 61A and the voltage reading increased from 191V to 203V.

    Then we tried calibrating it but no change was observed in the Phase Results or the Calibration factors.

    2] We used a sample TI UART echo code to check the RX and TX functioning of the i2040 energy meter board.

    Here we sent some data and received the exact same data on the receiver port. (Baud rate : 9600)

    We repeated the same procedure for the 5529 HID bridge and here the Baud rate in the TI UART echo code was 115200.

    Again we sent some data and received the exact same data on the receiver port. 

    This ensured that our TX and RX of both boards are functioning properly.

    We are using the sample codes of HID bridge and Energy Meter for our calibration process as mentioned in the guide.

    Is there a chance of a baud rate mismatch between the two sample codes which is restricting our calibration parameters to go through?

  • It looks like the I2040 uart communication is good.

    It should not happen with baud rate mismatch, because this solution is tested by many customers.

    The only thing I want to check is that whether the MCU recevice and implement the calibartion factors. Can you directly check the value in debug mode?

  • We used a separate EZ-FET programmer to connect it with the debug section of i2040.

    We did not turn give the board AC power as it might damage our debugging section which is connected to our PC.

    Before turning on the calibration, these were the values observed in the debugging section:

    The above values are in pause mode.

    Now when we press play this is what is observed in the debugging window:

    Question marks instead of values and this does not change when we start the calibration via the HID bridge.

    Same values appear again after calibration when we press pause button:

     

  • Can you add a break point at here and check the packet is OK when calibration.

    The key point, I want to check is:

    1. whether the MCU receive any packet

    2. Then whether it jump into the calibration correctly

    Can you help debug a little by yourself?

  • The Listenstatus flag turned high as desired.

    And the MCU entered the Calibration state too, but the gCommandHandler calibration flags did not change.

    We had also tried to manipulate the g_emPhaseCalibration values that are in IQ24 format, but it did not reflect in either the debug window of CSS Studio or the Energy Meter Design Center interface.

    Old default values were shown in both, the debug window of CSS Studio and the Energy Meter Design Center interface.

    Communication between all the boards has been checked, and it is working perfectly fine.

    But again, the unit did not get calibrated using the Energy Meter Design Center.

  • Hi,

    From your test, it seems the communication is setup successfully.

    The problem lies on that the MCU don't recognize the transmited data. Can you check:

    1. The UART wave

    2. The MCU uart receviced packet 

    The you will know what happens.

    Eason

**Attention** This is a public forum