3 CPU AND DEBUGGER
3-4
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
3.3.5 Flash Security Function
This IC provides a security function to protect the internal Flash memory from unauthorized reading and tampering
by using the debugger through ICDmini. Figure 3.3.5.1 shows a Flash security function setting flow.
Development environment
GNU17 IDE
Factory shipment inspection
process
User
EPSON
file.PA
Mask data file
Specify the unprotecting password.
(6–12 alphanumeric characters (A–Z, a–z, 0–9))
ROM data and password are recorded.
Programming with
ROM data and password
IC with protected Flash
Shipment
Submission
Figure 3.3.5.1 Shipment of IC with ROM Data Programmed and Flash Security Function Setting Flow
The following shows the status of the IC with protected Flash:
• The Flash memory data is undefined if it is read from the debugger.
• An error occurs if an attempt is made to program the Flash memory through ICDmini.
However, the Flash security function can be disabled by entering the unprotecting password predefined to GNU17
IDE (the security function will take effect again after a reset). For setting the password, refer to the “(S1C17 Fam-
ily C Compiler Package) S5U1C17001C Manual.”
Note: Disable the Flash security function before debugging an IC with protected Flash via ICDmini. The
debugging functions may not run normally if the Flash security function is enabled.
3.4 Control Register
MISC PSR Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
MSCPSR
15–8 –
0x00
–
R
–
7–5 PSRIL[2:0]
0x0
H0
R
4
PSRIE
0
H0
R
3
PSRC
0
H0
R
2
PSRV
0
H0
R
1
PSRZ
0
H0
R
0
PSRN
0
H0
R
Bits 15–8 Reserved
Bits 7–5
PSRIL[2:0]
The value (0 to 7) of the PSR IL[2:0] (interrupt level) bits can be read out with these bits.
Bit 4
PSRIE
The value (0 or 1) of the PSR IE (interrupt enable) bit can be read out with this bit.
Bit 3
PSRC
The value (0 or 1) of the PSR C (carry) flag can be read out with this bit.
Bit 2
PSRV
The value (0 or 1) of the PSR V (overflow) flag can be read out with this bit.
Bit 1
PSRZ
The value (0 or 1) of the PSR Z (zero) flag can be read out with this bit.
Bit 0
PSRN
The value (0 or 1) of the PSR N (negative) flag can be read out with this bit.