Flash eeprom programming algorithms, Serial eeprom connected to the powerspan, Dpsoh – Interphase Tech 4538 User Manual
Page 114

Serial EEPROM Connected to the PowerSpan
92
Interphase Corporation
FLASH EEPROM Programming Algorithms
The boot memory is a 4Mx8 AMD 29LV033 FLASH device. To reprogram the AMD
FLASH device, special programming algorithms are defined by AMD, which combine
reads and writes with special address patterns. The algorithm descriptions can be found at
the AMD web site. You can also look or start from the source provided in the BDK (file
app\c\amdflash.c
).
Serial EEPROM Connected to the PowerSpan
An I²C serial EEPROM is connected to the PowerSpan. It is used to store certain
PowerSpan register initialization values and the PCI Vital Product Data (VPD). Other
Interphase-specific data is stored there, and there is still some room for other custom data.
See “Serial EEPROM Connected to the PowerSpan” on page 27.
provides the PowerSpan Register initialization values stored in the
Serial EEPROM.
The I²C Serial EEPROM can be easily accessed from the PCI side or from the local
processor side, by using dedicated PowerSpan Register I2C_CSR.
is an example of C code read and write routines.
Example 4-6. I²C Serial EEPROM Read and Write Routines (From PCI Side)
vtrqÃpuh
Ã@r
7rSrhqÃvtrqÃpuh
Ãh
vtrqÃytГ0
Г2ГvtrqÃytГh11!#ГГ60
uvyrÃSrtSrhq"!ÃUfD!8f8TSГЙГ'0ГГÃXhvÃ68U2
SrtX
vr"!ÃUfD!8f8TSÃ0
uvyrÃ2SrtSrhq"!ÃUfD!8f8TSГЙГ'0ГГÃXhvÃ68U2
vsГЙ#Г
vsЕr
Е0
332 %0
r
ÃvtrqÃpuh
Ã0
vqÃ@r
7rX
vrÃvtrqÃpuh
ГhГvtrqÃpuh
Ãq
vtrqÃytГ0
Г2ГvtrqÃytГh11!#ГvtrqÃytГq11 %ГГ6 0
uvyr2SrtSrhq"!ÃUfD!8f8TSГЙГ'0ГГÃXhvÃ68U2
vsГЙ#Г
vsЕr
Е0
SrtX
vr"!ÃUfD!8f8TSГ0