04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 3 CPU ARCHITECTURE<br />

3.1.6 Data memory addressing<br />

Addressing refers to the method of specifying the address of the instruction to be executed next or the address of the<br />

register or memory relevant to the execution of instructions.<br />

Several addressing modes are provided for addressing the memory relevant to the execution of instructions for the<br />

<strong>RL78</strong>/<strong>D1A</strong>, based on operability and other considerations. For areas containing data memory in particular, special<br />

addressing methods designed for the functions of the special function registers (SFR) and general-purpose registers are<br />

available for use. Figures 3-9 to 3-14 show correspondence between data memory and addressing. For details of each<br />

addressing, see 3.4 Addressing for Processing Data Addresses.<br />

FFFFFH<br />

FFF20H<br />

FFF1FH<br />

FFF00H<br />

FFEFFH<br />

FFEE0H<br />

FFEDFH<br />

FFE20H<br />

FFE1FH<br />

FF700H<br />

FF6FFH<br />

F3000H<br />

F2FFFH<br />

F1000H<br />

F0FFFH<br />

F0800H<br />

F07FFH<br />

F0000H<br />

EFFFFH<br />

06000H<br />

05FFFH<br />

00000H<br />

Figure 3-9. Correspondence Between Data Memory and Addressing<br />

(R5F10CGB)<br />

Special function register (SFR)<br />

256 bytes<br />

General-purpose register<br />

32 bytes<br />

RAM Note<br />

2 KB<br />

Mirror<br />

49.75 KB<br />

Data flash memory<br />

8 KB<br />

Reserved<br />

Special function register (2nd SFR)<br />

2 KB<br />

Reserved<br />

Code flash memory<br />

24 KB<br />

SFR addressing<br />

Register addressing<br />

Short direct<br />

addressing<br />

Direct addressing<br />

Register indirect addressing<br />

Based addressing<br />

Based indexed addressing<br />

Note Use of part of this area is prohibited by libraries, when using the self-programming function and data flash<br />

function.<br />

Caution When executing instructions from the RAM area while RAM parity error resets are enabled (RPERDIS<br />

= 0), be sure to initialize the used RAM area + 10 bytes.<br />

R01UH0317EJ0004 Rev. 0.04 87<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!