DMAC
9
9-28
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
9.2 DMAC Related Registers
[DMnCNT1 Register]
(1) SADBNx (DMAn Source Address Bank Select) bits (Bits 8, 9)
These bits select a source address bank to be used from among Bank 0, Bank 1. But Bank1 does not exist
in the 32185, setting Bank1 is prohibited. Also, no transfer over the bank is carried out. Upon completion
of bank transfer to the final address, the bank is then to be transferred to the head address.
(2) DADBNx (DMAn Destination Address Bank Select) bits (Bits 10, 11)
These bits select a destination address bank to be used from among Bank 0, Bank 1. But Bank1 does not
exist in the 32185, setting Bank1 is prohibited. Also, no transfer over the bank is carried out. Upon
completion of bank transfer to the final address, the bank is then to be transferred to the head address.
(3) REQESELn (Extended DMAn Transfer Request Source Select) bits (Bits 12–15)
These bits select the cause or source of extended DMA transfer request on each DMA channel.
Note: The extended DMA transfer request sources selected by the REQESELn (Extended DMAn
Transfer Request Source Select) bits have no effect unless the “Extended” DMA transfer
request source is selected with the DMA Channel Control Register’s DMA Request Source
Select (REQSLn) bits.
[DMnCNT2 Register]
(1) SELFEN (DMAn Self Channel Transfer Select ) bit (Bit 8)
Clearing this bit to “0” disables self channel transfer, and setting it to “1” enables self channel
transfer. In case where self channel transfer was allowed, the DMA transfer request occurs for the
self channel each time single DMA transfer is completed if the initial transfer request arises, and
DMA transfer is carried out until all transfers are completed (transfer count register underflow).
However the control of internal bus is relinquished each time single DMA transfer is completed.
And if set DMA transfer n times, DMA transfer request is occured for its channel after completing all
DMA transfer, so that it is necessary to pay attention of clearing DMA transfer request or so on
when DMA transger is started again.
(2) RINGSEL (DMAn Rign Buffer Select) bit (Bits 10–15)
These bits select the number of DMA transfers to each channel in the ring buffer mode from among
32, 16, 8, 4 and 2 times.
In the ring buffer mode, after transfer from the transfer start address, the bit returns to the transfer
start address again, and the same operation is repeated by the number of transfers thus selected. In
the ring buffer mode, the transfer count register is placed in the free run mode, and transfer operation
is continued until the transfer enable bit is cleared to “0” (transfer disable).
Also, during the ring buffer mode the DMA transfer completed interrupt request does not occur.
Notes: When the self channel transfer was allowed during ring buffer mode setting, care must be
exercised to its endless transfer.
The transfer start address must be as follows:
Transfer Size: 8 bits
Transfer Size: 16 bits
32-time ring buffer mode Low order 5 bits – B’00000
Low order 6 bits – B’000000
16-time ring buffer mode Low order 4 bits – B’0000
Low order 5 bits – B’00000
8-time ring buffer mode Low order 3 bits – B’000
Low order 4 bits – B’0000
4-time ring buffer mode Low order 2 bits – B’00
Low order 3 bits – B’000
2-time ring buffer mode Low order 1 bits – B’0
Low order 3 bits – B’00