42.7.3.5.2 10-bit Client Addressing
For a Client address higher than seven bits, configure the address size (IADRSZ) and set the other Client address bits in the Internal Address register (TWIHS_IADR). The two remaining internal address bytes, IADR[15:8] and IADR[23:16], can be used the same way as in 7-bit Client addressing.
Example: Address a 10-bit device (10-bit device address is b1 b2 b3 b4 b5 b6 b7 b8 b9 b10)
- Program IADRSZ = 1,
- Program DADR with 1 1 1 1 0 b1 b2 (b1 is the MSB of the 10-bit address, b2, etc.)
- Program TWIHS_IADR with b3 b4 b5 b6 b7 b8 b9 b10 (b10 is the LSB of the 10-bit address)
The figure below shows a byte write to a memory device. This demonstrates the use of internal addresses to access the device.