LSISASX12 LSI, LSISASX12 Datasheet - Page 256

no-image

LSISASX12

Manufacturer Part Number
LSISASX12
Description
Manufacturer
LSI
Datasheet

Specifications of LSISASX12

Lead Free Status / Rohs Status
Not Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LSISASX12A
Manufacturer:
LSILOGIC
Quantity:
5 510
Part Number:
LSISASX12A
Manufacturer:
LT
Quantity:
5 510
B.2 Write a 32-Byte Page to the Serial EEPROM
B-2
write(WAIT_TIMER, 0xCE4D);
write(TIMER_CLOCK_DIVIDER_CONTROL, 0x000D);
// Flush any data in the RX FIFO
depth = read(RX_FIFO_STATUS);
for (i=0; i<depth; i++)
{
}1
This section provides example code for writing a 32-byte page to the
serial EEPROM.
// transferring a total of 34 (decimal) bytes
// 2 for 16-bit serial EEPROM address plus 32 bytes
// of data
Write(TRANSMIT_TRANSFER_LENGTH, 34);
Write(RECEIVE_TRANSFER_LENGTH, 0x00);
// Control byte for serial EEPROM
Write(ADDRESS_REGISTER_1, 0xA0);
// set to automatic transfer mode
Write(MASTER_COMMAND, 0x01);
Write(MASTER_COMMAND, 0x09);
// write upper EEPROM address, this example is writing
// to address 0x00 in serial EEPROM
Write(DATA, 0x00);
// write lower EEPROM address, this example is writing
// to address 0x00 in serial EEPROM
Write(DATA, 0x00);
bytesLeft = 32;
while (bytesLeft) {
Example Code for API2C Interface and Serial EEPROM
Copyright © 2004, 2005 by LSI Logic Corporation. All rights reserved.
read(DATA);
depth = Read(TRANSMIT_FIFO_STATUS);
while (depth > 0 && bytesLeft) {
}
Write(DATA, *ptrData);
ptrData++;
bytesLeft--;
depth--;

Related parts for LSISASX12