General-Purpose Registers - Fujitsu MB90460 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

3.8

General-purpose Registers

The general-purpose registers are a memory block allocated in RAM at 000180
00037F
as banks, each of which consists of eight 16-bit segments.
H
The general-purpose registers can be used as general-purpose 8-bit registers (byte
registers R0 to R7), 16-bit registers (word registers RW0 to RW7) or 32-bit registers
(long-word registers RL0 to RL7).
General-purpose registers can access RAM with a short instruction at high speed.
Since general-purpose registers are blocked into register banks, protection of register
contents and division into function units can readily be performed. When a general-
purpose register is used as a long-word register, it can be used as a linear pointer that
directly accesses the entire space.
■ Configuration of a General-purpose Register
All general-purpose registers exist in RAM at 000180
register bank pointer (RP) specifies the bank that is to be used for a general-purpose register. The RP
points to the bank currently being used.
The RP determines the first address of each bank with the following formula:
Address of first general-purpose register = 000180
configuration of the general-purpose register banks in the memory space.
Figure 3.8-1 Location and Configuration of the General-purpose Register Banks in the Memory Space
Note:
The register bank pointer (RP) is initialized to 00
Built-in RAM
Register bank 31
Byte address
Register bank 30
Register bank 21
Register bank 20
Register bank 19
Register bank 2
Conversion formula [000180
Register bank 1
Register bank 0
R0 to R7:
RW0 to RW7:
RL0 to RL3:
MSB:
LSB:
to 00037F
and are configured as 32 banks. The
H
H
+ RP x 10
Figure 3.8-1 shows the location and
H
H
Byte address
+ RP x 10
H
Byte registers
Word registers
Long-word registers
Most Significant Bit
Least Significant Bit
after a reset.
H
CHAPTER 3 CPU
to
H
]
H
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents