Rev.1.20 Jan 27, 2006 page 8 of 27
REJ03B0069-0120
R8C/13 Group 2. Central Processing Unit (CPU)
2.2 Address Registers (A0 and A1)
A0 is a 16-bit register for address register indirect addressing and address register relative addressing.
They also are used for transfer, arithmetic and logic operations. The same applies to A1 as A0. A0 can be
combined with A0 to be used as a 32-bit address register (A1A0).
2.3 Frame Base Register (FB)
FB is a 16-bit register for FB relative addressing.
2.4 Interrupt Table Register (INTB)
INTB is a 20-bit register indicates the start address of an interrupt vector table.
2.5 Program Counter (PC)
PC, 20 bits wide, indicates the address of an instruction to be executed.
2.6 User Stack Pointer (USP) and Interrupt Stack Pointer (ISP)
The stack pointer (SP), USP and ISP, are 16 bits wide each.
The U flag of FLG is used to switch between USP and ISP.
2.7 Static Base Register (SB)
SB is a 16-bit register for SB relative addressing.
2.8 Flag Register (FLG)
FLG is a 11-bit register indicating the CPU state.
2.8.1 Carry Flag (C)
The C flag retains a carry, borrow, or shift-out bit that has occurred in the arithmetic logic unit.
2.8.2 Debug Flag (D)
The D flag is for debug only. Set to 0.
2.8.3 Zero Flag (Z)
The Z flag is set to 1 when an arithmetic operation resulted in 0; otherwise, 0.
2.8.4 Sign Flag (S)
The S flag is set to 1 when an arithmetic operation resulted in a negative value; otherwise, 0.
2.8.5 Register Bank Select Flag (B)
The register bank 0 is selected when the B flag is 0. The register bank 1 is selected when this flag is
set to 1.
2.8.6 Overflow Flag (O)
The O flag is set to 1 when the operation resulted in an overflow; otherwise, 0.
2.8.7 Interrupt Enable Flag (I)
The I flag enables a maskable interrupt.
An interrupt is disabled when the I flag is set to 0, and are enabled when the I flag is set to 1. The
I flag is set to 0 when an interrupt request is acknowledged.
2.8.8 Stack Pointer Select Flag (U)
ISP is selected when the U flag is set to 0, USP is selected when the U flag is set to 1.
The U flag is set to 0 when a hardware interrupt request is acknowledged or the INT instruction of
software interrupt numbers 0 to 31 is executed.
2.8.9 Processor Interrupt Priority Level (IPL)
IPL, 3 bits wide, assigns processor interrupt priority levels from level 0 to level 7.
If a requested interrupt has greater priority than IPL, the interrupt is enabled.
2.8.10 Reserved Bit
When write to this bit, set to 0. When read, its content is indeterminate.
Rev.1.20 Jan 27, 2006 page 9 of 27
REJ03B0069-0120
R8C/13 Group 3. Memory
3. Memory
Figure 3.1 is a memory map of this MCU. This MCU provides 1-Mbyte address space from addresses
0000016 to FFFFF16.
The internal ROM (program ROM) is allocated lower addresses beginning with address 0FFFF16. For
example, a 16-Kbyte internal ROM is allocated addresses from 0C00016 to 0FFFF16.
The fixed interrupt vector table is allocated addresses 0FFDC16 to 0FFFF16. They store the starting
address of each interrupt routine.
The internal ROM (data flash) is allocated addresses from 0200016 to 02FFF16.
The internal RAM is allocated higher addresses beginning with address 0040016. For example, a 1-Kbyte
internal RAM is allocated addresses 0040016 to 007FF16. The internal RAM is used not only for storing
data, but for calling subroutines and stacks when interrupt request is acknowledged.
Special function registers (SFR) are allocated addresses 0000016 to 002FF16. The peripheral function
control registers are located them. All addresses, which have nothing allocated within the SFR, are re-
served area and cannot be accessed by users.
Figure 3.1 Memory Map
00000
16
0YYYY
16
0FFFF
16
002FF
16
00400
16
Internal ROM
(program ROM)
SFR
(See Chapter 4 for details.)
0FFDC
16
0FFFF
16
Undefined instruction
Overflow
BRK instruction
Address match
Single step
Watchdog timer,Oscillation stop detection,Voltage detection
Reset
(Reserved)
Type name
0XXXX
16
Internal RAM
FFFFF
16
Address 0XXXX
16
005FF
16
Internal RAM
Size
007FF
16
512 bytes
1K bytes
006FF
16
768 bytes
Address 0YYYY
16
0E000
16
Internal ROM
Size
0C000
16
8K bytes
16K bytes
0D000
16
12K bytes
Expansion area
(Reserved)
R5F21134FP, R5F21134DFP
R5F21133FP, R5F21133DFP
R5F21132FP, R5F21132DFP
02000
16
02FFF
16
Internal ROM
(data flash)
(1)
NOTES:
1. The data flash block A (2K bytes) and block B (2K bytes) are shown.
2. Blank spaces are reserved. No access is allowed.
Rev.1.20 Jan 27, 2006 page 10 of 27
REJ03B0069-0120
R8C/13 Group 4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
t
r
o
l
r
e
g
i
s
t
e
r
1H
R
14
0
1
6
Voltage detection register 1 VCR1 00001000
2
V
o
l
t
a
g
e
d
e
t
e
c
t
i
o
n
r
e
g
i
s
t
e
r
2V
C
R
20
0
1
6
10
0
0
0
0
0
0
2
V
o
l
t
a
g
e
d
e
t
e
c
t
i
o
n
i
n
t
e
r
r
u
p
t
r
e
g
i
s
t
e
rD
4
I
N
T0
0
1
6
X
:
U
n
d
e
f
i
n
e
d
N
O
T
E
S
:
1
.
B
l
a
n
k
s
p
a
c
e
s
a
r
e
r
e
s
e
r
v
e
d
.
N
o
a
c
c
e
s
s
i
s
a
l
l
o
w
e
d
.
(
1
)
(
2
)
(
2
)
(
2
)
01000001
2
(
3
)
(
4
)
(
3
)
(
4
)
4. Special Function Register (SFR)
SFR(Special Function Register) is the control register of peripheral functions. Tables 4.1 to 4.4 list the SFR
information
Table 4.1 SFR Information(1)
(1)

DS4830AT+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
16-bit Microcontrollers - MCU ADVANCED OPTICAL UC BULK VERSION
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union