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.

TMAG3001: Interrupt Modes Clarification

Part Number: TMAG3001

Hello, page 62 of the datasheet lists the available interrupt modes, which can be set by the "INT_MODE[2:0]" bits of register "INT_Config_1." I am unclear on the difference between the "Interrupt through INT" mode (1h) and the "Interrupt through INT and ignore if I2C communication active with the Target" mode (2h). Could you please provide a clarification and use cases where one is used versus the other? Thank you.

  • Hi Mustafa,

    Thank you for posting to the Sensors forum!

    The difference between INT_Mode 1h and 2h is that, with INT_MODE 1h, whenever the interrupt condition is met, the INT pin will signal an interrupt by pulling the INT pin low regardless of the state of the I2C communication. With INT_MODE 2h, if you are currently communicating to the device via I2C, then no interrupts will be reported until after the communication is complete and any conversion data will be lost. For example, say you were to put the device into continuous conversion mode and configure the device to interrupt when conversion is complete (Result_INT = 1h):

    • When INT_MODE = 1h

    • When INT_MODE = 2h

    In the second case (INT_MODE = 2h), this is particularly useful if there is a lot of I2C communication occurring with the target device which you would not want to be interrupted by the interrupt. However, the caveat with this mode is that any conversion data that gets completed during this time (when I2C communication is occurring with this device) will be lost.

    In the first case (INT_MODE = 1h), if I2C communication to the target device is minimal once the interrupts are enabled and/or you need to capture all of the conversion data points, then this mode would be beneficial.

    Best,

    ~Alicia