Bus Cycle; Access Size Restrictions; Command Execution Cycle Restrictions - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

3 MEMORY MAP AND BUS CONTROL

3.1 Bus Cycle

The CPU operates using CCLK as a datum. For more information on CCLK, refer to "8.2 CPU Core Clock (CCLK)
Control."
The time from one CCLK rise-up to the next forms 1 CCLK, defined as one bus cycle. As shown in Figure 3.1, the
number of cycles required for a single bus access depends on the peripheral circuits and memory. The number of
bus accesses also varies and depends on the CPU command (access size) and device size.
∗ First 8 bits of data for 32-bit data access
The first 8 bits of 32-bit data are written to memory as 0. The first 8 bits are ignored when read from memory. In-
terrupt processing stack operation involves reading and writing 32 bits with the PSR value in the first 8 bits and
the return address in the last 24 bits.
Bus cycle calculation example
Number of bus cycles when accessing internal peripheral circuit area 2 (8-bit device, 3 cycles) from CPU using
16-bit read/write command:
3 cycles x 2 bus accesses = 6 CCLK cycles

3.1.1 Access Size Restrictions

When programming, note that the modules listed below are subject to access size restrictions.
SPI, I
2
C
The SPI and I
2
C registers can be accessed only with 16-bit read/write commands.
All other modules can be accessed using 8-bit, 16-bit, and 32-bit commands. Where possible, we recommend
matching access to device size. Reading from non-essential registers may alter the state of peripheral circuits and
cause problems.

3.1.2 Command Execution Cycle Restrictions

In the event of any of the conditions listed below, command fetch and data access will not be performed simultane-
ously, and the command fetch cycle will be extended by the amount of access cycles for the areas in which data ex-
ists.
• If a command is executed for an internal ROM area while accessing internal ROM and internal peripheral circuit
area 2 (0x5000 onward) data
• If a command is executed for an internal RAM area while accessing internal RAM area data
14
Table 3.1.1: Bus access numbers
Device size
CPU access size
8 bits
16 bits
32 bits *
16 bits
16 bits
32 bits *
32 bits
16 bits
32 bits *
EPSON
Bus access number
8 bits
8 bits
8 bits
1
2
4
1
1
2
1
1
1
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents