3 MeMORY MaP
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
3-5
Flash Protect Bits (S1C17622)
address
Bit
Function
Setting
init. R/W
Remarks
0x27ffc
(16 bits)
D15–4 reserved
–
–
–
D3
Flash write-protect bit for 0x14000–0x17fff
1 Writable
0 Protected
1 R/W
D2
Flash write-protect bit for 0x10000–0x13fff
1 Writable
0 Protected
1 R/W
D1
Flash write-protect bit for 0xc000–0xffff
1 Writable
0 Protected
1 R/W
D0
Flash write-protect bit for 0x8000–0xbfff
1 Writable
0 Protected
1 R/W
address
Bit
Function
Setting
init. R/W
Remarks
0x27ffe
(16 bits)
D15–4 reserved
–
–
–
D3
Flash data-read-protect bit for 0x14000–0x17fff 1 Readable
0 Protected
1 R/W
D2
Flash data-read-protect bit for 0x10000–0x13fff 1 Readable
0 Protected
1 R/W
D1
Flash data-read-protect bit for 0xc000–0xffff
1 Readable
0 Protected
1 R/W
D0
reserved
1
1 R/W Always set to 1.
Flash Protect Bits (S1C17602)
address
Bit
Function
Setting
init. R/W
Remarks
0x17ffc
(16 bits)
D15–4 reserved
–
–
–
D3
Flash write-protect bit for 0x14000–0x17fff
1 Writable
0 Protected
1 R/W
D2
Flash write-protect bit for 0x10000–0x13fff
1 Writable
0 Protected
1 R/W
D1
Flash write-protect bit for 0xc000–0xffff
1 Writable
0 Protected
1 R/W
D0
Flash write-protect bit for 0x8000–0xbfff
1 Writable
0 Protected
1 R/W
address
Bit
Function
Setting
init. R/W
Remarks
0x17ffe
(16 bits)
D15–4 reserved
–
–
–
D3
Flash data-read-protect bit for 0x14000–0x17fff 1 Readable
0 Protected
1 R/W
D2
Flash data-read-protect bit for 0x10000–0x13fff 1 Readable
0 Protected
1 R/W
D1
Flash data-read-protect bit for 0xc000–0xffff
1 Readable
0 Protected
1 R/W
D0
reserved
1
1 R/W Always set to 1.
Flash Protect Bits (S1C17621)
address
Bit
Function
Setting
init. R/W
Remarks
0x17ffc
(16 bits)
D15–2 reserved
–
–
–
D1
Flash write-protect bit for 0xc000–0xffff
1 Writable
0 Protected
1 R/W
D0
Flash write-protect bit for 0x8000–0xbfff
1 Writable
0 Protected
1 R/W
address
Bit
Function
Setting
init. R/W
Remarks
0x17ffe
(16 bits)
D15–2 reserved
–
–
–
D1
Flash data-read-protect bit for 0xc000–0xffff
1 Readable
0 Protected
1 R/W
D0
reserved
1
1 R/W Always set to 1.
notes: • Be sure not to locate the area with data-read protection into the .data and .rodata sections.
• Be sure to set D0 of address 0x27ffe (S1C17624/604/622) or 0x17ffe (S1C17602/621) to 1. If
it is set to 0, the program cannot be booted.
access Control for the Flash Controller
3.2.4
The S1C17624/604/622/602/621 on-chip Flash memory is accessed via the exclusive Flash controller. A MISC reg-
ister is used to set the access condition for the Flash controller.
Setting number of read access cycles for the Flash controller
In order to read data from the Flash memory properly, set the appropriate number of read access cycles accord-
ing to the CCLK frequency using the FLCYC[2:0]/MISC_FL register.
FlaShC Control Register (MiSC_Fl)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
FlaShC
Control Register
(MiSC_Fl)
0x5320
(16 bits)
D15–10 –
reserved
–
–
–
0 when being read.
D9–8 –
reserved
–
0x3
–
D7–3 –
reserved
–
–
–
0 when being read.
D2–0 FlCYC[2:0] FLASHC read access cycle
FLCYC[2:0]
Read cycle
0x3 R/W
0x7–0x5
0x4
0x3
0x2
0x1
0x0
reserved
1 cycle
5 cycles
4 cycles
3 cycles
2 cycles