47.9.3.8 Bus Clear Command
The TWI interface can perform a Bus Clear command:
- Configure Host mode (DADR, CKDIV, etc).
- Read FLEX_TWI_SR.SDA/SCL flags and check the TWD (SDA) and TWCK (SCL) lines hold a high level.
- Send the Bus Clear command by setting FLEX_TWI_CR.CLEAR.
Note: When TWD (SDA)=0, the Bus Clear command must be performed via the
PIO. When TWCK (SCL)=0, no Bus Clear command can be issued.
Note: If an alternative command is used (ACMEN bit = 1), the DATAL field must be
cleared.