|
24C32 Datasheet, PDF (5/12 Pages) Microchip Technology – 32K 5.0V I2C 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 24C32 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 24C32 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
24C32
acknowledge signal on the SDA line. Depending on the
state of the R/W bit, the 24C32 will select a read or write
operation.
Operation
Control
Code
Device Select
R/W
Read
Write
1010 Device Address 1
1010 Device Address 0
FIGURE 3-2:
START
CONTROL BYTE
ALLOCATION
READ/WRITE
SLAVE ADDRESS
R/W A
1
0
1
0
A2 A1 A0
FIGURE 3-3: ADDRESS SEQUENCE BIT ASSIGNMENTS
CONTROL BYTE
1
0
1
0
A
2
A
1
A
0
R/W
SLAVE
ADDRESS
DEVICE
SELECT
BUS
ADDRESS BYTE 1
0
0
0
0
AA
11 10
A
9
A
8
ADDRESS BYTE 0
A
7
â¢
â¢
â¢
â¢â¢
â¢
A
0
© 1996 Microchip Technology Inc.
DS21061F-page 5
|
▷ |