English
Language : 

K60P100M100SF2RM Datasheet, PDF (1472/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Initialization/Application Information
Module Initialization (Master)
1. Write: Frequency Divider register to set the I2C baud rate (example provided in this
chapter)
2. Write: Control Register 1 to enable the I2C module and interrupts
3. Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data
4. Initialize RAM variables used to achieve the routine shown in the following figure
5. Write: Control Register 1 to enable TX
6. Write: Control Register 1 to enable MST (master mode)
7. Write: Data register with the address of the target slave (the LSB of this byte
determines whether the communication is master receive or transmit)
The routine shown in the following figure can handle both master and slave I2C
operations. For slave operation, an incoming I2C message that contains the proper
address begins I2C communication. For master operation, communication must be
initiated by writing the Data register.
1472
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.