AN1350 STMicroelectronics, AN1350 Datasheet
AN1350
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 ...