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.

PGA400-Q1: PGA400-Q1

Part Number: PGA400-Q1
Other Parts Discussed in Thread: INA240, MSP430FR5969

Please share the Evaluation software for PGA400-Q1.

  • Hi Sandhya,

    We'll get the link for the PGA400-Q1 software up and running ASAP.
  • Hi Sandhya,

    Julie Ann should have sent you the details earlier today to get the software. Do let us know if there are any other issues.
  • Hi Tom,
    Can you please forward the hex file for PGA400-Q1 ?

    Sandhya
  • Hi Sandhya,

    Our regular PGA400 apps support person is back from Holiday tomorrow. He should be able to get you what you need.
  • Hello Sandhya,

    If you are asking for the GUI, I have attached a copy of the installation file:

    PGA400 GUI v2.40 - User.zip

    If you are in need of example firmware, here some very basic firmware source code for you to start from:

    7080.PGA400_2p0.zip

  • Scott,

    Can you please share the hex file to flash in PGA400-Q1.

    Sandhya
  • Hello Sandhya,

    A hex file is compiled firmware that can be programmed to the OTP of the PGA400. We do not have a full firmware solution with a hex file for distribution. Are you using a specific TI design that you are looking for the firmware for?

  • Scott,

    We are using TIDA-03040 design and we flashed the hex file to PGA400-Q1 through SPI from its respective  GUI.

    We received a hex file from Mr.Sandeep Tallada.

    Though PGA400-Q1 is programmed, IIt'snot generating the Reference voltage (VOUT2).

    Hope you understood our issue.

    Sandhya

  • Hello Sandhya,

    It is likely that you will also need to program the EEPROM with some specific values for the firmware to work properly. Were you provided EEPROM files by Sandeep?

    Regards,
  • Hello Scott,

    We have updated EEPROM from the user guide document.
    Still facing the same issue.


    Sandhya.
  • Hello Sandhya,

    Are you certain that the EEPROM was programmed properly? If you click the "Reload Cache" button on each page does it read back the data that you wrote to it?

    The best procedure to use with the GUI is the following:

    1. Make sure the device is in uC_RST mode
    2. On the EEPROM tab select the bank you wish to program and enter the data into the cells.
    3. Select the entire grid (click the ADDRESS cell in the top left)
    4. Click "Auto Program EEPROM"
    5. Click "Write Selected"
    6. Repeat steps 4 and 5 twice (sometimes it does not program properly on the first try)
    7. Click "Reload Cache" to confirm that the data has been written properly
    8. Repeat above steps for each bank of the EEPROM

    Regards,
  • Hello Scott,

    We flashed an example hex file and went through the procedure as you explained above. 

    The EEPROM was also updated through SPI mode since the OWI connection was not getting established. 

    We tried giving known current to the TIDA-03040 and did not receive any voltage variation at the output side.

    PGA400-Q1 is not generating the reference voltage (2.5V) for INA240.

    Mr.Sandeep Tallada shared a hex file with us and we tried flashing the code.

    But GUI was showing "UNSUCCESSFUL".

    Can you please share the hex file for PGA400-Q1?

    Thank you,

    Sandhya

  • Hi Sandhya,

    Can you please clarify a couple of things for me?

    First, is the PGA400 device that you are having trouble with a part of a TIDA-03040 board already? Or is it being programmed on the EVM and then placed onto a complete TIDA-03040 PCB? Or is it only being used with the EVM?

    When you attempted to program the PGA400 with the hex file from Sandeep, did you make sure that the VP_OTP pin was pulled up to 7.5V before attempting to write to the OTP?

    Regards,
  • Hello Scott,

    We connected TIDA-03040 to PGA400-Q1 EVM (No PGA400-Q1 IC on EVM) through SPI.

    We connected VP_OTP pin of PGA400-Q1 to 7.5V. 

    The above connection worked for the sample hex file and the IC was successfully programmed.

    But it didn't work for the hex file shared by Sandeep.

    Regards,

    Sandhya.

  • Hi Sandhya,

    Are you still in contact with Sandeep? I did not work on the development of that TI Design, and I do not have any other versions of that hex file to supply to you, so we will have to refer to Sandeep. Can you please tell me Sandeep's full name so that I can bring this issue to his attention?

    Thank you,
  • Hello Scott,

    Sandeep's full name is Mr. Sandeep Tallada.

    We are trying to contact him over Emails but he is not responding.

    Sandhya

  • Hi Sandhya,

    Can you please confirm that you are have used a brand new and unprogrammed PGA400 device each time you have tried to program the hex files?

    Regards,
  • Hello Scott,

    We are using the same TIDA 03040 board to flash every time. The example hex file was successfully flashed on the IC multiple times.

    Sandhya
  • Hello Sandhya,

    The PGA400 program memory is one time programmable (OTP). You cannot reprogram the same device. When the GUI says that the programming was successful, all it does is check that the memory contents match the contents of the hex file you are loading. If it was already programmed with something, and you try to program the same thing again, nothing will happen, but it will still say that it was successful.

    You need to program Sandeep's hex file onto a brand new PGA400 device.

    Regards,

  • hello scott cummins ,

    where i can find this topic related flashing the hex file only one time in OTP memory of pga400-q1 , can you share the details .

    i can study clearly regarding  this so that we cannot flash hex file once again and damage the IC

  • Hello Scott,

    We purchased a brand new PGA400-Q1 and flashed the code provided by Sandeep.

    Memory verification went unsuccessful. 

    I have attached the code.

    pga400_code_shared_by_sandeep.rar

  • Hello Scott,

    We purchased a brand new PGA400-Q1 and flashed the code provided by Sandeep.

    Memory verification went unsuccessful.

    I have attached the code.7384.pga400_code_shared_by_sandeep.rar

  • Hi Sandhya,

    I will try to load this hex file on a fresh PGA400 and let you know if I encounter any difficulties.

    Regards,
  • Hello Scott,

    Did you try the hex file?

    Is there any update?

    Regards,

    Sandhya

  • Hello Scott,

    We successfully loaded the firmware in PGA400-Q1.  

    VOUT 2 is giving 2.5V as the reference voltage to INA240.

    Can you please share the formula to calculate the current values?

    The datasheet shows a table with sensor reading and FS accuracy calculations but we are unable to find the formula to calculate the current.

    Regards,

    Sandhya

  • Hello Scott,

    We successfully loaded the firmware in PGA400-Q1.

    VOUT 2 is giving 2.5V as the reference voltage to INA240.

    Sir actually we changed the shunt resistor to 50 uOhm , in place of 100 u ohm .

    Today we tested the reading current values .

    we observed the following output values for .

    with no load condition i.e 0 Amp , the output voltage is 2.492669 v.
    with current of 3.3A , the output voltage shows 2.497556 v to 2.502444 v .


    How to calculate current readings using 50 u ohm shunt or should we replace 100 u ohm for better calculations as per sheet .


    Can you please share the formula to calculate the current values?

    The datasheet shows a table with sensor reading and FS accuracy calculations but we are unable to find the formula to calculate the current.

    Regards,

    Sandhya
  • Hello Sandhya,

    Please review the design document for the TIDA-03040. The design of the analog signal chain was based around a 100ohm shunt resistor, and lowering that will decrease the accuracy of your system, especially if the currents you are measuring are much lower than the designed limits of the system (this design is capable of measuring +/-500A).

    The design document also describes how the expected output values are calculated. The span of the sensor output is from -50mV to 50mV (with a +/-500A current and using a 100ohm shunt resistor), and this must match the PGA400 output range of 0.5V to 4.5V, so a current of -500A will mean an output of 0.5V and +500A will mean an output of 4.5V.

    Output V = 0.004*current + 2.5V

    The output is ratiometric, so it also depends on the supply voltage to the PGA400. The design document has equations that show how to calculate the effect of different supply voltages.

    Regards,
  • hello scott sir ,

    We previously connected 50 u ohm to pga400 , so as per your suggestion we removed  50 u ohm and replaced 100 u ohm shunt resistor .

    But we facing few problems.

    with no load conditions  ,  I am seeing  2.48250 to 2.47561 values fluctuating .

    so as per formula previously shared ,  Output V = 0.004*current + 2.5V ,  current value is -5 to -2  A . but current i applied is 0 .

    so now i applied a charging current  0.16 A , but no change in the value of Vout 

    I also  tried discahrge current -0.33 A , no change in the value.

    please suggest a solution 

  • Hello Scott,

    We are using 100UOhm to test  TIDA-03040 board.

    With no-load conditions, we are getting values between 2.48250 to 2.47561.

    As per formula previously shared,  Output V = 0.004*current + 2.5V, for the no-load condition the current value is -5 to -2  A . 

    When its applied with lower currents, the output is not showing any variations.

    For 3.5 A current, we are getting 2.458182V and when calculated with the formula, the current values are not matching.

    Can you suggest any solution to get correct values?

    Regards,

    Sandhya

  • hello scott ,

    we are waiting for your response for above query to proceed further .

  • Hi Manoj,

    What sort of meter are you using to measure the voltage output?
  • Hello Tom sir ,

    I tried in two ways ,

    using multi meter and through adc msp430 code .
  • Thanks Manoj,

    What is the ultimate goal of this project? How much current, charging and discharging, do you ultimately want to measure? As Scott noted, the TIDA-03040 reference design is rated for +/-500A using a 100 uOhm shunt. Initially you changed that to a 50 uOhm shunt which effectively gets you a +/-1000A range using the same hardware.

    Either way, trying to measure .33 A or .16 A is going to be in the noise floor of the system. If you are using an accurate 6.5 digit multimeter, there should be an option to measure the voltage of several line cycles of the input AC to the meter - this should give you a more accurate reading with less flucuation. I don't know how you might be using an MSP430 for these measurements, but assuming you are using something with the SD-24 peripheral, you won't see much better that ~16 bits of accuracy there. Collecting multiple samples and averaging should give you better results there as well.
  • Hello Tom sir ,

    Firstly we connected 50 u ohm shunt , but after suggestion by scott we changed to 100 uohm shunt .

    Now we are connected 100 uohm to TIDA-03040 .

    My task is to read the lead acid battery current for higher ranges i.e up to 200 A . very accurately


    There is a table showing Table 3. Sensor Readings and FS Accuracy Calculations in tida-0340 document .

    www.ti.com/.../tiducj6a.pdf

    I am not able to see the values as per the table .
    Scott suggested a formula to calculate current ( Output V = 0.004*current + 2.5V )


    with no load conditions , 2.47561. as per formula the value is -4.3 A to -6.0 A , but it is to be 0 A .

    I applied a smaller current i.e +0.16 A ,- 0.33 A , i observed no changes in the value i.e it shows 2.47561.

    so I tried to apply some higher current i.e ~ 3 A , i observed some change in the value .

    As per the Table for -3.05 A the output value is 2.48284436 , I applied 3.2 A to TIDA-03040 i am observing 2.458182V . as per formula it is -10 A .

    so there is a change in the value .

    I tried to read the output values of TIDA -03040 using c code of ADC(external voltage adc code for better accuracy ) of msp430fr5969 controller . as my multi meter does not show big floating values as per table .
  • Hi Manoj and Sandhya,

    There are quite a few factors at play here. Assuming you have hardware that is very similar to the TIDA-03040, you still need to do some sort of baseline calibration. Scott mentioned that the voltage applied to the PGA400-Q1 will have an influence on the output voltage, this is noted in equation (1) and shown as a fixed 4.99V in the table.

    To calibrate the system, start at the shunt - with 0A, you should have 0V differential at the input to the INA240. If your PCB has a clean layout and you've got a nice Kelvin connection from your shunt to the INA240 inputs (the A1 version with 20V/V gain) and a stable 2.500V offset, the INA240 output should be 2.500 V relative to your ground connection. Any deviation here will be reflected through the PGA400-Q1 outputs depending on the applied power to the device. If the voltage is not 2.500, then there is an offset coming through the INA240 which can be calibrated.

    The 100 uOhm shunt, with 0.16 A flowing through it would produce 16 uV, with the fixed gain of 20V/V and the 2.5 V offset, the output of the INA would ideally be 2.50032 V, with -0.33 A you would have 2.49934 V and with 3.0 A you should see 2.50600 V. Assuming the temperature remains constant, the output of the INA should be pretty linear. If there is a couple micro-volts of offset with 0 A trhough the shunt, you should see the same offset with your 3 A input.

    From the INA240 output, you can move to measuring the input of the PGA400-Q1 and see if there is any deviation in the scaling circuit between it and the INA, and then finally move to the output of the PGA and compare the voltages there. Additional offsets can be calibrated out and sweeping the input current through +/-500 A can give you an idea of the linearity. The point is, you can't simply take the numbers out of the table and make assumptions based on that.

    If you really want to measure +/- 200 A, you should consider increasing the size of the shunt to give you the same full scale input range as the 100 uOhm shunt at +/- 500 A. That could be achieved by increasing the shunt to 250 uOhms.
  • Hello Tom ,

    As per your suggestion ,

    I had rechecked the values of PGA input , INAOUT  amd Vout of PGA .

    As per my observation , 

    In the No load condition ,

    on the Vcc pin of INA 240  and PGA 400 , getting 5.00 v  . As per your suggestion , the value is 4.99 v .

    on the Reference pin of INA240  ,getting 2.51 v.  

    on the Inaout pin of  INA240   , getting 2.51 v. but as per your suggestion , I should get 2.50 v

    on the output pin of PGA400 i.e Tida -03040 , getting 2.48 v   .    But as per your suggestion  ,the value of output should be  2.500 V .

    If the PGA400-Q1 output voltage is not 2.500, then there is an offset coming through the INA240 which can be calibrated. .

    How to  calibrate  PGA      to get  PGA output for  2.500 V  under no load condition .?

    In the Next step ,  i applied the 0.16A  charging current to battery , discharging current of -0.4 A  value of  TIDA -03040 output is same as under no load condition .

    But I observed a change in the value when 3.2 A is applied to TIDA-03040 .the output i observed is 2.452 v . 

    Is this is problem with  Hex file of PGA400 -Q1 ?

    Sir , I have a  very less time line to complete this task  .  please suggest a solution  with 100 u ohm shunt with TIDA -03040 to proceed further  rather than choosing 250 u ohm shunt .

     

  • Hi again Manoj,

    I'm not sure what we can do to help you at this point. The 2.51V on the reference pin of the INA240 is the reason why you have 2.51V on the output. From above, but changing to your offset value - The 100 uOhm shunt, with 0.16 A flowing through it would produce 16 uV, with the fixed gain of 20V/V and the 2.51 V offset, the output of the INA would ideally be 2.51032 V. If you cannot accurately resolve your measurements down to the 10's of micro-volt level, you won't see any change in your output with such low current levels.
  • Hello Tom sir ,


    Main problem is on the output pin of PGA400 i.e Tida -03040 , getting 2.47232 v .


    But as per your suggestion ,the value of output should be 2.500 V . Under no load condition


    How to solve this ?



    What is with the fixed gain of 20V/V ? is thing should be do on PGA400 using GUI
  • Manoj,

    You need to review all of the documentation for the hardware setup, including the datasheets for the components used, not just the reference design document.

    As I mentioned previously, the INA240 has a fixed gain of 20V/V and its output voltage has an offset based on the voltage you provide it from the PGA - which you said was at 2.51V.
  • pga400_hex_file.rarHello Tom sir ,

    I referred every document related to TIDA-03040  i.e PGA400-Q1 Ic , PGA400-Q1 Evm sheet .

    Sir As per my concern is I am observing TIDA-03040 output is not fine under Ideal  condition i.e  getting 2.4722 v   i should get 2.500v as per discussion .

    Is this problem with PGA400 Ic  in TIDA-03040 ?

    Is INA 240 output is fine ? As per my previous declaration .i.e getting 2.51 v on both reference pin and INAOUT pin .

    I uploaded the Hex file for PGA400 which is shared by Sandeep Tallada  (author of TIDA-0340 ).  I attaching the hex file  for your reference .

    Sir , I followed  steps as per TIDA-03040 document ,

    but  I am unable to understand or proceed the steps 5 ,6, 7 which is Calibrate ADC , Calibrate DAC , Calculate Coefficients. In this steps   document says put Tida -03040 in temperature chamber . I don't have that facility . Is this steps are  mandatory ?

    I able to  Write and read EEPROM Bank  values as per document  as per steps 8 to 11 .

    Unable to find where  I am Mistake ?

  • Hello Tom sir ,

    Also today checked the attenuation section ( i.e 1/4 ),

    the value is getting divided by 4 .

    Both reference voltage and INA Out values is getting divided by 4 and supplied to PGA VIN1P and VIN1N.

    Under ideal condition , the value is 0.64 v (i.e 2.51 /4 ) as the value given to PGA VIN1P and VIN1N.
  • Hello Tom sir ,

    Also today checked the attenuation section ( i.e 1/4 ),

    the value is getting divided by 4 .

    Both reference voltage and INA Out values is getting divided by 4 and supplied to PGA VIN1P and VIN1N.

    Under ideal condition , the value is 0.64 v (i.e 2.51 /4 ) as the value given to PGA VIN1P and VIN1N.

  • Hello Tom Sir ,


    Sir waiting for your support ?

    please suggest solutions for above queries ?
  • Hi Manoj,

    I don't know what else I can do to help you. You need to be able to measure voltage accurately to the micro-volt level to distinguish any current in the milli-amp range through a 100 micro-ohm shunt. If you don't understand the circuit flow from the shunt, through the INA the divider and the PGA device, its not something that I can explain to you through this forum.
  • Hello Tom sir ,

    Sir Firstly  as per my concern is , the output of TIDA-03040 should be fine under ideal condition .

    As per TIDA-03040 , the output should be 2.4500 v under ideal condition , but I am getting 2.4722 v .

    Is this not a problem ?

    sir , i am asking that  , Is any steps are missing  from my side regarding  tida-03040 .

    Is this problem with hex file of PGA400 .

  • Hi Manoj,

    If you go back to my post of Sunday March 3rd, I basically explained the signal chain to you. By 'ideal', I was referring to the test results provided by Sandeep. The 2.500 V output with no current was based on the 2.500 V offset applied to the INA. You stated you had 2.510 V I believe, which just means that the voltage is higher due to the offset provided to the INA by the PGA. Calibrating the ADC takes offsets and drift into account. I doubt that it is an issue with the hex code. It seems to me that you just don't have the proper equipment to do what you are trying to do with this reference design. I'm sorry, but I don't know what else I can do to help.
  • Hello Tom,

    We have spent so much of time in figuring out the design and still no output. According to your response, the hex file is the problem. Will you be able to help us with a tested hex file? The person (Mr.Sandeep Tallada) who shared is no longer responding.
    Or
    Can you connect us to someone who has already worked on the design ?
    Or
    please suggest a solution from TI which might give proper values without going through this much issues?

    Since we have a very less to complete the project, hope you will be able to help us with any of the above options.

    Regards,
    Sandhya
  • Hello Tom Sir,

    waiting for your response 

    We have spent so much of time in figuring out the design and still no output. According to your response, the hex file is the problem. Will you be able to help us with a tested hex file? The person (Mr.Sandeep Tallada) who shared is no longer responding.
    Or
    Can you connect us to someone who has already worked on the design ?
    Or
    please suggest a solution from TI which might give proper values without going through this much issues?

    Since we have a very less to complete the project, hope you will be able to help us with any of the above options.

  • Sandhya, hello and good day. Between the responses provided by Scott, Tom, and Sandeep, the teams are unable to provide further assistance. As Tom noted earlier, "It seems to me that you just don't have the proper equipment to do what you are trying to do with this reference design" without meeting to review personally. The only other suggested recourse would be to visit with us at our TI Bangalore facility, which I believe may not be possible. We apologize for the inconvenience here. We have attempted to provide significant support of your questions via this E2E channel but unfortunately we haven't been able to gain positive resolution.

    Best Regards,
    J. Fullilove
    Texas Instruments