English
Language : 

K60P100M100SF2RM Datasheet, PDF (1471/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 50 Inter-Integrated Circuit (I2C)
NOTE
After the system recovers and is in run mode, restart the I2C
module if necessary. The SCL line is not held low until the I2C
module resets after address matching. The main purpose of this
feature is to wake the MCU from stop mode. Data sent on the
bus that is the same as a target device address might also wake
the target MCU.
50.4.9 DMA Support
If the DMAEN bit is cleared and the IICIE bit is set, an interrupt condition generates an
interrupt request. If the DMAEN bit is set and the IICIE bit is set, an interrupt condition
generates a DMA request instead. DMA requests are generated by the transfer complete
flag (TCF).
If the DMAEN bit is set, the only arbitration lost is to another I2C module (error), and
SCL low timeouts (error) generate CPU interrupts. All other events initiate a DMA
transfer.
NOTE
Before the last byte of master receive mode, TXAK must be set
to send a NACK after the last byte’s transfer. Therefore, the
DMA must be disabled before the last byte’s transfer.
NOTE
In 10-bit address mode transmission, the addresses to send
occupy 2-3 bytes. During this transfer period, the DMA must be
disabled because the C1 register is written to send a repeat start
or to change the transfer direction.
50.5 Initialization/Application Information
Module Initialization (Slave)
1. Write: Control Register 2
• to enable or disable general call
• to select 10-bit or 7-bit addressing mode
2. Write: Address Register 1 to set the slave address
3. Write: Control Register 1 to enable the I2C module and interrupts
4. Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
5. Initialize RAM variables used to achieve the routine shown in the following figure
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1471