4 MEMORY AND BUS
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
4-3
(Rev. 1.2)
4.3.3 Flash Programming
The Flash memory supports on-board programming, so it can be programmed with the ROM data by using the de-
bugger through an ICDmini. Figure 4.3.3.1 shows connection diagrams for on-board programming.
DCLK
DSIO
DST2
Flash V
CC
OUT
DCLK
DSIO
DST2
V
PP
V
DD
ICDmini
(S5U1C17001H)
S1C17
R
DBG
C
VPP
Figure 4.3.3.1 External Connection
The V
PP
pin must be left open except when programming the Flash memory. However, it is not necessary to discon-
nect the wire when using ICDmini to supply the V
PP
voltage, as ICDmini controls the power supply so that it will
be supplied during Flash programming only. Be sure to connect C
VPP
for stabilizing the voltage.
For detailed information on ROM data programming method, refer to the “(S1C17 Family C Compiler Package)
S5U1C17001C Manual.” The IC can also be shipped after being programmed in the factory with the ROM data
developed. Should you desire to ship the IC with ROM data programmed from the factory, please contact our cus-
tomer support.
Note: The Flash programming requires a V
DD
voltage within 2.4 V to 5.5 V.
4.4 RAM
The RAM can be used to execute the instruction codes copied from another memory as well as storing variables or
other data. This allows higher speed processing and lower power consumption than Flash memory.
Note: The 64 bytes at the end of the RAM is reserved as the debug RAM area. When using the debug
functions under application development, do not access this area from the application program.
This area can be used for applications of mass-produced devices that do not need debugging.
The RAM size used by the application can be configured to equal or less than the implemented size using the
MSCIRAMSZ.IRAMSZ[2:0] bits. For example, this function can be used to prevent creating programs that seek
to access areas outside the RAM area of the target model when developing an application for a model in which the
RAM size is smaller than this IC. After the limitation is applied, accessing an address outside the RAM area results
in the same operation (undefined value is read out) as when a reserved area is accessed.
4.5 Peripheral Circuit Control Registers
The control registers for the peripheral circuits are located in the 8K-byte area beginning with address 0x4000.
Table 4.5.1 shows the control register map. For details of each control register, refer to “List of Peripheral Circuit
Registers” in the appendix or “Control Registers” in each peripheral circuit chapter.
Table 4.5.1 Peripheral Circuit Control Register Map
Peripheral circuit
Address
Register name
MISC registers (MISC)
0x4000 MSCPROT
MISC System Protect Register
0x4002 MSCIRAMSZ
MISC IRAM Size Register
0x4004 MSCTTBRL
MISC Vector Table Address Low Register
0x4006 MSCTTBRH
MISC Vector Table Address High Register
0x4008 MSCPSR
MISC PSR Register
Power generator (PWG)
0x4020 PWGVD1CTL PWG V
D1
Regulator Control Register
Clock generator (CLG)
0x4040 CLGSCLK
CLG System Clock Control Register
0x4042 CLGOSC
CLG Oscillation Control Register
0x4048 CLGOSC3
CLG OSC3 Control Register
0x404c CLGINTF
CLG Interrupt Flag Register
0x404e CLGINTE
CLG Interrupt Enable Register
0x4050 CLGFOUT
CLG FOUT Control Register