English
Language : 

W79E217A Datasheet, PDF (33/207 Pages) Winbond – 8-bit Microcontroller
Preliminary W79E217A Data Sheet
Continued
BIT NAME
6
EWR
5 EnNVM
4~1
-
0
NVMF
FUNCTION
Set this bit is write data to NVM data memory by NVMADDRH and NVMADDRL
to decode NVM data memory. If finished, NVMF flag will be set to “1”, and then
this bit will be cleared. If NVMF flag is set, the erase and write NVM are invalid.
To enable read NVM data memory area, refer as below table.
0: To disable the MOVX instruction to read NVM data memory.
1: To enable the MOVX instruction to read NVM data memory, the External
RAM or AUX-RAM will be disabled.
Reserved.
NVM data memory erases or writes finished flag.
If NVM data memory is finished by erase or write, it will be set to “1” by
hardware and clear by software. And it will be interrupted when NVM
erase/write interrupt is enabled.
ISP CONTROL REGISTER
Bit:
7
6
5
4
3
2
1
0
SWRST/
HWB
-
LD/AP
-
-
-
LDSEL ENP
Mnemonic: CHPCON
Address: 9Fh
BIT NAME
FUNCTION
Write access to this bit is different from read access.
Write this bit to 1 to force the microcontroller to reset to the initial condition, just
7
W:SWRST
R:HWB
like power-on reset. This action re-boots the microcontroller and starts normal
operation. This bit will be cleared during the reset.
Read this bit to determine whether or not a hardware reboot is in progress. If
CPU is rebooted by P3.6 & P3.7 or P4.3, this bit is set to 1 after the hardware
reboot.
6-
Reserved.
5
LD/AP
0: CPU is executing AP Flash EPROM
(read-only) 1: CPU is executing LD Flash EPROM
4-2 -
Reserved.
Loader Program Location Selection. This bit should be set before entering ISP
mode.
1
LDSEL
0: The executing program is in the 64-KB AP Flash EPROM. The 4-KB LD
(write-only) Flash EPROM is the destination for re-programming.
1: The executing program is in the 4-KB memory bank. The 64-KB AP Flash
EPROM is the destination for re-programming.
FLASH EPROM Programming Enable.
0 ENP
1: Enable in-system programming mode. In this mode, erase, program and read
operations are achieved.
0: Disable in-system programming mode. The on-chip flash memory is read-only.
The way to enter ISP mode is to set ENP to 1 and write LDSEL properly then force CPU in IDLE
mode, after IDLE mode is released CPU will restart from AP or LD ROM according the value of
LDSEL.
- 33 -
Publication Release Date: December 14, 2007
Revision A3.0