English
Language : 

M16C5LD Datasheet, PDF (20/85 Pages) Renesas Technology Corp – RENESAS MCU
M16C/5LD Group, M16C/56D Group
2. Central Processing Unit (CPU)
2.1 General Purpose Registers
2.1.1 Data Registers (R0, R1, R2, and R3)
The R0, R1, R2, and R3 are 16-bit registers used for transfer, arithmetic and logic operations. R0 and
R1 can be split into high-order (R0H/R1H) and low-order bits (R0L/R1L) to be used separately as 8-bit
data registers. R0 can be combined with R2 and used as a 32-bit data register (R2R0). The same
applies to R3R1.
2.1.2 Address Registers (A0 and A1)
A0 and A1 are 16-bit registers used for indirect addressing, relative addressing, transfer, arithmetic and
logic operations. A0 can be combined with A1 and used as a 32-bit address register (A1A0).
2.1.3 Frame Base Register (FB)
FB is a 16-bit register used for FB relative addressing.
2.1.4 Interrupt Table Register (INTB)
INTB is a 20-bit register that indicates the start address of a relocatable interrupt vector table.
2.1.5 Program Counter (PC)
PC is a 20-bit register that indicates the address of the next instruction to be executed.
2.1.6 User Stack Pointer (USP) and Interrupt Stack Pointer (ISP)
The stack pointers (SP), USP and ISP, each have 16 bits. The U flag is used to switch between USP
and ISP.
2.1.7 Static Base Register (SB)
SB is a 16-bit register used for SB-relative addressing.
2.1.8 Flag Register (FLG)
FLG is a 11-bit register that indicates the CPU state.
2.1.8.1 Carry Flag (C Flag)
The C flag retains a carry, borrow, or shift-out bit that has been generated by the arithmetic/logic unit.
2.1.8.2 Debug Flag (D Flag)
The D flag is for debugging purposes only. Set it to 0.
2.1.8.3 Zero Flag (Z Flag)
The Z flag becomes 1 when an arithmetic operation results in 0; otherwise it becomes 0.
2.1.8.4 Sign Flag (S Flag)
The S flag becomes 1 when an arithmetic operation results in a negative value; otherwise it becomes 0.
2.1.8.5 Register Bank Select Flag (B Flag)
Register bank 0 is selected when the B flag is 0. Register bank 1 is selected when this flag is 1.
REJ03B0307-0110 Rev.1.10 Dec 01, 2009
Page 20 of 83