47.9.3.13 Read/Write Flowcharts

The flowcharts shown in this section provide examples for read and write operations. A polling or interrupt method can be used to check the status bits. The interrupt method requires that the Interrupt Enable register (FLEX_TWI_IER) be configured first.

Figure 47-96. TWI Write Operation with Single Data Byte without Internal Address
Figure 47-97. TWI Write Operation with Single Data Byte and Internal Address
Figure 47-98. TWI Write Operation with Multiple Data Bytes with or without Internal Address
Figure 47-99. SMBus Write Operation with Multiple Data Bytes with or without Internal Address and PEC Sending
Figure 47-100. SMBus Write Operation with Multiple Data Bytes with PEC and Alternative Command Mode
Figure 47-101. TWI Write Operation with Multiple Data Bytes and Read Operation with Multiple Data Bytes (Sr)
Figure 47-102. TWI Write Operation with Multiple Data Bytes + Read Operation and Alternative Command Mode + PEC
Figure 47-103. TWI Read Operation with Single Data Byte without Internal Address
Figure 47-104. TWI Read Operation with Single Data Byte and Internal Address
Figure 47-105. TWI Read Operation with Multiple Data Bytes with or without Internal Address
Figure 47-106. TWI Read Operation with Multiple Data Bytes with or without Internal Address with PEC
Figure 47-107. TWI Read Operation with Multiple Data Bytes with Alternative Command Mode with PEC
Figure 47-108. TWI Read Operation with Multiple Data Bytes + Write Operation with Multiple Data Bytes (Sr)
Figure 47-109. TWI Read Operation with Multiple Data Bytes + Write with Alternative Command Mode with PEC