31.6.5 Interrupt Flag Status and Clear
| Name: | INTFLAG |
| Offset: | 0x18 |
| Reset: | 0x00 |
| Property: | – |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ERROR | DRDY | AMATCH | PREC | ||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 |
Bit 7 – ERROR Error
This bit is set when any error is detected. Errors that set this flag have corresponding status flags in the STATUS register. The corresponding STATUS bits are SEXTTOUT, LOWTOUT, COLL, and BUSERR.
Writing ‘0’ to this bit has no effect.
Writing ‘1’ to this bit clears the flag.
Bit 2 – DRDY Data Ready
This flag is set when an I2C client byte transmission or reception is successfully completed.
The flag is cleared by hardware when either of the following occurs:
- Writing to the DATA register
- Reading the DATA register while Smart mode is enabled
- Writing a valid command to the CMD register
Writing ‘0’ to this bit has no effect.
Writing ‘1’ to this bit clears the Data Ready interrupt
flag.
Bit 1 – AMATCH Address Match
This flag is set when the I2C client address match logic detects receipt of a valid address.
The flag is cleared by hardware when CTRL.CMD is written.
Writing ‘0’ to this bit has no effect.
Writing ‘1’ to this bit clears the Address Match interrupt
flag. When cleared, an ACK/NACK is sent according
to CTRLB.ACKACT.
Bit 0 – PREC Stop Received
This flag is set when a Stop condition is detected for a transaction being processed. A Stop condition detected between a bus host and another client will not set this flag unless the PMBus Group Command is enabled in the Control B register (CTRLB.GCMD=1).
This flag is cleared by hardware after a command is issued upon the next address match.
Writing ‘0’ to this bit has no effect.
Writing ‘1’ to this bit clear the Stop Received interrupt
flag.
