Flash Memory Operation
5-11 Flash Memory Controller
Block Write
The block write can be used to accelerate the flash write process when many
sequential bytes or words need to be programmed. The flash programming
voltage remains on for the duration of writing the 64-byte block. The
cumulative programming time tCPT must not be exceeded for any block during
a block write.
A block write cannot be initiated from within flash memory. The block write
must be initiated from RAM only. The BUSY bit remains set throughout the
duration of the block write. The WAIT bit must be checked between writing
each byte or word in the block. When WAIT is set the next byte or word of the
block can be written. When writing successive blocks, the BLKWRT bit must
be cleared after the current block is complete. BLKWRT can be set initiating
the next block write after the required flash recovery time given by tEnd. BUSY
is cleared following each block write completion indicating the next block can
be written. Figure 510 shows the block write timing.
Figure 510. Block-Write Cycle Timing
BUSY
WAIT
Generate Programming Operation Active
tBlock, 0 = 30/fFTG tBlock 1-63 = 21/fFTG
Write to Flash e.g., MOV #123h, &Flash
BLKWRT bit
tBlock, 1-63 = 21/fFTG tEnd = 6/fFTG
Cumulative Programming Time tCPT =< 4ms, VCC Current Consumption is Increased
Programming Voltage
Remove
Programming Voltage