AN1350 STMicroelectronics, AN1350 Datasheet

no-image

AN1350

Manufacturer Part Number
AN1350
Description
STE10-100A EEPROM ACCESS AND PROGRAMMING
Manufacturer
STMicroelectronics
Datasheet
1.0 EEPROM
There are four EEPROM interface pins
(Can refer to “CSR9 SPR - Serial Port Register” on page 22/66 of the STE10/100A Data Sheet)
The STE10/100A is designed to support serial interface to a 93C46 EEPROM.
The EEPROM has three types of information:
• Information that is used by the STE10/100A
• Information that can be used by the STE10/100A driver
• CIS data
The information that is used by the STE10/100A is located in the ID block. These blocks are automati-
cally read by the STE10/100A without software involvement. The ID block is read upon a hardware reset
or when the STE10/100A transitions from the D3 power state to the D0 power state.
The ID block is located at the top of the EEROM, beginning in address 0.
The STE10/100A driver accesses the EEPROM through CSR9. The access sequences and timing are
handled by the software. The EEPROM operations in this method can be read, write, or erase. The read
and write operations in this method are described in the following sections. The erase operation is han-
dled very similarly to the read and write operations.
2.0 Read Operation
Read operations consist of three phases:
1. Command phase—3 bits (binary code of 110)
2. Address phase—6 bits for 256-bit to 1 Kb ROMs, 8 bits for 2 Kb to 4 Kb ROMs.
3. Data phase—16 bits
Figure 1
the driver to execute a read cycle. The timing (listed on the right side of the figures) specifies the mini-
mum time that the driver must wait before advancing to the next action. During both the address phase in
Figure 1
February 2001
EEPROM data out, EDO (pin 72)
Serial ROM data in, EDI (pin 73)
Serial ROM clock, ECK (pin 74)
Serial ROM chip select, EECS (pin 76)
STE10/100A - EEPROM ACCESS AND PROGRAMMING
and
and data phase in
Figure 2
show a typical read cycle that describes the action steps that need to be taken by
Figure
2, 1 bit is handled during each phase cycle. Therefore, the address
APPLICATION NOTE
AN1350
1/8

Related parts for AN1350

AN1350 Summary of contents

Page 1

... The timing (listed on the right side of the figures) specifies the mini- mum time that the driver must wait before advancing to the next action. During both the address phase in Figure 1 and data phase in Figure February 2001 2, 1 bit is handled during each phase cycle. Therefore, the address AN1350 APPLICATION NOTE 1/8 ...

Page 2

... Note the value DX is the current data bit. Figure 1. Read Cycle ( AN1350 APPLICATION NOTE 2/8 ...

Page 3

... AN1350 APPLICATION NOTE The read operation timing of the address and data are showed below: 3/8 Figure 2. Read Cycle ( Figure 3. Read Operation ...

Page 4

... During both the address phase in during each phase cycle. Therefore, the address phase should be repeated times depending on the address length and the data phase should be repeated 16 times. Figure 4 and the data phase in Figure 4. Write Cycle ( AN1350 APPLICATION NOTE Figure 5, 1 bit is handled 4/8 ...

Page 5

... AN1350 APPLICATION NOTE The write operation timing of the address and data are showed below: 5/8 Figure 5. Write Cycle ( ...

Page 6

... EEPromData[DATA_LEN]; unsigned short EEPromCRC; } EEProm; main() { EEProm.EEPromCRC = CalcEEPromCrc(&EEProm.EEPromData); } unsigned short CalcEEPromCrc(unsigned char *EEPromData) { #define POLY 0x04C11DB6L unsigned long crc = 0xFFFFFFFF; unsigned long FlippedCRC = 0; unsigned char CurrentByte; unsigned Index; unsigned Bit; unsigned Msb; int i; AN1350 APPLICATION NOTE Figure 6. Write Operation 6/8 ...

Page 7

... AN1350 APPLICATION NOTE for (Index = 0; Index < DATA_LEN; Index++) { CurrentByte = EEPromData[Index]; for (Bit = 0; Bit < 8; Bit++) { Msb = (crc >> 31) & 1; crc << (Msb ^ (CurrentByte & 1)) { crc ^= POLY; crc |= 0x00000001; } CurrentByte >> for ( < 32; i++) { FlippedCRC <<= 1; Bit = crc & 1; crc >>= 1; FlippedCRC += Bit; } crc = FlippedCRC ^ 0xFFFFFFFF; ...

Page 8

... STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain 2001 STMicroelectronics - All Rights Reserved STMicroelectronics GROUP OF COMPANIES - Sweden - Switzerland - United Kingdom - U.S.A. http://www.st.com AN1350 APPLICATION NOTE 8/8 ...

Related keywords