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 19 DMA CONTROLLER<br />

(4) DMA pending instruction<br />

Even if a DMA request is generated, DMA transfer is held pending immediately after the following instructions.<br />

CALL !addr16<br />

CALL $!addr20<br />

CALL !!addr20<br />

CALL rp<br />

CALLT [addr5]<br />

BRK<br />

Bit manipulation instructions for registers IF0L, IF0H, IF1L, IF1H, IF2L, IF2H, IF3L, IF3H, MK0L, MK0H, MK1L,<br />

MK1H, MK2L, MK2H, MK3L, MK3H, PR00L, PR00H, PR01L, PR01H, PR02L, PR02H, PR03L, PR03H, PR10L,<br />

PR10H, PR11L, PR11H, PR12L, PR12H, PR13L, PR13H, and PSW each.<br />

Instruction for accessing the data flash memory<br />

(5) Operation if address in general-purpose register area or other than those of internal RAM area is specified<br />

The address indicated by DMA RAM address register n (DRAn) is incremented during DMA transfer. If the<br />

address is incremented to an address in the general-purpose register area or exceeds the area of the internal<br />

RAM, the following operation is performed.<br />

In mode of transfer from SFR to RAM<br />

The data of that address is lost.<br />

In mode of transfer from RAM to SFR<br />

Undefined data is transferred to SFR.<br />

In either case, malfunctioning may occur or damage may be done to the system. Therefore, make sure that the<br />

address is within the internal RAM area other than the general-purpose register area.<br />

FFF00H<br />

FFEFFH<br />

FFEE0H<br />

FFEDFH<br />

General-purpose registers<br />

Internal RAM<br />

DMA transfer enabled area<br />

(6) Operation if instructions for accessing the data flash area<br />

Because DMA transfer is suspended to access to the data flash area, be sure to add the DMA pending<br />

instruction.<br />

If the data flash area is accessed after an next instruction execution from start of DMA transfer, a 3-clock wait<br />

will be inserted to the next instruction.<br />

Instruction 1<br />

DMA transfer<br />

Instruction 2 ←The wait of three clock cycles occurs.<br />

MOV A, ! DataFlash area<br />

R01UH0317EJ0004 Rev. 0.04 1048<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!