English
Language : 

MC9S08QE16CLC Datasheet, PDF (209/350 Pages) Freescale Semiconductor, Inc – Low-power wireless applications, Gas, water and heater meters
11.7 Initialization/Application Information
Inter-Integrated Circuit (S08IICV2)
1. Write: IICC2
Module Initialization (Slave)
— to enable or disable general call
— to select 10-bit or 7-bit addressing mode
2. Write: IICA
— to set the slave address
3. Write: IICC1
— to enable IIC 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 Figure 11-12
1. Write: IICF
Module Initialization (Master)
— to set the IIC baud rate (example provided in this chapter)
2. Write: IICC1
— to enable IIC 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 Figure 11-12
5. Write: IICC1
— to enable TX
Register Model
IICA
AD[7:1]
0
When addressed as a slave (in slave mode), the module responds to this address
IICF
MULT
ICR
Baud rate = BUSCLK / (2 x MULT x (SCL DIVIDER))
IICC1 IICEN IICIE
MST
TX
TXAK RSTA
Module configuration
IICS TCF IAAS BUSY ARBL
0
SRW
Module status flags
IICD
DATA
Data register; Write to transmit IIC data read to read IIC data
0
IICIF
0
RXAK
IICC2 GCAEN ADEXT
0
0
0
AD10 AD9 AD8
Address configuration
Figure 11-11. IIC Module Quick Start
MC9S08AC60 Series Data Sheet, Rev. 3
Freescale Semiconductor
209