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.

PGA302: Unable to unlock EEPROM after locking

Part Number: PGA302
Other Parts Discussed in Thread: USB2ANY

After using the Lock EEPROM toggle in the EEPROM settings with the PGA302EVM GUI, can It be unlocked over OWI with the GUI?

  • Hello, thank you for your E2E post. We have sent you a private message with some additional questions.

  • Hi Chris,

    I cannot specifically state that the OWI interface in the GUI allows for unlocking the EEPROM as this requires an additional unlock sequence following OWI activation.  I will have to experiment in the lab to see if this works, but unfortunately I will not be able to do this until next week.  I will provide an update on Tuesday.

    Best regards,

    Bob B

  • Hi Chris,

    When the GUI initializes, it uses I2C and sends 0x5555 to the COMBUF.  Switching to the OWI at this point should have the EEPROM unlocked when the micro goes to reset.  If you are only using the OWI interface, I do not see a mechanism that sends the 0x5555 to the device following OWI activation from the GUI.  It appears the unlock is only sent initially via I2C.

    I think the issue is in part to having the correct data in COMBUF registers when the OWI activation occurs.  I have run out of time to take this any further, but you could try writing to the COMBUF before placing the device into reset.

    The contents should have been written to the COMBUF registers, then you can send another OWI activation command from the EVM settings page.

    Best regards,

    Bob B

  • Hi Bob,

    Thank you for the update. I will give this a try sometime this week. Unfortunately we are using an external PCB that we designed with the PGA302 chip without the I2C being wired. We have been calibrating it using the PGA302 GUI and EVM. We wanted to test out the EEPROM Lock to see if it made a difference.

    Is there any source code available for the EVM board so that we can make our own GUI to interface with the IC? I am trying to plan out our approach for mass production of this sensor.

    Thank you,
    Chris

  • Hi Chris,

    Unfortunately the GUI source code is not available.  The GUI uses firmware that was developed around the USB2ANY platform.  The GUI makes calls through the DLL that resides along with the GUI program files.  I've attached the API guide for the DLL.

    API Reference for USB2ANY SDK 2.7.0.pdf

    The OneWire functions are given in section 5.17.

    Best regards,

    Bob B

  • Hi Bob,

    That API reference is a big help. Thank you!

    Chris