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.

LMK03328: Set I2C address using automation

Part Number: LMK03328

Hi,

I am using the LMK03328,

I have managed to automate the TICSPro and I am able to write to its registers and burn its EEPROM using VBscript commands.

There is one issue which I could not resolve - setting the I2C address.

Currently, in order to use the script I need to mannualy open the GUI and set the address (at least for the first time)

Is there a way to set the I2C address using the automated way? (VB command?)

Best regards,
Moshe Marcu

  • Hi Moshe,

    I will need to consult our expert who is currently in year-end holidays.

    Please excuse the delay.

    regards,

    Julian

  • Moshe,

    Thanks for your patience over the US holiday.

    I believe the ActiveX interface exposes a function called SetAddress_I2C(byte slaveaddress) which can be used to set the I2C address.

    Regards,

    Derek Payne

  • Hi Derek,

    I tried to add the SetAddress_I2C command to my script in the following manner:

    "Dim TICSProLoader

    On Error Resume Next
    Set TicsProLoader = CreateObject("TICSPro.ActiveX")
    If Err Then
        Clear TICSProObject
    Else
    Call TICSProLoader.Initialize("C:\Program Files (x86)\Texas Instruments\TICSpro")
    TicsProLoader.SelectDevice "LMK03328"
    End If

    TICSProLoader.SetAddress_I2C(54)

    TICSProLoader.RestoreSetUp ("C:\Project\Config_LMK03328.tcs")
    TICSProLoader.ReadAllRegiters"

    It seems that the address did not change in the TICSPro and I could not access the LMK03328 automatically.

    I can access the device only if I configure the address to 0x54 manually in the GUI prior to running the script.

    Did I use the command correctly? Should I do some additional actions to access use this command?

    Best regards,

    Moshe Marcu

  • Moshe,

    You're using it correctly, SetAddress_I2C is just broken. I've fixed it internally, but as of 2022 with some new changes to our software release process it's going to take some time to get a patched version up on the web. Currently working on it, will let you know when it's available.

    Regards,

    Derek Payne

  • Moshe,

    TICS Pro 1.7.4 is available for download which patches in the SetAddress_I2C function properly.

    Please re-download TICS Pro from TI.com. The backend is updated, but the frontend on the website may still say 1.7.3; I just checked and the download is 1.7.4, version will be updated within the next 48hrs.

    Regards,

    Derek Payne