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.

TCA8418 driver issue , CPU C5515

Other Parts Discussed in Thread: TCA8418, TCA8418E-EVM

Hi,

I had bought a TCA8418E-EVM board and I cannot driver TCA8418 successfully.

The cpu is C5515 and using custom board.

Please guide me about TCA8418 driver.

(1) Should I set TCA8418 config before using read command?

(2) If so, what config is necessary for a 3x3 key (TCA8418E-EVM)  or a 5x5 key, please tell me detail with C5515 example code in C55x cpu.

(3) I want to read register 0x04 (KEY_EVENT_A) , please provide a example code in C55x cpu.

(4) If I want to write register , please provide a example code in C55x cpu.

  • We are familiar with the C5000 product line. Your question is related to the TCA8418 interface chip. I moved your question to an interface forum for further assist.

    Regards.

  • Hello HooPooo,

    Sorry to move your questions again, but the industrial interface was not the correct place for the question to get the proper support and visibility either. Therefore, I have moved your question to the I2C Forum.

    Thanks!

    John

  • HooPooo,

    John Griffith moved your post to our forum correctly, but I fear your question may better be answered on the C5000  forum (C5515) if you are interested in code syntax.

    For example, questions (3) and (4) you ask definitely seem more suited for the C5000 forum.

    If you want specific advice on configuring the device for a 3x3 matrix vs. a 5x5 matrix, we can have that discussion here, but we will refrain from using actual syntax unless you want to use an MSP430, which we designed the TCA8418E-EVM to be hardware compatible with.

  • Could you reply questions (1) ,(2), (3) and (4)?

    Could you provide TCA8418 CCS demo package? I want to download it for reference.

    http://processors.wiki.ti.com/index.php/Running_the_TCA8418_Demo_(CCS)

  • HooPooo,

    Have you used the TCA8418E-EVM as a stand-alone EVM with the MSP430 LaunchPad yet? If so, I can share portions of this code with you.

    The CSS demo package you are referring to is in reference to an education-oriented project known as MAVRK, which is not supported by my team. Whatever is available on the web will be the only resource I can point you to for MAVRK.

    To help answer questions (1) and (2).

    (1) You can set the Configuration Register, Register 0x01, in any way you want depending on the application, but I have it set to 0x95 in my initialization sequence.

    (2) In order to have a 3x3 key matrix (where the keys go from Row 0 to Row 2 and Col 0 to Col 2, as on the EVM),  set:

    • Reg. 0x1D --> 0x07
    • Reg. 0x1E --> 0x07
    • Reg. 0x1F --> 0x00

    The remaining Rows (R3-R7) and Columns (C3-C9) will be in GPIO mode

    In order to have a 5x5 key matrix (where the keys go from Row 0 to Row 4 and Col 0 to Col 4),  set:

    • Reg. 0x1D --> 0x1F
    • Reg. 0x1E --> 0x1F
    • Reg. 0x1F --> 0x00

    The remaining Rows (R5-R7) and Columns (C5-C9) will be in GPIO mode

  • Hi John, the processors.wiki.ti.com/.../Running_the_TCA8418_Demo_(CCS) is not available any more, may I know where can I get the demo code? many thanks
  • Hi Hook,

    I don't support these products. Brian, or someone else in his team, may be able to help you, or point you in the right direction.

    John

  • Dear Brian,

    Do you have the TCA8418 DEMO code?
    Thanks