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 />

Figure 19-10. Example of Setting for UART Consecutive Reception + ACK Transmission<br />

Start<br />

DEN0 = 1<br />

DSA0 = 4AH<br />

DRA0 = FE00H<br />

DBC0 = 0040H<br />

DMC0 = 0BH<br />

Setting for UART reception<br />

DST0 = 1<br />

User program<br />

processing<br />

INTLR0 occurs.<br />

INTDMA0<br />

occurs.<br />

DST0 = 0<br />

DEN0 = 0 Note<br />

RETI<br />

End<br />

INTLR0 interrupt routine<br />

STG0 = 1<br />

DMA0 transfer<br />

P10 = 1<br />

P10 = 0<br />

R01UH0317EJ0004 Rev. 0.04 1043<br />

Feb. 22, 2013<br />

RETI<br />

<strong>Hardware</strong> operation<br />

Note The DST0 flag is automatically cleared to 0 when a DMA transfer is completed.<br />

Writing the DEN0 flag is enabled only when DST0 = 0. To terminate a DMA transfer without waiting for<br />

occurrence of the interrupt of DMA0 (INTDMA0), set the DST0 bit to 0 and then the DEN0 bit to 0 (for details,<br />

refer to 19.5.5 Forced termination by software).<br />

Remark This is an example where a software trigger is used as a DMA start source.<br />

If ACK is not transmitted and if only data is consecutively received from UART, the UART reception end<br />

interrupt (INTLR0) can be used to start DMA for data reception.

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

Saved successfully!

Ooh no, something went wrong!