I2C Status Register (I2Cx_S) - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

Memory map/register definition
Field
If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from
master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used
in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the
C1 register operation. With this assumption, DMA cannot be used.
When FACK = 1, an address or a data byte is transmitted.

36.4.4 I2C Status register (I2Cx_S)

Address: Base address + 3h offset
Bit
7
Read
TCF
Write
Reset
1
Field
7
Transfer Complete Flag
TCF
Acknowledges a byte transfer; TCF is set on the completion of a byte transfer. This bit is valid only during
or immediately following a transfer to or from the I2C module. TCF is cleared by reading the I2C data
register in receive mode or by writing to the I2C data register in transmit mode.
NOTE: In the buffer mode, TCF is cleared automatically by internal reading or writing the data register
0
Transfer in progress
1
Transfer complete
6
Addressed As A Slave
IAAS
This bit is set by one of the following conditions:
• The calling address matches the programmed primary slave address in the A1 register, or matches
the range address in the RA register (which must be set to a nonzero value and under the condition
I2C_C2[RMEN] = 1).
• C2[GCAEN] is set and a general call is received.
• SMB[SIICAEN] is set and the calling address matches the second programmed slave address.
• ALERTEN is set and an SMBus alert response address is received
• RMEN is set and an address is received that is within the range between the values of the A1 and
RA registers.
IAAS sets before the ACK bit. The CPU must check the SRW bit and set TX/RX accordingly. Writing the
C1 register with any value clears this bit.
0
Not addressed
1
Addressed as a slave
5
Bus Busy
BUSY
618
I2Cx_C1 field descriptions (continued)
6
5
BUSY
IAAS
0
0
I2Cx_S field descriptions
I2C_D, with no need waiting for manually reading/writing the I2C data register in Rx/Tx mode.
Table continues on the next page...
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Description
4
3
ARBL
RAM
w1c
0
0
Description
2
1
SRW
IICIF
RXAK
w1c
0
0
Freescale Semiconductor, Inc.
0
0

Advertisement

Table of Contents
loading

Table of Contents