20.01.2015 Views

M32C/83 Group Hardware Manual - TE-EPC-LPC

M32C/83 Group Hardware Manual - TE-EPC-LPC

M32C/83 Group Hardware Manual - TE-EPC-LPC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>M32C</strong>/<strong>83</strong><br />

<strong>Group</strong><br />

13. DMACII<br />

13.4.4 Chained Transfer<br />

The CHAIN bit in MOD selects the chained transfer.<br />

The following process initiates the chained transfer.<br />

(1) Transfer, caused by a transfer request factor, occurs according to the content of the DMAC II index.<br />

The vectors of the request factor indicates where the DMAC II index is allocated. For each request, the<br />

BRST bit selects either single or burst transfer.<br />

(2) When COUNT reaches "0", the contents of CADR1 to CADR0 are written to the vector of the request<br />

factor. When the IN<strong>TE</strong> bit in the MOD is set to "1," the end-of-transfer interrupt is generated simultaneously.<br />

(3) When the next DMAC II transfer request is generated, transfer occurs according to the contents of the<br />

DMAC II index indicated by the vector rewritten in (2).<br />

Figure 13.4 shows the relocatable vector and DMACII index of when the chained transfer is in progress.<br />

When performing the chained transfer, the relocatable vector table must be located in the RAM.<br />

INTB<br />

RAM<br />

Relocatable vector<br />

Peripheral I/O interrupt vector causing DMAC II request<br />

Default value of DMAC II is BASE(1).<br />

DMAC II<br />

Index(1)<br />

BASE(1)<br />

(CADR1 to<br />

CADR0)<br />

BASE(2)<br />

The above vector is rewritten to BASE(2)<br />

when a transfer is completed.<br />

Starts at BASE(2) when next request conditions<br />

are met.<br />

Transferred according to the DMAC II Index.<br />

DMAC II<br />

Index(2)<br />

BASE(2)<br />

(CADR1 to<br />

CADR0)<br />

BASE(3)<br />

The above vector is rewritten to BASE(3)<br />

when a transfer is completed.<br />

Figure 13.4 Relocatable Vector and DMAC II Index<br />

13.4.5 End-of-Transfer Interrupt<br />

The IN<strong>TE</strong> bit in MOD selects the end-of-transfer interrupt. Set the starting address of the end-of-transfer<br />

interrupt routine in the IADR1 to IADR0 bits. The end-of-transfer interrupt is generated when COUNT<br />

reaches "0."<br />

Rev. 1.20 Jun. 01, 2004<br />

REJ09B0034-0120Z<br />

Page 132 of 477

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

Saved successfully!

Ooh no, something went wrong!