4 MEMORY AND BUS
4-2
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
2.1 Number of Bus Access Cycles
Table 4.
Device size
Access size
Number of bus access
cycles
8 bits
8 bits
1
16 bits
2
32 bits
4
16 bits
8 bits
1
16 bits
1
32 bits
2
32 bits
8 bits
1
16 bits
1
32 bits
1
note
: When data is transferred to a memory in 32-bit access, the eight high-order bits are written to
the memory as 0x00 since the bit width of the S1C17 core general-purpose registers is 24 bits.
Conversely when sending from a memory to a register, the eight high-order bits are ignored.
The CPU performs 32-bit access for stack operations in an interrupt handling. In this case, the
CPU read/write 32-bit data that consists of the PSR value as the eight high-order bits and the
return address as the 24 low-order bits. For more information, refer to the “S1C17 Family S1C17
Core Manual.”
The CPU adopts Harvard architecture that allows simultaneous processing of an instruction fetch and a data ac-
cess. However, they are not performed simultaneously under one of the conditions listed below. This prolongs the
instruction fetch cycle for the number of data area bus cycles.
• When the CPU executes an instruction stored in the Flash area and accesses data in the Flash area
• When the CPU executes an instruction stored in the internal RAM area and accesses data in the internal RAM
area
Flash Memory
4.3
The Flash memory is used to store application programs and data. Address 0x8000 in the Flash area is defined as
the vector table base address by default, therefore a vector table must be located beginning from this address. For
more information on the vector table, refer to “Vector Table” in the “Interrupt Controller” chapter.
Flash Bus Access Cycle Setting
4.3.1
There is a limit of frequency to access the Flash memory with no wait cycle, therefore, the number of bus access
cycles for reading must be changed according to the system clock frequency. The number of bus access cycles for
reading can be configured using the FLASHCWAIT.RDWAIT[1:0] bits. Select a setting for higher frequency than
the system clock.
Flash Programming
4.3.2
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.2.1 shows a connection diagram for on-board programming.
DCLK
DSIO
DST2
DCLK
DSIO
DST2
V
DD
ICDmini
(S5U1C17001H)
S1C17
R
DBG
3.2.1 External Connection
Figure 4.
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.