TPCE636 User Manual Issue 1.0.2
Page 45 of 104
7.4.8 Reading User FPGA SPI Configuration Flash
To read the User FPGA SPI Configuration Flash the
User FPGA Configuration Mode
must be set to
Master Serial / SPI
and the ISP Mode must be enabled.
-
Enable the ISP Mode in the ISP Mode Enable Register.
-
Assure that User FPGA Configuration Mode is set to SPI Flash. If the
FPGA is not configured or if it is possible that the FPGA accesses the SPI
flash during BCC access set FP_RE_CFG = 0b1. Link must be set to
disable previously!
-
Set the reading start address and write instruction in the ISP Configuration
Register.
-
Start the Instruction with ISP Command Register
-
Wait on ISP SPI Instruction Done or ISP SPI Page Data Done for next
write instruction.
-
Read one page of SPI Data from In Circuit Programming Data Space and
write to Data file
-
Process could be repeated until all needed data is written to the Data file.
-
After completion of the reading process, the ISP Mode bit must be cleared
to set configuration path back to User FPGA.
Set
FP_CFG_MD
= 1
Set
FP_RE_CFG
= 1
Set
ISP_ENA
= 1
Write SPI Address to
ISP_SPI_ADD
Write SPI Instruction to
ISP_SPI_INS
Read ISP Status
Register
Inst. busy ?
yes
no
Next Page ?
yes
no
Set
FP_CFG_MD
= 0
Set
ISP_ENA
= 0
Start Instruction with
ISP_SPI_INS_CMD
= 1
Read SPI Data from
ISP Data Space
and Write to Data file