M28F410, M28F420
Figure 11. Program Flow-chart and Pseudo Code
Start
Write 40h
Command
Write Address
& Data
Read Status
Register
NO
b7 = 1
YES
NO
b3 = 0
YES
NO
b4 = 0
YES
End
VPP Low
Error (1, 2)
Program
Error (1, 2)
PG instruction:
– write 40h command
– write Address & Data
(memory enters read status
state after the PG instruction)
do:
– read status register
(E or G must be toggled)
while b7 = 1
If b3 = 0, VPP low error:
– error handler
If b4 = 0, Program error:
– error handler
AI01278
Notes: 1. Status check of b3 (VPP Low) and b4 (Program Error) can be made after each byte/word programming or after a sequence.
2. If a VPP Low or Program Erase is found, the Status Register must be cleared (CLRS instruction) before further P/E.C. operations.
30/38