6
(2) Entering flash E/W enable mode
Flash E/W enable mode can be entered only when the device is operating in single-chip mode or
extended external mode. Namely, you can enter flash E/W enable mode only when the FP pin =
high and the Flash Control Register 1 (FCNT1) FENTRY bit = 1. You cannot enter flash E/W
enable mode when the device is operating in processor mode or the FP pin = low.
(3) Detecting the MOD0 and MOD1 pin levels
The MOD0 and MOD1 pin levels (high or low) can be verified using the P8 Data Register (Port
Data Register, H'00800 0708) MOD0DT and MOD1DT bits.
P8 Data Register (P8DATA)
D0
MOD0DT MOD1DT
D
Bit Name
0
MOD0DT
(MOD0 data)
1
MOD1DT
(MOD1 data)
2
P82DT
(Port P82 data)
3
P83DT
(Port P83 data)
4
P84DT
(Port P84 data)
5
P85DT
(Port P85 data)
6
P86DT
(Port P86 data)
7
P87DT
(Port P87 data)
1
2
3
P82DT
P83DT
Function
0 : MOD0 pin = low
1 : MOD0 pin = high
0 : MOD1 pin = low
1 : MOD1 pin = high
Depending on how the Port Direction Register is set
• When direction bit = 0 (input mode)
• When direction bit = 1 (output mode)
6-23
6.5 Programming of the Internal Flash Memory
4
5
P84DT
P85DT
0: Port input pin = low
1: Port input pin = high
0: Port output latch = low
1: Port output latch = high
INTERNAL MEMORY
<Address: H'0080 0708>
6
D7
P86DT
P87DT
<When reset : Indeterminate>
R
Ver.0.10
W
—
—