
269
Table 11.11 Transfer Conditions and Register Set Values for Transfer between A/D
Converter (A/D1) and Internal Memory
Transfer Conditions
Register
Value
Transfer source: on-chip A/D converter (A/D1)
SAR2
H'FFFF8408
Transfer destination: internal memory
DAR2
H'FFFFF000
Transfer count: 128 times (reload count 32 times)
DMATCR2
H'00000080
Transfer source address: incremented
CHCR2
H'00085B25
Transfer target address: incremented
Transfer request source: A/D converter (A/D1)
Bus mode: burst
Transfer unit: byte
Interrupt request generated at end of transfer
Channel priority sequence: 0>2>3>1
DMAOR
H'0101
When address reload is on, the SAR value returns to its initially established value every four
transfers. In the above example, when a transfer request is input from the A/D converter (A/D1),
the byte size data is first read in from the H'FFFF8408 register and that data is written to the on-
chip memory address H'FFFFF001. Because a byte size transfer was performed, the SAR and
DAR values at this point are H'FFFF8409 and H'FFFFF001, respectively. Also, because this is a
burst transfer, the bus rights remain secured, so continuous data transfer is possible.
When four transfers are completed, if the address reload is off, execution continues with the fifth
and sixth transfers and the SAR value continues to increment from H'FFFF840B to H'FFFF840C
to H'FFFF840D and so on. However, when the address reload is on, the DMAC transfer is halted
upon completion of the fourth transfer and the bus right request signal to the CPU is cleared. At
this time, the values stored in SAR are not H'FFFF840B–H'FFFF840C, but H'FFFF840B–
H'FFFF8408, a return to the initially established address. The DAR value always continues to be
decremented regardless of whether the address reload is on or off.
The DMAC internal status, due to the above operation after completion of the fourth transfer, is
indicated in table 11.12 for both address reload on and off.
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...