19.1 Communicating as a Host in a Single Host Environment
The details of sending a message in Host mode depends on the communication protocol for the device being communicated with. Typically, the sequence of events is as follows:
- Assert a Start condition on SDAx and SCLx.
- Send the I2C device address byte to the Client with a write indication.
- Wait for and verify an Acknowledge from the Client.
- Send the first data byte (sometimes known as the command) to the Client.
- Wait for and verify an Acknowledge from the Client.
- Send the serial memory address low byte to the Client.
- Repeat Steps 4 and 5 until all data bytes are sent.
- Assert a Repeated Start condition on SDAx and SCLx.
- Send the device address byte to the Client with a read indication.
- Wait for and verify an Acknowledge from the Client.
- Enable Host reception to receive serial memory data.
- Generate an ACK or NACK condition at the end of a received byte of data.
- Generate a Stop condition on SDAx and SCLx.