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.

DRV10983EVM: logging motor current from regs 0x17 & 0x18

Part Number: DRV10983EVM
Other Parts Discussed in Thread: DRV10983

Is there a way to collect the information from registers 0x17 and 0x18 through the GUI? Should I use scripts? Do you have examples that I can review?

Thank you!

  • Hi Lenio,

    We will get back to you tomorrow on this question!

    Thanks,

    Matt

  • Hi Lenio,

    You can read from all of the registers by going to File -> Save configuration. This will generate a text file that contains all the registers. However we do not recommend users to save and load configuration using this method because this will modify trim registers. Trim registers are device specific and we do not want to modify these registers. Modifying them will result in device malfunctions.

    Thanks,

    Michael

  • Michael, thanks for the response.

    It is not clear whether it is okay to constantly read registers using this method so to create a log of motor current. I believe the condition you describe applies only to configuration registers? Is there any risk of corruption by just reading values? Can the reading be made faster by only reading specific addresses?

  • Hi Lenio,

    There is no risk of corruption by just reading the values. However, you will need to set up a script with a MCU if you want to constantly read the values. The read process will happen faster if you only read from the registers you're looking for. You'll just have to design the script to do this. We don't have any example code for this unfortunately. 

    We have a programming guide for DRV10983, you may find this helpful:

    https://www.ti.com/lit/an/slvuaa5/slvuaa5.pdf?ts=1621632446941&ref_url=https%253A%252F%252Fwww.google.com%252F

    If you want to constantly read go to the display tab on the GUI and click auto refresh. This will read all the registers. Connect a voltage probe from across SCL and SDA. From here using the programming guide, you will be able to read the values from registers 0x17 and 0x18.

    Refer to figure 10 on the programming guide for decoding the waveform. 

    Hopefully you find this helpful. 

    Thanks,

    Michael