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

Page 114

Advertising
background image

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.

Table 2-1 on page 60

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.

Example 4-6

is an example of C code read and write routines.

Example 4-6. I²C Serial EEPROM Read and Write Routines (From PCI Side)

ˆ†vtrqÃpuh…Ã@rƒ…‚€7’‡rSrhqȁ†vtrqÃpuh…Ãh
”

ˆ†vtrqÃy‚tГ‰0
‰Г2Гˆ†vtrqÃy‚tГh11!#ÕÑ60
uvyrÃSrtSrhq"!ÃUfD!8f8TSГЙГ‘'0ГГÃXhv‡Ã68U2
SrtX…v‡r"!ÃUfD!8f8TSÉ0
uvyrÉ2SrtSrhq"!ÃUfD!8f8TSГЙГ‘'0ГГÃXhv‡Ã68U2
vsГ‰Й‘#Гƒ…v‡sЕr……‚…Е0
‰332 %0
…r‡ˆ…Ãˆ†vtrqÃpuh…É0

–

‰‚vqÃ@rƒ…‚€7’‡rX…v‡rȁ†vtrqÃpuh…ГhГˆ†vtrqÃpuh…Ãq
”

ˆ†vtrqÃy‚tГ‰†0
‰Г2Гˆ†vtrqÃy‚tГh11!#Г•ˆ†vtrqÃy‚tГq11 %ÕÑ6 0
uvyr†2SrtSrhq"!ÃUfD!8f8TSГЙГ‘'0ГГÃXhv‡Ã68U2
vsГ†Й‘#Гƒ…v‡sЕr……‚…Е0
SrtX…v‡r"!ÃUfD!8f8TSГ‰0

–

Advertising