English
Language : 

MC9S12KG128_10 Datasheet, PDF (268/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 8 Inter-Integrated Circuit (IICV2) Block Description
8.4.1.8 Handshaking
The clock synchronization mechanism can be used as a handshake in data transfer. Slave devices may hold
the SCL low after completion of one byte transfer (9 bits). In such case, it halts the bus clock and forces
the master clock into wait states until the slave releases the SCL line.
8.4.1.9 Clock Stretching
The clock synchronization mechanism can be used by slaves to slow down the bit rate of a transfer. After
the master has driven SCL low the slave can drive SCL low for the required period and then release it.If
the slave SCL low period is greater than the master SCL low period then the resulting SCL bus signal low
period is stretched.
8.4.2 Operation in Run Mode
This is the basic mode of operation.
8.4.3 Operation in Wait Mode
IIC operation in wait mode can be configured. Depending on the state of internal bits, the IIC can operate
normally when the CPU is in wait mode or the IIC clock generation can be turned off and the IIC module
enters a power conservation state during wait mode. In the later case, any transmission or reception in
progress stops at wait mode entry.
8.4.4 Operation in Stop Mode
The IIC is inactive in stop mode for reduced power consumption. The STOP instruction does not affect IIC
register states.
8.5 Resets
The reset state of each individual bit is listed in Section 8.3, “Memory Map and Register Definition,” which
details the registers and their bit-fields.
8.6 Interrupts
IICV2 uses only one interrupt vector.
Table 8-8. Interrupt Summary
Interrupt Offset
IIC
—
Interrupt
Vector
—
Priority
Source
Description
— IBAL, TCF, IAAS When either of IBAL, TCF or IAAS bits is set
bits in IBSR may cause an interrupt based on arbitration
register
lost, transfer complete or address detect
conditions
Internally there are three types of interrupts in IIC. The interrupt service routine can determine the interrupt
type by reading the status register.
MC9S12KG128 Data Sheet, Rev. 1.16
268
Freescale Semiconductor