31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16
15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00
Unused
Bits
31 :
8
SLA
Bits
7 :
1R/W
0x0
Slave Address
7-bit addressing:
SLA6, SLA5, SLA4, SLA3, SLA2, SLA1, SLA0
10-bit addressing:
1, 1, 1, 1, 0, SLAX[9:8]
GCE
Bit
0R/W
0x0
General Call Address Enable
0: Disable
1: Enable
Note
For 7-bit addressing:
SLA6 - SLA0 is the 7-bit address of the TWI in slave mode. When the TWI receives this address after a START condition, it will generate an interrupt and enter slave mode. (SLA6 corresponds to the first bit received from the TWI bus.) If GCE is set to 1 , the TWI will also recognize the general call address (00h). For 10-bit addressing:
When the address received starts with 11110b, the TWI recognizes this as the first part of a 10-bit address and if the next two bits match ADDR[2:1] (i.e. SLAX9 and SLAX8 of the device's extended address), it sends an ACK. (The device does not generate an interrupt at this point.) If the next byte of the address matches the XADDR register (SLAX7 - SLAX0), the TWI generates an interrupt and goes into slave mode.