Chapter 9: Using User Flash Memory in MAX II Devices
9–29
Software Support for UFM Block
4. An 8-bit data is transmitted through SI.
5. nCSis pulled back to high to indicate the end of transmission.
Figure 9–28. WRITE Operation Sequence for Extended Mode
nCS
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 23
SCK
8-bit
8-bit
Instruction
Instruction
03H
SI
MSB
MSB
High Impendance
SO
8-bit Data Out 1
MSB
8-bit Data Out 2
MSB
Figure 9–29 shows the WRITEoperation sequence for Base mode.
Figure 9–29. WRITE Operation Sequence for Base Mode
nCS
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCK
SI
8-bit
Instruction
8-bit
Address
02H
8-bit Data In
MSB
MSB
High Impendance
SO
SECTOR-ERASE
SECTOR-ERASEis the instruction of erasing one sector of the UFM block. Each sector
contains 256 words. WENbit and the sector must not be protected for SEoperation 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 SECTOR-ERASEcycle. For SPI Extended mode, the SEoperation is
performed in the following sequence, as shown in Figure 9–30:
1. nCSis pulled low.
2. Opcode 00100000is transmitted into the interface.
3. The 16-bit address is sent. The eighth bit (the first seven bits will be discarded) of
the address indicates which sector is erased; a 0 means sector 0 (UFM0) is erased,
and a 1 means sector 1 (UFM1) is erased.
© October 2008 Altera Corporation
MAX II Device Handbook