3 MEMORY MAP, BUS CONTROL
S1C17704 TECHNICAL MANUAL
EPSON
3-3
3.2 Flash Area
3.2.1 Internal Flash Memory
The 64K-byte area from address 0x8000 to address 0x17fff contains a Flash memory (4K bytes
×
16 sectors) for
storing application programs and data. Address 0x8000 is defined as the vector table base address, therefore a
vector table (see Section 2.4, “Vector Table”) must be placed from the beginning of the area. The Flash memory
can be read in 1 to 5 cycles.
3.2.2 Flash Programming
The S1C17704 supports on-board programming of the Flash memory, it makes it possible to program the Flash
memory with the application programs/data by using the debugger through the ICD Mini. Furthermore, the
S1C17704 supports self-programming by the application program stored in the Flash memory. The Flash memory
can be programmed in 16-bit units. For programming of the Flash memory, see Appendix B, “Flash Programming.”
The Flash memory supports two erase methods, chip erase and sector erase. The table below lists the
correspondence between addresses and sectors required for sector erase.
Note
: The debugger supports chip erase only and does not allow erasing in sector units.
Table 3.2.2.1 Correspondence Between Memory Address and Flash Sector
S1C17704 address
Flash sector number
S1C17704 address
Flash sector number
0x0f000–0x0ffff
7
0x17000–0x17fff
15
0x0e000–0x0efff
6
0x16000–0x16fff
14
0x0d000–0x0dfff
5
0x15000–0x15fff
13
0x0c000–0x0cfff
4
0x14000–0x14fff
12
0x0b000–0x0bfff
3
0x13000–0x13fff
11
0x0a000–0x0afff
2
0x12000–0x12fff
10
0x09000–0x09fff
1
0x11000–0x11fff
9
0x08000–0x08fff
0
0x10000–0x10fff
8
Note
: The 32 bits (0x17ffc–0x17fff) at the end of Sector 15 are reserved for the system as the protect
bits. Do not program this area with data other than protect settings.
3.2.3 Protect Bits
In order to protect the memory contents, the Flash memory provides two protection features, write protection and
data read protection, that can be configured for every 16K-byte areas. The write protection disables writing data
to the configured area. The data-read protection disables reading data from the configured area (the read value is
always 0x0000). However, it does not disable the instruction fetch operation by the CPU.
The Flash memory provides the protect bits listed below. Program the protect bit corresponding to the area to be
protected to 0.
0x17ffc–0x17ffe: Flash Protect Bits
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 0x0c000–0x0ffff
1 Writable
0 Protected
1
R/W
D0
Flash write-protect bit for 0x08000–0x0bfff
1 Writable
0 Protected
1
R/W
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 0x0c000–0x0ffff
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 0x17ffe to 1. If it is set to 0, the program cannot be booted.
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...