ZHCSQY7 september 2022 TMAG5173-Q1
ADVANCE INFORMATION
The TMAG5173-Q1 supports flexible and configurable interrupt functions through either the INT or the SCL pin. Table 7-1 shows different conversion completion events where result registers and SET_COUNT bits update, and where they do not.
INT_MODE | MODE DESCRIPTION | I2C BUS BUSY, NOT TALKING TO DEVICE | I2C BUS BUSY & TALKING TO DEVICE | I2C BUS NOT BUSY | |||
---|---|---|---|---|---|---|---|
RESULT UPDATE? | SET_COUNT UPDATE? | RESULT UPDATE? | SET_COUNT UPDATE? | RESULT UPDATE? | SET_COUNT UPDATE? | ||
000b | No interrupt | Yes | Yes | No | No | Yes | Yes |
001b | Interrupt through INT | Yes | Yes | No | No | Yes | Yes |
010b | Interrupt through INT except when I2C busy | Yes | Yes | No | No | Yes | Yes |
011b | Interrupt through SCL | Yes | Yes | No | No | Yes | Yes |
100b | Interrupt through SCL except when I2C busy | No | No | No | No | Yes | Yes |
TI does not recommend sharing the same I2C bus with multiple secondary devices when using the SCL pin for interrupt function. The SCL interrupt may corrupt transactions with other secondary devices if present in the same I2C bus.
Figure 7-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. When the magnetic threshold cross is detected, the device asserts a fixed width interrupt signal through the SCL pin, and goes back to standby mode.
Figure 7-4 shows an example for fixed-width interrupt function through the INT pin. The device is programmed to be in wake-up and sleep mode to detect a magnetic threshold. The INT_STATE register bit is set 1b. When the magnetic threshold cross is detected, the device asserts a fixed width interrupt signal through the INT pin, and goes back to standby mode.
Figure 7-5 shows an example for latched interrupt function through the INT pin. The device is programmed to be in wake-up and sleep mode to detect a magnetic threshold. The INT_STATE register bit is set 0b. When the magnetic threshold cross is detected, the device asserts a latched interrupt signal through the INT pin, and goes back to standby mode. The interrupt latch is cleared only after the device receives a valid address through the SCL line.