English
Language : 

SH7670 Datasheet, PDF (188/1292 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7670 Series
Section 6 Interrupt Controller (INTC)
6.8.1 Banked Register and Input/Output of Banks
(1) Banked Register
The contents of the general registers (R0 to R14), global base register (GBR), multiply and
accumulate registers (MACH and MACL), and procedure register (PR), and the vector table
address offset are banked.
(2) Input/Output of Banks
This LSI has fifteen register banks, bank 0 to bank 14. Register banks are stacked in first-in last-
out (FILO) sequence. Saving takes place in order, beginning from bank 0, and restoration takes
place in the reverse order, beginning from the last bank saved to.
6.8.2 Bank Save and Restore Operations
(1) Saving to Bank
Figure 6.11 shows register bank save operations. The following operations are performed when an
interrupt for which usage of register banks is allowed is accepted by the CPU:
a. Assume that the bank number bit value in the bank number register (IBNR), BN, is i before the
interrupt is generated.
b. The contents of registers R0 to R14, GBR, MACH, MACL, and PR, and the interrupt vector
table address offset (VTO) of the accepted interrupt are saved in the bank indicated by BN,
bank i.
c. The BN value is incremented by 1.
+1
(c)
BN
Register banks
Bank 0
Bank 1
:
:
(a)
(b)
Bank i
Bank i + 1
:
:
Bank 14
Registers
R0 to R14
GBR
MACH
MACL
PR
VTO
Figure 6.11 Bank Save Operations
Rev. 1.00 Nov. 14, 2007 Page 162 of 1262
REJ09B0437-0100