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.

TPS65917EVM: Question about I2C communication

Part Number: TPS65917EVM
Other Parts Discussed in Thread: USB2ANY

Hello teams, 

I have used LabVIEW and Digital Pattern Editor to do I2C communication and test LM10692EVM.

However, I recently bought a TPS65917EVM as my new DUT and looked through the manual and found out that your team used LabVIEW to do I2C communication with a device.

Is there any way that I can get the Digital pattern files that your team used to do I2C communication for TPS65917EVM?

or Do your team think I can use my previous Digital pattern files to do I2C communication?

I will look forward to your answer.

Thank you.

  • Hi Jinwook,

    The I2C communication is handled by the MSP430 on the board. We use the USB2ANY configuration and firmware, which includes I2C functions. The LabVIEW code itself doesn't have any I2C patterns or protocol.

    So I don't think you could use any existing labview I2C patterns with the GUI. However, you can use the USB2ANY explorer software on a PC which is connected to the EVM using USB, and use the USB2ANY explorer software for I2C communication.

    Another option is to use a separate microcontroller and software (like you may have done with LM10692EVM) and just connect the master I2C lines with the I2C lines on the TPS65917EVM.

    Regards,
    Karl
  • Hi Karl,

    There is a point where I'm a little bit confused. 

    When you say " Another option is to do like I have done with LM10692EVM", If I have done I2C communication with LM10692EVM using Digital Patter Instrument connected to I2C lines and used Digital pattern files to send data and no single USB connected to it,

    Can I do the same for TPS65917EVM without using MSP430 on board and USB2any explorer software?

    I will look forward to your reply

    Thank you.

    Sincerely,

    Jinwook Jeong.

  • Hello Jinwook,

    I mean that if you want to use an external pattern generator to create the SDA and SCL patterns, you can just hook them up to the SDA and SCL test points on the TPS65917EVM. If the TPS65917 device is powered and enabled, it will be able to use I2C communication with an external controller. In this case, you don't need to use MSP430 and USB2ANY software.

    Regards,
    Karl
  • Thank you, Karl.

    I have one last question.

    As I know, I2C device and slave address can be either 7 bit addressing or extended 10 bit addressing.

    However, according to the Register map, I see that Register address mapping is 3 hex digits which is 12 bits and I am wondering how I should handle this?

    Thank you.

    Sincerely,

    Jinwook Jeong

  • Hello Jinwook,

    This is explained on page 2 of the register map. The device uses 7-bit addressing. However, there are 5 pages of registers, indicated by the first hex digit. This first digit determines which I2C address to use. The devices on the EVM use 0x58 (page 1), 0x59 (page 2), 0x5A (page 3), and 0x5B (page 4).

    Regards,
    Karl
  • Hello Karl, 

    Thank you for your answer.

    However, I already took a look at the Register map, and I am still confused.

    So, let's say I want to write I2C communication with Power register SMPS1_Voltage Register and set the voltage of 1.8V.

    Should I do 0x58(0101 1000) for Power Register address, 0x23h(0010 0011) for the SMPS1_Voltage register, and 1010 1110 to write 1.8V?

    Is this correct?

    Thank you.

    Sincerely,

    Jinwook Jeong.

  • Hi Jinwook,

    You are exactly right. Since SMPS1_VOLTAGE is on page 1 (address 0x123), the slave address is 0x58, and the register address is 0x23.

    Regards,
    Karl