7–30
Chapter 7: User Flash Memory in MAX V Devices
Software Support for UFM Block
UFM-ERASE
The UFM-ERASE(CE)instruction erases both UFM sector 0 and sector 1 for SPI
Extended Mode. While for SPI Base mode, the CEinstruction has the same
functionality as the SECTOR-ERASE(SE)instruction, which erases UFM sector 0 only.
WENbit and the UFM sectors must not be protected for CEoperation to be successful.
nCSmust be driven high before the instruction is executed internally. You may poll the
nRDYbit in the software status register for the completion of the internal self-timed CE
cycle. For both SPI Extended mode and Base mode, the CEoperation is performed in
the following sequence as shown in Figure 7–27:
1. nCSis pulled low.
2. Opcode 01100000is transmitted into the interface.
3. nCSis pulled back to high.
Figure 7–27 shows the UFM-ERASEoperation sequence.
Figure 7–27. UFM-ERASE Operation Sequence
nCS
0
1
2
3
4
5 6 7
SCK
SI
8-bit
Instruction
60H
MSB
High Impedance
SO
MAX V Device Handbook
January 2011 Altera Corporation