Chapter 9: Using User Flash Memory in MAX II Devices
Software Support for UFM Block
9–29
4. An 8-bit data is transmitted through
SI.
5.
nCS
is 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
Instruction
SI
MSB
03
H
MSB
High Impendance
SO
8-bit
Data Out 1
MSB
8-bit
Data Out 2
MSB
8-bit
Instruction
shows the
WRITE
operation 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
8-bit
Instruction
SI
MSB
02
H
8-bit
Address
8-bit
Data In
MSB
SO
High Impendance
SECTOR-ERASE
SECTOR-ERASE
is the instruction of erasing one sector of the UFM block. Each sector
contains 256 words.
WEN
bit and the sector must not be protected for
SE
operation to
be successful.
nCS
must be driven high before the instruction is executed internally.
You may poll the
nRDY
bit in the software status register for the completion of the
internal self-timed
SECTOR-ERASE
cycle. For SPI Extended mode, the
SE
operation is
performed in the following sequence, as shown in
1.
nCS
is pulled low.
2. Opcode
00100000
is 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.