32
CHAPTER 3 CPU
3.3
General-Purpose Registers
The general-purpose registers are memory blocks. Eight 8-bits comprise a bank.
The register bank pointer (RP) specifies a register bank.
Although up to 32 banks can be used, some banks can be expanded onto external RAM
if the capacity of internal RAM is not sufficient for all 32 banks.
The general-purpose registers are effective for processing interrupts, vector calls, or
subroutine calls.
■
Configuration of the General-purpose Registers
•
Each general-purpose register consists of 8 bits. The general-purpose registers are placed in the register
banks at the general-purpose register area (on RAM).
•
One bank contains eight registers (R0 to R7), and up to 32 banks can be used. However, some models
restrict the number of usable banks when only internal RAM is used.
•
The register bank pointer (RP) specifies the register bank being used. The lower three bits of an
operation code indicate general-purpose register 0 (R0) to general-purpose register 7 (R7).
Figure 3.3-1 shows the configuration of the register banks.
Figure 3.3-1 Configuration of Register Bank
For details on the general-purpose register area on each model, see Section "3.1.1 Specific-purpose Areas ".
100
H
*
R0
000
R1
001
R2
010
R
3
011
R4
100
R5
101
R6
110
R7
111
R0
000
R1
001
R7
111
R0
000
R7
111
10
8
H
*
1F
8
H
*
1FF
H
*
..
..
..
..
.
.
.
.
.
.
.
.
.
.
B
a
nk 0
B
a
nk 1
B
a
nk 2
to
B
a
nk
3
0
B
a
n
3
1
(RP=00000---
B
)
(RP=00001---
B
)
(RP=11111---
B
)
3
2
ba
nk
s
(on the RAM
a
re
a
)
The n
u
m
b
er of
usab
le
ba
nk
s
i
s
dependent on the
s
ize
of the
usab
le RAM
a
re
a
.
*: Addre
ss
a
t the top of the regi
s
ter
ba
nk
s
= 0100
H
+
8
×
(
u
pper 5
b
it
s
of RP)
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......