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.

TIC12400: How to test TIC12400 EVM board from External Microcontroller through SPI commands.

Part Number: TIC12400

How to test Multiple Switch Detection Interface (MSDI) in TIC12400 EVM from External Micro-controller.

we are not getting how to connect SPI Command lines from external micro-controller.

Please help us how to connect, How to test as well as.

 we are looking forward for your response.

  • Hello,

    Can you share how you have connected your external micro-controller to the EVM? Is there any issue with testing with the GUI?

    Regards,
    Andrew
  • Hello Andrew,

    Thanks for your quick response

    Can you share how you have connected your external micro-controller to the EVM?

    Please find the snap shot below for reference.

                                    

    • The above SPI lines and RST and INT lines connected from External Micro-controller.
    • Please correct us if we connected wrongly and let us know if we miss any connection or Jumper connection need to modified.

    Because we are unable to read the INT_STAT Register to proceed further.

    Is there any issue with testing with the GUI?

    • Our customer would like to use MSDI device to detects a change position of the switch based on the threshold detection values, the MSDI_INT signal will be set to low level for 2ms (typ. value) and thus the uC will be triggered. 
    • The next actions that uC shall take is to read the corresponding ADC values from registers : IN_STAT_ADC0 / ANA_STAT0 to ANA_STAT3.
    • Based on the ADC values uC will activate the motor or change the motor direction, or to stop the motor rotation.

    Based on our customer requirement we are not much concentrated on the GUI.

    Please help us to meet the customer requirement. 

    We are looking forward for your response.

    Regards,
    Siva Sankar

  • Hello Siva,

    Thanks for the detailed explanation.  The SPI connections appear correct.  Can you send a scope shot capturing a full SPI transaction so I can verify that the parity used during communication is correct?

    Regards,

    Andrew

  • Hello Andrew,

    Thanks for your feedback

    Can you send a scope shot capturing a full SPI transaction so I can verify that the parity used during communication is correct?

    Please find the snap shot below INT_STAT Register, SPI read command is 0x40000000h for reference.

    Note: We are unable to verify the change position of the switch based on the threshold detection values in GUI also.

    Can you please provide sample codes or registers to be configure to meet above requirement/functionality.

    we are looking forward for your response.

    Regards,

    Siva Sankar

  • Hello Siva,

    The device should be responding with something hen you start clocking.  Can you verify that the VDD rail is powered?  

    There is a default configuration in the gui via the front page.  Quick Start --> Load default configuration.

    Regards,

    Andrew

  • Hello Andrew,

    Thanks for your valuable suggestion. 

    I verified the functionality in GUI, Its perfect.

    I tried the same with EXTERNAL Micro-controller, I observed that few registers are not updated after sending SPI write command also.

    Please find the snap shots below for reference.

    Can you show me how to connect external micro-controller to the EVM,

    How to Isolate on board micro-controller to MSDI device. 

    and Jumper pin connections also.

    Can you please provide any samples if you have, then it will be very much helpful.

    We are looking forward for your response.

    Regards,
    Siva Sankar

  • Hello Siva,

    I'm going to use an external micro to connect with the EVM to verify.  One last thing I would check is TIC12400-Q1 latches data on the falling edge of SCLK, is your micro setup to do the same?

    Regards,

    Andrew

  • Hello Andrew,

    One last thing I would check is TIC12400-Q1 latches data on the falling edge of SCLK, is your micro setup to do the same?

    • With respect to Micro- controller CPOL = 0, CPHA = 0 and Baud rate = 4M (I tried different combinations of CPOL and CPHA, Baud as 2M also)

    We are looking forward for your response.

    Regards,
    Siva Sankar

  • Hello Siva,

    Looking a little more at your SPI transactions, it looks like you are not meeting odd parity on the data being sent to TIC12400-Q1. For example in your second screenshot posted above with the Transaction 0xBC000092, this will have 8 bits logic 1, failing the odd parity check.  What doesn't make sense is then the interrupt register is indicating a POR and switch state change.

    My setup is almost ready, I had to order an external micro to test with and will update when I have successfully implemented a transaction.

    Regards,

    Andrew

  • Hello Siva,

    I was able to get an external microcontroller to hook up to the TIC12400-Q1 EVM.  Here is an image of the connection:

    The Header J3 was installed and connected to the launchpad as follows:

    The only jumper I had to change was the removal of Jumper J7.  I attached the VCC of my MSP430 launchpad to pin2 of the jumper J7 (VDD of TIC12400-Q1).

    I was able to successfully read the ID/INT registers and then write/read from the configuration register.

    To read the Device ID I sent the 32 bit data stream 0x02000000.

    To read the INT register I sent the 32 bit data stream 0x04000000.

    To write to the Config register I sent the 32 bit data stream 0xB4000800.

    To read from the Config register I sent the 32 bit data stream 0x34000000.

    Regards,

    Andrew