English
Language : 

W79E217A Datasheet, PDF (188/207 Pages) Winbond – 8-bit Microcontroller
Preliminary W79E217A Data Sheet
24. OPTION BITS
This device has two CONFIG bits (CONFIG0, CONFIG1) that must be define at power up and can not
be set after the program start of execution. Those features are configured through the use of two flash
EPROM bytes, and the flash EPROM can be programmed and verified repeatedly. Until the code
inside the Flash EPROM is confirmed OK, the code can be protected. The protection of flash EPROM
and those operations of the configuration bits are described below.
24.1 Config0
BIT
DESCRIPTION
B0 =0: Lock data out
B1 =0: MOVC Inhibited
B2 Reserved
B3 Reserved
B4
=1: Disable H/W reboot by P3.6 and P3.7
=0: Enable H/W reboot by P3.6 and P3.7
B5
=1: Disable H/W reboot by P4.3
=0: Enable H/W reboot by P4.3
B6 Reserved
B7
=1: Crystal > 24MHz
=0: Crystal < 24MHz
Table 24-1: Config0 Option Bits
B0: Lock bit
This bit is used to protect the customer's program code in the W79E217. After the programmer
finishes the programming and verifies sequence B0 can be cleared to logic 0 to protect code from
reading by any access path. Once this bit is set to logic 0, both the Flash EPROM data and Special
Setting Registers can not be accessed again.
B1: MOVC Inhibit
This bit is used to restrict the accessible region of the MOVC instruction. It can prevent the MOVC
instruction in external program memory from reading the internal program code. When this bit is set to
logic 0, a MOVC instruction in external program memory space will be able to access code only in the
external memory, not in the internal memory. A MOVC instruction in internal program memory space
will always be able to access the ROM data in both internal and external memory. If this bit is logic 1,
there are no restrictions on the MOVC instruction.
B4: H/W Reboot with P3.6 and P3.7
If this bit is set to logic 0, enable to reboot 4k LD Flash mode while RST =H, P3.6 = L and P3.7 = L
state. CPU will start from LD Flash to update the user’s program.
B5: H/W Reboot with P4.3
If this bit is set to logic 0, enable to reboot 4k LD Flash mode while RST =H and P4.3 = L state. CPU
will start from LD Flash to update the user’s program
B7: Select clock frequency.
If clock frequency is over 24MHz, then set this bit is H. If clock frequency is less than 24MHz, then
clear this bit.
- 188 -
Publication Release Date: December 14, 2007
Revision A3.0