RX610 Group
12. DMA Controller (DMAC)
R01UH0032EJ0120 Rev.1.20
Page 326 of 1006
Feb 20, 2013
12.3.3
Activating the DMAC
Figure 12.4 shows the register setting procedure.
DMACm.DMMOD.DMOD[2:0] bits
DMACm.DMMOD.SMOD[2:0] bits
DMACm.DMMOD.SZSEL[2:0] bits
DMACm.DMMOD.OPSEL[3:0] bits
m = 0 to 3
Set transfer source start address
End of initial settings
<When reload functions are used>
DMACm.DMCSA register
DMACm.DMCRA.DCTG[5:0] bits
DMACm.DMCRA.DRLOD bit
DMACm.DMCRA.SRLOD bit
DMACm.DMCRA.BRLOD bit
DMACm.DMCRA.DSEL[1:0] bits
Set transfer destination start address
DMACm.DMCDA register
m: 0000000h to 3FFFFFFh Set the number of bytes to be transferred
(0000000h: Allows data transfer of maximum 64 Mbytes)
Set transfer source start address to be reloaded
DMACm.DMRSA register
Set transfer destination start address to be reloaded
DMACm.DMRDA register
Set transfer byte count to be reloaded
DMACm.DMRBC register
<When DMA interrupts are used>
DMAm interrupts enabled
DMAC internal status clear
DMA transfer enable clear
DMA transfer request
DMA transfer disabled
DMA transfer enabled
DMAC is activated
<When peripheral function interrupt is used as a DMA activation source>
Start the peripheral function to be a DMA activation source
Transfer destination address addition direction select
Transfer source address addition direction select
Transfer data size select
Operand transfer data count select
DMA activation source
Transfer destination address reload function select
Transfer source address reload function select
Transfer byte count reload function select
Transfer system select
DMACm.DMCRE.DEN bit 0
DMA transfer disabled
Start initial settings
Set the peripheral function control register, but do not start the DMAC.
<When peripheral function interrupt is used as a DMA activation source>
Set the peripheral function to be a DMAm request source
Though the IRQ pin function is set, it is not enabled.
<When external pin interrupt is used as a DMA activation source>
Set the IRQ pin function in the interrupt control unit (ICU).
Enable an interrupt request to be a DMA activation source
by the interrupt request enable register (ICU.IERi), and set
the interrupt destination setting register (ICU.ISELRi) in the
interrupt control unit (ICU) as the DMAC activation source.
The presence of no interrupt request is checked by the interrupt request register
(ICU.IRi).
When external pin interrupt is used as a DMA activation source
Enable the IRQ pin that has been set as the DMAm activation
source
DMACm.DMCRB.DSCLR bit
DMACm.DMCRC.ECLR bit
DMACm.DMCRD.DREQ bit
DMACm.DMCRE.DEN bit 0
DMACm.DMCBC register m
DMICNT.DINTMn bit 1
DMSCNT.DMST bit 1
DMACm.DMCRE.DEN bit 1
Figure 12.4 Register Setting Procedure
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...