SLYS053B November 2023 – June 2024 TMAG3001
PRODUCTION DATA
The TMAG3001 supports flexible and configurable interrupt functions through either the INT or the SCL pin. The INT pin operates as an open drain output. The INTB_POL bit selects the output level during an interrupt even when the INT pin is used for interrupt output. Table 6-1 shows the different interrupt modes supported by the device.
INT_MODE | MODE DESCRIPTION | OUTPUT PIN |
---|---|---|
0h | No interrupt | None |
1h | Interrupt through INT | INT |
2h | Interrupt through INT | INT |
3h | Interrupt through SCL | SCL |
4h | Interrupt through SCL except when I2C busy | SCL |
5h | Unipolar Switch Mode through INT | INT |
6h | Omnipolar Switch Mode through INT | INT |
Table 6-1 shows different conversion completion events where result registers and SET_COUNT bits update, and where they do not. The result registers that are used to create the interrupt events are updated only after the I2C bus is not busy.
OUTPUT PIN | INT_MODE | I2C BUS BUSY, NOT TALKING TO DEVICE | I2C BUS BUSY and TALKING TO DEVICE | I2C BUS NOT BUSY | |||
---|---|---|---|---|---|---|---|
RESULT UPDATE? | SET_COUNT UPDATE? | RESULT UPDATE? | SET_COUNT UPDATE? | RESULT UPDATE? | SET_COUNT UPDATE? | ||
INT | Yes | Yes | No | No | Yes | Yes | |
SCL | Interrupt through SCL | Yes | Yes | No | No | Yes | Yes |
SCL | Interrupt through SCL except when I2C busy | No | No | No | No | Yes | Yes |
TI does not recommend sharing the same I2C bus with multiple target devices when using the SCL pin for interrupt function. The SCL interrupt can corrupt transactions with other target devices if present in the same I2C bus.
Figure 6-3 shows an example for interrupt function through the SCL pin with the device programmed to wake up and sleep mode for threshold cross at a predefined intervals. The wake-up intervals can be set through the SLEEPTIME bits. After the magnetic threshold cross is detected, the device asserts a fixed width interrupt signal through the SCL pin, and remains in a low power wait state for a set period of time before the controller can address the interrupt event. The figure below shows a case where the controller responds to the interrupt event during the wait state and places the part back in the wake up and sleep mode.
Figure 6-4 shows an example for fixed-width interrupt function through the INT pin. The INT_STATE register bit is set 1b. After the magnetic threshold cross is detected, the device asserts a fixed width interrupt signal through the INT pin. If the device is programmed to be in wake-up and sleep mode to detect a magnetic threshold, then the device remains in a low power wait state for a set period of time before the controller can address the interrupt event. The latest results are saved and are accessible through the I2C bus in the wait state. If the controller does not read the result registers in the wait time, the device enters to a low power state and continues to remain in the wake and sleep mode.
Figure 6-5 shows an example for latched interrupt function through the INT pin. The INT_STATE register bit is set 0b. After the magnetic threshold cross is detected, the device asserts a latched interrupt signal through the INT pin, and goes back to config mode. The interrupt latch is cleared only after the device receives a valid address through the SCL line. If the device is programmed to be in wake-up and sleep mode to detect a magnetic threshold, then the device remains in a low power wait state for a set period of time before the controller can address the interrupt event. If the controller enters the wait state, the device remains in the wait state where the I2C is kept active.
The TMAG3001 supports switch mode through the INT pin, where the device acts as a smart switch that can be configured to be sensitive for magnetic or angle threshold crossing. The device can be placed in this unipolar switch mode in standby, active or wake up and sleep modes. If the device is configured as a switch and placed in a low power wake up and sleep mode, the device remains in a low power wake up and sleep mode in case if any interrupt event is detected. Figure 6-6 shows an example for switch mode interrupt function through the INT pin. After the magnetic threshold cross is detected, the INT pin changes state.
The TMAG3001 supports omnipolar switch mode through the INT pin, where the device acts as a smart switch that can be configured to be sensitive for magnetic threshold crossing. Figure 6-7 shows an example for an omnipolar switch mode interrupt function through the INT pin. After the magnetic threshold cross is detected, the INT pin changes state. If the device is configured as an omnipolar switch, the device remains in a low power wake up and sleep mode in case if any interrupt event is detected.