Chapter 4: Accessing the 4538 on the PCI Side

`

Example 4-5. FLASH Read and Write Routines (From PCI Side)

XQVLJQHG￿FKDU￿)/$6+5HDG￿￿XQVLJQHG￿ORQJ￿DGGU￿

^

XQVLJQHG￿FKDU￿GDWD￿￿￿SWU￿

￿￿￿￿￿￿￿￿0RYH￿WKH￿0HPRU\￿ZLQGRZ￿RYHU￿WKH￿)/$6+￿DUHD￿￿￿￿￿￿￿￿

5HJ:ULWH￿￿￿￿7B3￿B7,￿B$''5￿￿)/$6+￿%DVH$GGU￿￿

￿￿￿￿￿￿￿￿3XW￿DGGUHVV￿ELW￿$￿￿￿￿￿￿DW￿DGGUHVV￿ELWV￿$￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

DGGU￿ ￿￿￿DGGU￿￿￿￿￿￿￿￿￿￿￿_￿￿DGGU￿￿￿￿[￿))))￿￿￿

￿￿￿￿￿￿￿￿'R￿WKH￿UHDG￿￿￿￿￿￿￿￿￿￿

SWU￿￿ ￿￿XQVLJQHG￿FKDU￿￿￿:LQ%DVH￿DGGU￿￿

GDWD￿ ￿￿SWU￿

￿￿￿￿￿￿￿￿0RYH￿EDFN￿0HPRU\￿ZLQGRZ￿DW￿￿￿￿￿￿￿￿￿￿

5HJ:ULWH￿￿￿￿7B3￿B7,￿B$''5￿￿￿￿￿

UHWXUQ￿GDWD￿

`

YRLG￿)/$6+:ULWH￿￿XQVLJQHG￿ORQJ￿DGGU￿￿XQVLJQHG￿FKDU￿GDWD￿

^

XQVLJQHG￿FKDU￿￿SWU￿

￿￿￿￿￿￿￿￿0RYH￿WKH￿0HPRU\￿ZLQGRZ￿RYHU￿WKH￿)/$6+￿DUHD￿￿￿￿￿￿￿￿

5HJ:ULWH￿￿￿￿7B3￿B7,￿B$''5￿￿)/$6+￿%DVH$GGU￿￿

￿￿￿￿￿￿￿￿3XW￿DGGUHVV￿ELW￿$￿￿￿￿￿￿DW￿DGGUHVV￿ELWV￿$￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

DGGU￿ ￿￿￿DGGU￿￿￿￿￿￿￿￿￿￿￿_￿￿DGGU￿￿￿￿[￿))))￿￿￿

￿￿￿￿￿￿￿￿'R￿WKH￿ZULWH￿￿￿￿￿￿￿￿￿￿

SWU￿￿ ￿￿XQVLJQHG￿FKDU￿￿￿:LQ%DVH￿DGGU￿￿ ￿SWU￿ ￿GDWD￿

￿￿￿￿￿￿￿￿0RYH￿EDFN￿0HPRU\￿ZLQGRZ￿DW￿￿￿￿￿￿￿￿￿￿

5HJ:ULWH￿￿￿￿7B3￿B7,￿B$''5￿￿￿￿￿

`

4538 Hardware Reference Manual

91