
W81E381D/W81E381AD
Publication Release Date: January 2002
- 56 - Revision 0.52
4.6 MTP-ROM PROGRAMMING
The context of flash in W81E381 is empty by default. At the first use, you must program the flash by
external writer device. For programming the flash by external device, the W81E381 must enter the
flash-programming mode by power on reset. The setting conditions and the timing are following.
Especially to illustrate, if you only want to erase one block (512 bytes), not to erase all (20k bytes), you
have to use the in-system-programming function to do the operation.
Mode
SFRAH<6>
(A<14>)
SFRCN<5>
(FOEN)
SFRCN<4>
(FCEN)
SFRCN<3:0>
(FCTRL<3:0>)
SFRAH, SFRAL
(A<13:0>)
SFRFD
(D<7:0>)
Standby
X
1
1
X
X
X
Read 16KB APROM
0
0
0
0000
Address in
Data out
Read 4KB LDROM
1
0
0
0000
Address in
Data out
Program 16KB APROM
0
1
0
0001
Address in
Data in
Program 4KB LDROM
1
1
0
0001
Address in
Data in
Check board
X
1
0
1000
Address in
Data in
Erase All
X
1
0
0110
X
X
Erase 16KB APROM
0
1
0
0010
X
X
Erase 512Byte
0
1
0
1111
Address in
X
Read ROM_MAP
0
0
0
0011
FFFF H
Data out
Program ROM_MAP
0
1
0
0100
FFFF H
Data in
Erase ROM_MAP
0
1
0
0101
FFFF H
X
Read Company ID
X
0
0
1011
X
DA H
Read Device ID
X
0
0
1100
X
62H / 61H
16KB program verify
0
0
0
1010
Address in
Data out
4KB program verify
1
0
0
1010
Address in
Data out
16KB erase verify
0
0
0
1001
Address in
Data out
4KB erase verify
1
0
0
1001
Address in
Data out
16KB VT mode
0
0
0
1101
Address in
Current
4kB VT mode
1
0
0
1101
Address in
Current
16KB Read-Disturb
0
0
0
1110
Address in
Data out
4KB Read-Disturb
1
0
0
1110
Address in
Data out