63.9.5.4.2 Write Operation
The Write mode is defined as a data transmission from the host.
After a START or a REPEATED START, the decoding of the address starts. If the client address is decoded, SVACC is set and SVREAD indicates the direction of the transfer (SVREAD is low in this case).
Until a STOP or REPEATED START condition is detected, TWI stores the received data in FLEX_TWI_RHR.
If a STOP condition or a REPEATED START + an address different from SADR is detected, SVACC is reset.
The following figure describes the write operation.
Note:
- When SVACC is low, the state of SVREAD becomes irrelevant.
- RXRDY is set when data has been transmitted from the internal shifter to FLEX_TWI_RHR, and reset when this data is read.