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.

TCA7408-5405EVM: code to control TCA7408-5405EVM

Part Number: TCA7408-5405EVM
Other Parts Discussed in Thread: MSP430G2553, TCA5405

Hi All,

We need the code to control TCA7408-5405EVM.

The user guide says that the code to control the TCA7408EVM/TCA5405EVM was written from an MSP430G2553 like below image.

Please share this control code with me.

Regards,

Jeffrey

  • Hey Jeffrey,

    I'm currently looking into this for you but from searching multiple internal servers, so far I am not able to locate the code. I will ask around to see if I can find someone who may know where to find it.

    As an alternative, I may be able to write a general purpose I2C code in Arduino which will allow you to read and write to registers which you can use for the TCA7408, (I already made a code for this in Arduino for the TCA5405 though I will have to look for it). Is this okay instead of the MSP430 code?

    Thanks,

    -Bobby

  • Hi Bobby,

    We think it is ok, so please share it with us.
    Also please send us it if you find the MSP430 code.

    Regards,
    Jeffrey
  • Hi Jeffrey,

    I've attached the code for the TCA5405 below with comments.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/138/TCA5405_5F00_single_5F00_wire_5F00_code_5F00_example.ino

    I will need some time to make a TCA7408 code unless you want just a general purpose I2C code that allows you to send an address followed by data (capable for read or a write).

    Thanks,
    -Bobby

  • Hi Bobby,

    We made I2C code to control TCA7408, and it is working properly.
    Attached TCA5405 single wire code example is helpful to make I2C code of TCA5405.
    Thanks for your attached code.

    Regards,
    Jeffrey
  • Hi Bobby,

    We'd like to request you a sample code of TCA7408 to control the current consumption.
    We hope that you send us it as soon as possible due to the verfication deadline.
    We're sorry for this request.

    Regards,
    Jeffrey
  • Hey Jeffery,

    "We'd like to request you a sample code of TCA7408 to control the current consumption."

    I am not sure I understand your request. The consumption current is based on if the GPIOs are output high/ output low/ inputs (High)/ inputs (Low). By changing any of these, you will change the consumption current.

    I believe the lowest consumption current in standby will occur when you set the device to all inputs and supply the inputs to Vcc through a large pull up resistor. For this you do not even need to program the device because the device automatically starts up as an input so all you would have to do is turn on the device.

    Thanks,

    -Bobby

  • Hi Bobby,

    I'm sorry that you misunderstand what I say.
    You're right on current consumption.
    I just want to see a sample code of TCA7408.
    Please share it with me.

    Regards,
    Jeffrey
  • Hey Jeffrey,

    I repurposed one of my older General purpose GPIO codes for TCA7408 (Arduino). I have not verified if the code works yet as it seems you need this short notice and verifying it will take some time to modify the EVM board. I am able to compile the code and I know the "write" portion of the code works. I am confident he read portion works as it was taken from the write portion with some modifications.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/138/TCA7408_5F00_example_5F00_code_5F00_for_5F00_customer.ino

    Let me know if you have any questions.

    Thanks,

    -Bobby

  • Hi Bobby,

    Thanks for TCA7408 example code.
    It'll help us to set up the registers of TCA7408.

    Regards,
    Jeffrey