User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 611
UG585 (v1.11) September 27, 2016
Chapter 20: I2C Controller
20.2.7 I2C0-to-I2C1 Connection
The I/O signals of the two I2C controllers in the PS are connected together when the
slcr.MIO_LOOPBACK [I2C0_LOOP_I2C1] bit is set = 1. In this mode, the serial clocks are connected
together and the serial data signals are connected together.
20.2.8 Status and Interrupts
The registers i2c.Interrupt_status_reg0, i2c.Intrpt_mask_reg0, i2c.Intrpt_enable_reg0 and
i2c.Intrpt_disable_reg0 provide interrupt capability. See Table 20-2 for Interrupt and Status register
names and bit assignments.
Interrupt Mask Register
Intrpt_mask_reg0 is a read-only interrupt mask register used to enable/disable individual interrupts
in the i2c.interrupt_status_reg0 register:
If the mask bit = 0, the interrupt is enabled.
If the mask bit = 1, the interrupt is disabled.
This mask is controlled by the write-only Intrpt_enable_reg0 and Intrpt_disable_reg0 registers.
Each associated enable/disable interrupt bit should be set mutually exclusive (e.g., to enable an
interrupt, write 1 to Intrpt_enable_reg0[x] and write 0 to Intrpt_disable_reg0[x]).
Table 20-2: Interrupt and Status Register Names and Bit Assignments
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
i2c.Interrupt_status_reg0
i2c.Intrpt_mask_reg0
i2c.Intrpt_enable_reg0
i2c.Intrpt_disable_reg0
X X X X X X ARB_LOST X RX_UNF TX_OVF RX_OVF SLV_RDY TO NACK DATA COMP
i2c.Status_reg0
X X X X X X X BA RXOVF TXDV RXDV X RX_RW X X X