9
9-36
DMAC
32180 Group User’s Manual (Rev.1.0)
Figure 9.3.3 Transfer Byte Positions
(7) Ring buffer mode
When ring buffer mode is selected, transfer begins from the transfer start address and after performing
transfers 32 times, control returns to the transfer start address, from which transfer operation is repeated. In
this case, however, the five low-order bits of the ring buffer start address must always be B’00000 (if transfer
size = 16 bits, the six low-order bits must be B’000000).
The following describes how addresses are incremented in ring buffer mode.
[1] When the transfer size is 8 bits
The 27 high-order bits of the transfer start address are fixed, and the five low-order bits are incremented
by one at a time. When as transfer proceeds the five low-order bits reach B’11111, they are recycled to
B’00000 by the next increment operation, thus returning to the start address again.
[2] When the transfer size is 16 bits
The 26 high-order bits of the transfer start address are fixed, and the six low-order bits are incremented
by two at a time. When as transfer proceeds the six low-order bits reach B’111110, they are recycled to
B’000000 by the next increment operation, thus returning to the start address again.
If the source address has been set to be incremented, it is the source address that recycles to the start
address; if the destination address has been set to be incremented, it is the destination address that recycles
to the start address. If both source and destination addresses have been set to be incremented, both ad-
dresses recycle to the start address. However, the start address on either side must have their five low-order
bits initially set to B’00000 (if transfer size = 16 bits, the six low-order bits must be B’000000).
During ring buffer mode, the transfer count register is ignored. Once DMA operation starts, the counter operates
in free-run mode, and the transfer continues until the transfer enable bit is cleared to "0" (to disable transfer).
9.3 Functional Description of the DMAC
(5) Transfer count value
The transfer count value is decremented one at a time, irrespective of the size of transfer unit (8 or 16 bits).
(6) Transfer byte positions
When the transfer unit is 8 bits, the LSB of the address register is effective for both source and destination.
(Therefore, in addition to data transfers between even addresses or between odd addresses, data may be
transferred from even address to odd address or vice versa.) When the transfer unit is 16 bits, the LSB of the
address register (= bit 15) is ignored, and data are always transferred in two bytes aligned to the 16-bit bus.
The diagram below shows the valid byte positions in DMA transfer.
b0
b7 b8
b15
8 bits
+0
+1
Source
Destination
<When transfer size = 8 bits>
8 bits
8 bits
8 bits
16 bits
16 bits
b0
b7 b8
b15
+0
+1
<When transfer size = 16 bits>
Содержание M32R/ECU Series
Страница 17: ...12 This page is blank for reasons of layout...
Страница 18: ...CHAPTER 1 OVERVIEW 1 1 Outline of the 32180 Group 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Assignments...
Страница 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Страница 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Страница 795: ...22 22 2 32180 Group User s Manual Rev 1 0 TYPICAL CHARACTERISTICS To be written at a later time...
Страница 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Страница 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Страница 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...