Bus Cycle; Restrictions On Access Size; Restrictions On Instruction Execution Cycles - Epson S1C17704 Technical Manual

Cmos 16-bit single chip microcomputer
Table of Contents

Advertisement

3 MEMORY MAP, BUS CONTROL

3.1 Bus Cycle

The CPU operates with CCLK as the operating clock. For CCLK, see Section 8.2, "Controlling the CPU Core
Clock (CCLK)."
The period between a CCLK rising edge and the next rising edge is assumed to be one CCLK (= one bus cycle).
As shown in Figure 3.1, the number of cycles required for one bus access depends on the peripheral or memory
module. Furthermore, the number of bus accesses depends on the CPU instruction (access size) and device size.
∗ Handling the eight high-order bits during 32-bit accesses
During writing, the eight high-order bits are written as 0. During reading from a memory, the eight high-order
bits are ignored. However, the stack operation in an interrupt handling reads/writes 32-bit data that consists of the
PSR value as the high-order 8 bits and the return address as the low order 24 bits.
Number of bus cycles calculation example
Number of bus cycles when the CPU accesses the display RAM area (eight-bit device, set to two access cycles)
by a 16-bit read or write instruction.
2 [cycles] × 2 [bus accesses] = 4 [CCLK cycles]

3.1.1 Restrictions on Access Size

The modules shown below have a restriction on the access size. Appropriate instructions should be used in
programming.
Flash memory
The Flash memory allows only 16-bit write instructions for programming. Reading data from the Flash memory
has no such restriction.
2
SPI, I
C
2
The SPI and I
C registers allow only 16-bit read/write instructions for accessing.
Other modules can be accessed with an 8-bit, 16-bit, or 32-bit instruction. However, reading for an unnecessary
register may change the peripheral module status and it may cause a problem. Therefore, use the appropriate
instructions according to the device size.

3.1.2 Restrictions on Instruction Execution Cycles

An instruction fetch and a data access are not performed simultaneously under one of the conditions listed below.
This prolongs the instruction fetch cycle for the number of data area access cycles.
• When the S1C17704 executes the instruction stored in the Flash area and accesses data in the Flash area, display
RAM area or internal peripheral area 2 (0x5000–)
• When the S1C17704 executes the instruction stored in the internal RAM area and accesses data in the internal
RAM area
3-2
Table 3.1.1 Number of Bus Accesses
Device size
CPU access size
8 bits
16 bits
32 bits*
16 bits
16 bits
32 bits*
32 bits
16 bits
32 bits*
Number of bus accesses
8 bits
8 bits
8 bits
EPSON
1
2
4
1
1
2
1
1
1
S1C17704 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents