
W78E516B
- 8 -
SFRCN (C7)
BIT
7
6
NAME
-
WFWIN On-chip MTP-ROM bank select for in-system programming.
= 0: 64K bytes MTP-ROM bank is selected as destination for re-programming.
= 1: 4K bytes MTP-ROM bank is selected as destination for re-programming.
OEN
MTP-ROM output enable.
CEN
MTP-ROM chip enable.
3, 2, 1, 0 CTRL[3:0] The flash control signals
FUNCTION
Reserve.
5
4
MODE
WFWIN
0
0
0
1
1
1
CTRL<3:0>
0010
0001
0000
0010
0001
0000
OEN
1
1
0
1
1
0
CEN
0
0
0
0
0
0
SFRAH, SFRAL
X
Address in
Address in
X
Address in
Address in
SFRFD
X
Data in
Data out
X
Data in
Data out
Erase 64KB APROM
Program 64KB APROM
Read 64KB APROM
Erase 4KB LDROM
Program 4KB LDROM
Read 4KB LDROM
In-System Programming Control Register (CHPCON)
CHPCON (BFH)
BIT
7
NAME
SWRESET
(F04KMODE)
FUNCTION
When this bit is set to 1, and both FBOOTSL and FPROGEN are set to 1. It
will enforce microcontroller reset to initial condition just like power on reset.
This action will re-boot the microcontroller and start to normal operation. To
read this bit in logic-1 can determine that the F04KBOOT mode is running.
Reserve.
Reserve.
ENAUXRAM
1: Enable on-chip AUX-RAM.
0: Disable the on-chip AUX-RAM
0
Must set to 0.
0
Must set to 0.
FBOOTSL The Program Location Select.
0: The Loader Program locates at the 64 KB APROM. 4KB LDROM is
destination for re-programming.
1: The Loader Program locates at the 4 KB memory bank. 64KB APROM is
destination for re-programming.
6
5
4
-
-
3
2
1