Client Initialization

Follow these steps to initialize the client:

  1. 1.Before enabling the TWI client, configure the SDA Setup Time (SDASETUP) bit in the Control A (TWIn.CTRLA) register.
  2. 2.Write the client address to the Client Address (TWIn.SADDR) register.
  3. 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 TWI client will now wait for a host device to issue a Start condition and the matching client address.