Communication Interface Functional Overview
I2C Interface
Copyright © 2002 Marvell
CONFIDENTIAL
Doc. No. MV-S300165-00, Rev. A
May 21, 2002, Preliminary
Document Classification: Proprietary Information
Page 71
Figure 32: GT-64260A I
2
C Interface Connection to SDRAM DIMMS
7.5.2 I
2
C Interface Initialization
To work with the I
2
C interface, it must be initialized first. The interface initialization sequence is as follows:
1.
Reset the I
2
C logic by writing to the I
2
C Soft Reset Register, at offset 0xC01C.
2.
Set the I
2
C frequency in the I
2
C Baud Rate Register, at offset 0xC00C.
3.
When working in interrupt mode, set the I
2
C Control register’s
IntEn
bit [7], at offset 0xc008, and unmask the
I
2
C interrupt bit in the corresponding mask register. See
Section 11. "Interrupt Controller Functional Overview"
. At this stage, when the CPU gets an interrupt form the I
2
C unit, it reads the I
2
C Status Register,
at offset 0xC00C.
To only work with the I
2
C interface as a Master, disable the general call and keep the slave address 0x0 (which is
the address of the general call). The I
2
C never returns Ack as a slave, but only as a master.