Flash Security Function; Control Register; Misc Psr Register - Epson S1C17W22 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

3 CPU AND DEBUGGER

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.
Factory shipment inspection
Programming with
ROM data and password
IC with protected Flash
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
MSCPSR
15–8 –
7–5 PSRIL[2:0]
4
3
2
1
0
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.
3-4
EPSON
Submission
process
Shipment
Bit name
Initial
0x00
0x0
PSRIE
0
PSRC
0
PSRV
0
PSRZ
0
PSRN
0
Seiko Epson Corporation
User
Specify the unprotecting password.
Development environment
(6–12 alphanumeric characters (A–Z, a–z, 0–9))
GNU17 IDE
ROM data and password are recorded.
file.PA
Mask data file
Reset
R/W
R
H0
R
H0
R
H0
R
H0
R
H0
R
H0
R
S1C17W22/W23 TECHNICAL MANUAL
Remarks
(Rev. 1.3)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17w23

Table of Contents