W78E516B
SFRCN (C7)
BIT
7
NAME
FUNCTION
-
Reserve.
6
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.
5
4
OEN
CEN
MTP-ROM output enable.
MTP-ROM chip enable.
3, 2, 1, 0 CTRL[3:0] The flash control signals
MODE
WFWIN
CTRL<3:0>
0010
OEN CEN SFRAH, SFRAL
SFRFD
X
Erase 64KB APROM
Program 64KB APROM
Read 64KB APROM
Erase 4KB LDROM
Program 4KB LDROM
Read 4KB LDROM
0
0
0
1
1
1
1
1
0
1
1
0
0
0
0
0
0
0
X
0001
Address in
Address in
X
Data in
Data out
X
0000
0010
0001
Address in
Address in
Data in
Data out
0000
In-System Programming Control Register (CHPCON)
CHPCON (BFH)
BIT
NAME
FUNCTION
7
SWRESET 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.
(F04KMODE)
6
5
4
-
Reserve.
-
Reserve.
ENAUXRAM
1: Enable on-chip AUX-RAM.
0: Disable the on-chip AUX-RAM
Must set to 0.
3
2
1
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.
- 8 -