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.

TMAG5170-Q1: SPI command for conversion start

Part Number: TMAG5170-Q1
Other Parts Discussed in Thread: TMAG5170

Hello,

I am trying to understand the functions of the TMAG5170 sensor and would like to understand how the trigger works.

The CMD0 bits provides information that

0 - Start conversion on SPI command

Does this mean that any SPI command triggers the conversion ?  Or

Only the read of the particular register initiates the conversion ? Or

Is there any other specific command to start the conversion?

Thank you,

Aditya

  • Aditya,

    The SPI command for TRIGGER_MODE=0 is referring to the CMD0 bit in the SPI protocol.

    With this setting, a conversion may be triggered if desired by setting CMD0 to 1 during any SPI transaction.  The conversion should begin after the last SCLK edge. CMD0 will only impact device operation when CMD0 = 0.

    If TRIGGER_MODE = 1, then this conversion will be started by the CS pin being driven low

    If TRIGGER_MODE = 2, then this conversion will be started by driving the ALERT pin low.

    Thanks,

    Scott

  • Thank you Scott for the response.

    Could you please confirm if my understanding is right:

    To start the conversion and read data using an SPI command below is required

    1.  Set trigger mode to 0 (Configuration)

    2. Set CMD0 to 1 during a read/ write sequence.

    3.Confirm reading CONV_STAT that the recent data is present.

    4. Read the Conversion result.

    Thank you,

    Aditya

  • Aditya,

    This is the correct sequence.  You should be able to combine 1 & 2 into the same SPI transaction.  Step 3 is optional if you plan timing carefully, but is good practice.

    Thanks,

    Scott