29.3.2.1.2 Client Initialization
Follow these steps to initialize the client:
- Before enabling the TWI client, configure the SDA Setup Time (SDASETUP) bit in the Control A (TWIn.CTRLA) register.
- Write the client address to the Client Address (TWIn.SADDR) register.
- 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.