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