45.6.3.2 Programming Host Mode

The following registers must be programmed before entering Host mode:

  1. TWIHS_MMR.DADR (+ IADRSZ + IADR if a 10-bit device is addressed): The device address is used to access client devices in Read or Write mode.
  2. TWIHS_CWGR.CKDIV + CHDIV + CLDIV: Clock Waveform register
  3. TWIHS_CR.SVDIS: Disables the Client mode
  4. TWIHS_CR.MSEN: Enables the Host mode
Note: If the TWIHS is already in Host mode, the device address (DADR) can be configured without disabling the Host mode.