30.3.3 I2C Control Register 1 (I2Cx_C1)
Address: Base a 2h offset
Bit
7
6
5
4
3
2
1
0
Read
0
Write
Reset
0
0
0
0
0
0
0
0
I2Cx_C1 field descriptions
Field
Description
7
IICEN
I2C Enable
Enables I2C module operation.
0
Disabled
1
Enabled
6
IICIE
I2C Interrupt Enable
Enables I2C interrupt requests.
0
Disabled
1
Enabled
5
MST
Master Mode Select
When the MST bit is changed from a 0 to a 1, a START signal is generated on the bus and master mode
is selected. When this bit changes from a 1 to a 0, a STOP signal is generated and the mode of operation
changes from master to slave.
0
Slave mode
1
Master mode
4
TX
Transmit Mode Select
Selects the direction of master and slave transfers. In master mode this bit must be set according to the
type of transfer required. Therefore, for address cycles, this bit is always set. When addressed as a slave
this bit must be set by software according to the SRW bit in the status register.
0
Receive
1
Transmit
3
TXAK
Transmit Acknowledge Enable
Specifies the value driven onto the SDA during data acknowledge cycles for both master and slave
receivers.
NOTE: SCL is held low until TXAK is written.
0
An acknowledge signal is sent to the bus on the following receiving byte
1
No acknowledge signal is sent to the bus on the following receiving data byte.
2
RSTA
Repeat START
Writing a one to this bit generates a repeated START condition provided it is the current master. This bit
will always be read as zero. Attempting a repeat at the wrong time results in loss of arbitration.
Table continues on the next page...
Memory map and register descriptions
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
476
Freescale Semiconductor, Inc.