![Freescale Semiconductor QE128 Quick Reference User Manual Download Page 55](http://html1.mh-extra.com/html/freescale-semiconductor/qe128/qe128_quick-reference-user-manual_2330661055.webp)
QE128 Quick Reference User Guide, Rev. 1.0
Freescale Semiconductor
6-1
Chapter 6
Using the Inter-Integrated Circuit (IIC) for the QE
Microcontrollers
6.1
Overview
This is a quick reference for using the inter-integrated circuit (IIC) module for the QE family
microcontrollers (MCUs). Basic information about the functional description and configuration options
are provided.
The following example may be modified to suit an application. The IIC project is made for the
MC9S08QE128 and MCF51QE128 MCUs.
IIC Quick Reference
There is more than one IIC modules in this device, there also may be more than one full set of
registers on the device. In the register name below, where there’s a small x, there would be a 1 or a
2 in the software to distinguish the register that is on IIC1 or IIC2.
This register contains the slave address to be used by the IIC module.
ModBUSY – Bus Busyule Configuration:
Data Register
6.2
Code Example and Explanation
This example codes for the Master and Slave project is available from the Freescale Web site
www.freescale.com.
IICxA
AD7
AD6
AD5
AD4
AD3
AD2
AD1
IICxF
MULT
ICR
MULT – IIC Multiplier Factor
CR – IIC Clock Rate
IICxC1
IICEN
IICIE
MST
TX
TXAK
RSTA
IICEN – IIC Enable
TX – Transmit Mode Select
IICIE – IIC Interrupt Enable
TXAK – Transmit Acknowledge Enable
MST – Master Mode Select
RSTA – Repeat START
IICxS
TCF
IAAS
BUSY
ARBL
SRW
IICIF
RXAK
TCF – Transfer Complete Flag
SRW – Slave Read/Write
IAAS – Addressed as a Slave
IICIF – IIC Interrupt Flag
BUSY – Bus Busy
RXAK – Receive Acknowledge
ARBL – Arbitration Lost
IICxD
DATA
IICxC2
GCAEN
ADEXT
AD10
AD9
AD8
GCAEN – General Call Address Enable
AD[10:8] – Slave Address
ADEXT – Address Extension