|
24FC32 Datasheet, PDF (5/12 Pages) Microchip Technology – 32K 5.0V 1 MHz I 2 C Smart Serial EEPROM | |||
|
◁ |
3.6 Device Addressing
A control byte is the ï¬rst byte received following the
start condition from the master device. The control byte
consists of a four bit control code; for the 24FC32 this
is set as 1010 binary for read and write operations. The
next three bits of the control byte are the device select
bits (A2, A1, A0). They are used by the master device
to select which of the eight devices are to be accessed.
These bits are in effect the three most signiï¬cant bits of
the word address. The last bit of the control byte (R/W)
deï¬nes the operation to be performed. When set to a
one a read operation is selected, and when set to a
zero a write operation is selected. The next two bytes
received deï¬ne the address of the ï¬rst data byte
(Figure 3-3). Because only A11..A0 are used, the upper
four address bits must be zeros. The most signiï¬cant bit
of the most signiï¬cant byte of the address is transferred
ï¬rst. Following the start condition, the 24FC32 monitors
the SDA bus checking the device type identiï¬er being
transmitted. Upon receiving a 1010 code and appropri-
ate device select bits, the slave device outputs an
acknowledge signal on the SDA line. Depending on the
state of the R/W bit, the 24FC32 will select a read or
write operation.
24FC32
FIGURE 3-2:
START
CONTROL BYTE
ALLOCATION
READ/WRITE
SLAVE ADDRESS
R/W A
1
0
1
0
A2 A1 A0
X = Donât care
Operation
Control
Code
Device Select
R/W
Read
Write
1010 Device Address 1
1010 Device Address 0
FIGURE 3-3: ADDRESS SEQUENCE BIT ASSIGNMENTS
CONTROL
BYTE
ADDRESS
BYTE 1
1
0
1
0
A
2
A
1
A
0
R/W
Slave
Address
Device
Select
Bits
0
0
0
0
A
11
A
10
A
9
A
8
ADDRESS
BYTE 0
A
7
â¢
â¢
â¢
â¢
â¢
â¢
A
0
© 1996 Microchip Technology Inc.
DS21126B-page 3-5
|
▷ |