7. I
2
C Interface > Interrupt Handling
176
Tsi578 User Manual
June 6, 2016
Integrated Device Technology
www.idt.com
7.10
Interrupt Handling
I
2
C interrupts are generated as shown in
2
C event detected by the I
2
C Interface sets a bit
in the
to a 1 to assert the interrupt. This bit is then anded with the
corresponding bit in the
to determine if that interrupt is enabled. Any
enabled interrupt status bit asserts the interrupt output signal to the Interrupt Controller. This signal
stays asserted until all enabled bits in the interrupt status register are cleared.
Figure 37: I
2
C Interrupt Generation
The interrupt status bits are cleared by a write-one-to-clear operation to the Interrupt Status Register,
provided the interrupt status register has first been read. For test purposes, bits in the Interrupt Status
Register can also be set by a write-one-to-set operation to the
A bit that is set in the Interrupt Status Register is cleared by a write-1-to-clear operation only
after the register has first been read, and then providing another event that would result the
interrupt condition has not occurred since the read of the register (see
.
Bit N
I2C_INT_STAT
Bit N
I2C_INT_ENABLE
Bit 0 Enable
Write 1 to bit N in
AND
Event Asserted
Write 1 to bit N in I2C_INT_STAT to CLEAR
OR
OR
Interrupt Signal to
Interrupt Controller
AND
AND
Bit 31 Enable
I2C_INT_SET to SET
by Logic SETS