28F640L30, 28F128L30, 28F256L30
Appendix A Write State Machine (WSM)
Figure 29 shows the command state transitions (Next State Table) based on incoming commands. Only one
partition can be actively programming or erasing at a time. Each partition stays in its last read state (Read
Array, Read Device ID, CFI Query or Read Status Register) until a new command changes it. The next WSM
state does not depend on the partition’s output state.
Figure 29. Write State Machine — Next State Table (Sheet 1 of 6)
Chip
Command Input to Chip and resulting
Next State
Buffered BE Conf irm,
Write to
Buffered
Program Setup (4,5)
(BP)
Lock,
Unlock,
Word
Enhanced
Factory
P/E
Resume,
ULB,
BP / Pr g /
Er as e
Suspend
Clear
Read
Erase
Read
Status
Read
Program
(4,5)
Status
Register (6)
(3)
Current Chip
State (8)
Array
ID/Query Lock-dow n,
CR setup (5)
Pgm Setup
(4)
Conf irm (9)
(FFH)
(10H/40H)
(E8H)
(20H)
(80H)
(D0H)
(B0H)
(70H)
(50H)
(90H, 98H)
(60H)
Program
Setup
Er as e
Setup
Lock/CR
Setup
Ready
Ready
BP Setup
BEFP Setup
Ready
Ready
(Unlock
Block)
Lock/CR Setup
Ready (Lock Error [Botch])
Ready (Lock Error [Botch])
Setup
OTP
OTP Busy
Busy
Word Program Busy
Word
Setup
Program Busy
Word Pr ogr am Busy
Busy
Word
Program
Suspend
Program
Word
Pr ogr am
Busy
Word Program Suspend
Word Pr ogr am Suspend
Suspend
Setup
BP Load 1 {Give word count load [N-1]}; If N=0 (word count =1) go to BP Conf irm; Els e (Nnot = 0) go to BP Load 2
BP Load 2 (Give data load)
BP Load 1
BP Load 2
BP Conf irm w hen count=0, ELSE BP load 2 (note: BP w ill Botch at this point if any block address is different fromthe first address)
BP
BP
Ready (Error [Botch])
BP Busy
BP Busy
Ready (Error [Botch])
BP Busy
Conf irm
BP
Suspend
BP Busy
BP
Suspend
BP Suspend
BP Suspend
BP Busy
Setup
Ready (Error [Botch])
Er as e Busy
Erase Busy
Ready (Error [Botch])
Er as e Busy
Erase
Busy
Suspend
Er as e
Word
Program BP Setup in
Lock/CR
Setup in
Erase
Erase
Suspend
Erase Suspend
Erase Suspend
Suspend
Setup
Setup in
Erase
Er as e
Erase Busy
Suspend
Suspend
Suspend
Word Program Busy in Erase Suspend
Word
Program
Word Program Busy in Erase Suspend
Word Program Busy in Erase Suspend Busy
Word Program Suspend in Erase Suspend
Busy
Word
Pr ogr am in
Erase
Suspend
in Er as e
Suspend
Word
Pr ogr am
Busy in
Er as e
Suspend
Word Pr ogr am Suspend in Er as e Suspend
Suspend
Suspend
Datasheet
67