
W81E381D/W81E381AD
Publication Release Date: January 2002
- 57 - Revision 0.52
5. SECURITY
During the on-chip MTP-ROM programming mode, the MTP-ROM can be programmed and verified
repeatedly. Until the code inside the MTP-ROM is confirmed OK, the code can be protected. The
protection of MTP-ROM and those operations on it are described below.
W81E381 has some Special Setting Registers, including the Security Register and Company/Device
ID Registers, which can’t be accessed in programming mode. Those bits of the Security Registers
can’t be changed once they have been programmed from high to low. They can only be reset through
erase-all operation. The contents of the Company ID and Device ID registers have been set in factory.
The Security Register is located at the FFFFH.
MOVC Lock:
This bit is used to restrict the accessible region of the MOVC instruction. It can prevent the program to
be downloaded using this instruction if the program needs to jump outside to get data. When this bit is
set to logic 0, a MOVC instruction in external program memory space will be able to access code in
the external memory, but it will not be able to access code in the internal memory. A MOVC instruction
in internal program memory space will always be able to access code in both internal and external
memory. If this bit is logic 1 (default), there is no restriction on the MOVC instruction.
Crystal Select
If this bit is set to logic 1, uC uses internal 24Mhz input. If this bit is set to logic 0, W81E381
could
use external crystal source.
Special Setting Registers
Company ID (#DAH)
Device ID (#62H or #61H)
Security Bits
Program Memory
Option Byte
FFFFH
0000
H
4
FFFH
Bit 7 : 1
-
> 24
MHz 0
-
> 12
MHz ( Crystal Select )
Bit 1 : 0
-
>
MOVC lock
Default 1 for each bit.
Chip
1
1
0
1
0
0
1
0
On
-
B7
B6
B5
B4
B3
B2
B1
B0
0
1
1
0
0
0
0/1
0/1