27.5.10 Slave Control B

Name: SCTRLB
Offset: 0x0A
Reset: 0x00
Property: -

Bit 76543210 
      ACKACTSCMD[1:0] 
Access R/WR/WR/W 
Reset 000 

Bit 2 – ACKACT Acknowledge Action

This bit defines the slave’s behavior under certain conditions defined by the bus protocol state and software interaction. The table below lists the acknowledge procedure performed by the slave if action is initiated by software. The acknowledge action is performed when TWIn.SDATA is read or written, or when an execute command is written to the CMD bits in this register.

The ACKACT bit is not a flag or strobe, but an ordinary read/write accessible register bit.

ValueNameDescription
0ACKSend ACK
1NACKSend NACK

Bits 1:0 – SCMD[1:0] Command

Unlike the acknowledge action bits, the Slave command bits are strobes. These bits always read as zero. Writing to these bits trigger a slave operation as defined in the table below.

Table 27-5. Command Settings
SCMD[1:0]DIRDescription
0x0XNOACT - No action
0x1XReserved
0x2 - COMPTRANSUsed to complete a transaction.
0Execute Acknowledge Action succeeded by waiting for any Start (S/Sr) condition.
1Wait for any Start (S/Sr) condition.
0x3 - RESPONSEUsed in response to an address interrupt (APIF).
0Execute Acknowledge Action succeeded by reception of next byte.
1 Execute Acknowledge Action succeeded by slave data interrupt.
Used in response to a data interrupt (DIF).
0Execute Acknowledge Action succeeded by reception of next byte.
1Execute a byte read operation followed by Acknowledge Action.

The acknowledge action bits and command bits can be written at the same time.