42.7.3.10 Read/Write Flowcharts

The flowcharts give examples for read and write operations. A polling or interrupt method can be used to check the status bits. The interrupt method requires that TWIHS_IER be configured first.

Figure 42-14. TWIHS Write Operation with Single Data Byte without Internal Address
Figure 42-15. TWIHS Write Operation with Single Data Byte and Internal Address
Figure 42-16. TWIHS Write Operation with Multiple Data Bytes with or without Internal Address
Figure 42-17. SMBus Write Operation with Multiple Data Bytes with or without Internal Address and PEC Sending
Figure 42-18. SMBus Write Operation with Multiple Data Bytes with PEC and Alternative Command Mode
Figure 42-19. TWIHS Write Operation with Multiple Data Bytes and Read Operation with Multiple Data Bytes (Sr)
Figure 42-20. TWIHS Write Operation with Multiple Data Bytes + Read Operation and Alternative Command Mode + PEC
Figure 42-21. TWIHS Read Operation with Single Data Byte without Internal Address
Figure 42-22. TWIHS Read Operation with Single Data Byte and Internal Address
Figure 42-23. TWIHS Read Operation with Multiple Data Bytes with or without Internal Address
Figure 42-24. TWIHS Read Operation with Multiple Data Bytes with or without Internal Address with PEC
Figure 42-25. TWIHS Read Operation with Multiple Data Bytes with Alternative Command Mode with PEC
Figure 42-26. TWIHS Read Operation with Multiple Data Bytes + Write Operation with Multiple Data Bytes (Sr)
Figure 42-27. TWIHS Read Operation with Multiple Data Bytes + Write with Alternative Command Mode with PEC