Datasheet

MCP7941X
DS22266A-page 8 Preliminary 2010 Microchip Technology Inc.
FIGURE 3-2: ACKNOWLEDGE TIMING
3.1.2 DEVICE ADDRESSING AND OPERATION
A control byte is the first byte received following the
Start condition from the master device (Figure 3-2).
The control byte consists of a control code; for the
MCP7941X this is set as ‘1010111’ for read and write
operations for the EEPROM.
The control byte for accessing the SRAM and RTCC
registers are set to 1101111’. The RTCC registers and
the SRAM share the same address space.
The last bit of the control byte defines the operation to
be performed. When set to a1’ a read operation is
selected, and when set to a 0’ a write operation is
selected. The next byte received defines the address of
the data byte (Figure 3-3). The upper address bits are
transferred first, followed by the Least Significant bits
(LSb).
Following the Start condition, the MCP7941X monitors
the SDA bus, checking the device type identifier being
transmitted. Upon receiving an ‘1010111’ or
1101111’ code, the slave device outputs an
Acknowledge signal on the SDA line. Depending on the
state of the R/W
bit, the MCP7941X will select a read
or write operation.
FIGURE 3-3: ADDRESS SEQUENCE BIT ASSIGNMENTS
SCL
987654321123
Transmitter must release the SDA line at this point
allowing the Receiver to pull the SDA line low to
acknowledge the previous eight bits of data.
Receiver must release the SDA line at this point
so the Transmitter can continue sending data.
Data from transmitter
Data from transmitter
SDA
Acknowledge
Bit
1010 R/W
X
A
0
••••••
EEPROM CONTROL BYTE
ADDRESS BYTE
CONTROL
CODE
{“A7” is “Don’t Care” for normal EEPROM
111
X = Don’t Care
1101 R/W
X
A
0
••••••
SRAM RTCC CONTROL BYTE
ADDRESS BYTE
CONTROL
CODE
111
X = Don’t Care
operations, but is used to access unique ID
location and STATUS register.)