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: Changing the threshold value

Part Number: TMAG5170-Q1

What happens when I change the threshold value? Does the debounce counter reset? If I write to the threshold value the value value that it previously was, does the debounce counter reset again? Or? 

  • Chad,

    Thanks for reaching out on E2E with this question.  There are two options to clear the threshold counter.  You may either perform a read on the SYS_STATUS register or perform a write on ALERT_CONFIG. This means that if you change the threshold mid count, that it should carry over.

    Thanks,

    Scott

  • Hi Scott, 

        dumb question - if I change the Threshold Value, what happens to the threshold output? 

  • Chad,

    When using the threshold settings, it is necessary to configure ALERT as an output pin.  There are two modes for this pin.  In switch mode, the ALERT pin is only asserted as long as the threshold conditions are met.  So if the threshold changes and the input is no longer at the threshold level, then I would expect the ALERT pin to release.  The other mode sets this pin as latched, and ALERT will stay set until cleared.  

    Since it requires a read on the STATUS registers or a read on a data register to clear, I would expect it to stay latched after changing the threshold value.

  • How does that work in the context of the THRX_count counter? Does this counter reset with the threshold is changed? Or is this counter left as is? 

  • Chad,

    My understanding is that the only way that the counter is reset through the read on SYS_STATUS or by performing a write on ALERT_CONFIG. This means that if you change the threshold mid count, it should carry over.

    Thanks,

    Scott