Samsung S3C6400X User Manual page 987

Table of Contents

Advertisement

IIC-BUS INTERFACE
READ-WRITE OPERATION
When the data is transferred in the Transmitter mode, the IIC-bus interface will wait until IIC-bus Data Shift
(IICDS) register receives a new data. Before the new data is written into the register, the SCL line will be held low
and then released after it is written. The S3C6400X holds the interrupt to identify the completion of current data
transfer. After the CPU receives the interrupt request, it writes a new data again into the IICDS register.
When data is received in the Receive mode, the IIC-bus interface will wait until IICDS register is read. Before the
new data is read out, the SCL line will be held low and then released after it is read. The S3C6400X holds the
interrupt to identify the completion of the new data reception. After the CPU receives the interrupt request, it reads
the data from the IICDS register.
BUS ARBITRATION PROCEDURES
Arbitration takes place on the SDA line to prevent the contention on the bus between two masters. If a master with
a SDA High level detects the other master with a SDA active Low level, it will not initiate a data transfer because
the current level on the bus does not correspond to its own. The arbitration procedure will be extended until the
SDA line turns High.
However, when the masters simultaneously lower the SDA line, each master evaluates whether the mastership is
allocated itself or not. For the purpose of
generates the slave address, it ealso detects the address bit on the SDA line because the SDA line is likely to get
Low rather than to keep High. Assume that one master generates a Low as first address bit, while the other
master is maintaining High. In this case, both masters will detect Low on the bus because the Low status is
superior to the High status in power. When this happens, Low (as the first bit of address) generating master will
get the mastership while High (as the first bit of address) generating master will withdraw the mastership. If both
masters generate Low as the first bit of address, there will be arbitration again for the second address bit. This
arbitration will continue to the end of last address bit.
ABORT CONDITIONS
If a slave receiver cannot acknowledge the confirmation of the slave address, it will hold the level of the SDA line
High. In this case, the master generates a Stop condition to abort the transfer.
If a master receiver is involved in the aborted transfer, it signals the end of the slave transmit operation by
canceling the generation of an ACK after the last data byte received from the slave. The slave transmitter
releases the SDA to allow a master to generate a Stop condition.
CONFIGURING IIC-BUS
To control the frequency of the serial clock (SCL), the 4-bit prescaler value can be programmed in the IICCON
register. The IIC-bus interface address is stored in the IIC-bus address (IICADD) register. (By default, the IIC-bus
interface address has an unknown value.)
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
30-6
Specifications and information herein are subject to change without notice.
evaluation,
each master must detect the address bits. While each master
S3C6400X RISC MICROPROCESSOR

Advertisement

Table of Contents
loading

Table of Contents