MC96F6432
June 22, 2018 Ver. 2.9
213
Figure 11.71 Clock Synchronization during Arbitration Procedure (USI0)
Figure 11.72 Arbitration Procedure of Two Masters (USI0)
11.12.20 USI0 I2C Operation
The I2C is byte-oriented and interrupt based. Interrupts are issued after all bus events except for a
transmission of a START condition. Because the I2C is interrupt based, the application software is free to carry
on other operations during a I2C byte transfer.
Note that when a I2C interrupt is generated, IIC0IFR flag in USI0CR4 register is set, it is cleared when all
interrupt source bits in the USI0ST2
register are cleared to “0b”.
When I2C interrupt occurs, the SCL0 line is hold
LOW until clearing
“0b” all interrupt source bits in USI0ST2 register. When the IIC0IFR flag is set, the USI0ST2
contains a value indicating the current state of the I2C bus. According to the value in USI0ST2, software can
decide what to do next.
I2C can operate in 4 modes by configuring master/slave, transmitter/receiver. The operating mode is
configured by a winning master. A more detailed explanation follows below.
11.12.20.1 USI0 I2C Master Transmitter
To operate I2C in master transmitter, follow the recommended steps below.
1. Enable I2C by setting USI0MS[1:0]
bits in USI0CR1 and USI0EN bit in USI0CR2. This provides main
clock to the peripheral.
Device1
DataOut
SCL0 on BUS
Device2
DataOut
SDA0 on BUS
S
Arbitration Process
not adaped
Device 1 loses
Arbitration
Device1 outputs
High
High Counter
Reset
Fast Device
SCLOUT
Slow Device
SCLOUT
SCL0
Wait High
Counting
Start High
Counting
Summary of Contents for MC96F6332D
Page 24: ...MC96F6432 24 June 22 2018 Ver 2 9 4 Package Diagram Figure 4 1 48 Pin LQFP 0707 Package...
Page 25: ...MC96F6432 June 22 2018 Ver 2 9 25 Figure 4 2 44 Pin MQFP Package...
Page 26: ...MC96F6432 26 June 22 2018 Ver 2 9 Figure 4 3 32 Pin LQFP Package...
Page 27: ...MC96F6432 June 22 2018 Ver 2 9 27 Figure 4 4 32 Pin SOP Package...
Page 28: ...MC96F6432 28 June 22 2018 Ver 2 9 Figure 4 5 28 Pin SOP Package...