25.3.2.1.2 Client Initialization

Follow these steps to initialize the client:

  1. Before enabling the TWI device, configure the SDA Setup Time (SDASETUP) bit from the Control A (TWIn.CTRLA) register.
  2. Write the address of the client to the Client Address (TWIn.SADDR) register.
  3. Write a ‘1’ to the Enable TWI Client (ENABLE) bit in the Client Control A (TWIn.SCTRLA) register to enable the TWI client.

The client device will now wait for a host device to issue a Start condition and the matching client address.