|
M50FW016 Datasheet, PDF (39/45 Pages) STMicroelectronics – 16 Mbit 2Mb x8, Uniform Block 3V Supply Firmware Hub Flash Memory | |||
|
◁ |
M50FW016
Figure 18. Quadruple Byte Program Flowchart and Pseudo Code (FWH Interface Only)
Start
Write 30h
Write Start Address
and 4 Data Bytes (3)
Read Status
Register
NO
Suspend
YES
NO
b7 = 1
YES
Suspend
Loop
NO
b3 = 0
VPP Invalid
Error (1, 2)
YES
NO
b4 = 0
Program
Error (1, 2)
YES
b1 = 0
NO
Program to Protected
Block Error (1, 2)
YES
End
Quadruple Byte Program command:
â write 30h
â write Start Address and 4 Data Bytes (3)
(memory enters read status state after
the Quadruple Byte Program command)
do:
â read Status Register if Program/Erase
Suspend command given execute
suspend program loop
while b7 = 1
If b3 = 1, VPP invalid error:
â error handler
If b4 = 1, Program error:
â error handler
If b1 = 1, Program to protected block error:
â error handler
AI05736B
Note: 1. A Status check of b3 (VPP invalid) and b4 (Program Error) can be made after each Program operation by following the correct com-
mand sequence.
2. If an error is found, the Status Register must be cleared before further Program/Erase Controller operations.
3. A1 and A0 are treated as Donât Care. Starting at the Start Address, the first data byte is programmed at the address that has A1-
A0 at 00, the second at the address that has A1-A0 at 01, the third at the address that has A1-A0 at 10, and the fourth at the address
that has A1-A0 at 11.
39/45
|
▷ |