
R8C/3GM Group
15. DTC
R01UH0284EJ0100 Rev.1.00
Aug 09, 2011
15.3
Function Description
15.3.1
Overview
When the DTC is activated, control data is read from the DTC control data area to perform data transfers and
control data after data transfer is written back to the DTC control data area. Twenty-four sets of control data can
be stored in the DTC control data area, which allows 24 types of data transfers to be performed.
There are two transfer modes: normal mode and repeat mode. When the CHNE bit in the DTCCRj (j = 0 to 23)
register is set to 1 (chain transfers enabled), multiple control data is read and data transfers are continuously
performed by one activation source (chain transfers).
A transfer source address is specified by the 16-bit register DTSARj, and a transfer destination address is
specified by the 16-bit register DTDARj. The values in the registers DTSARj and DTDARj are separately fixed
or incremented according to the control data on completion of the data transfer.
15.3.2
Activation Sources
The interrupt sources to activate the DTC are selected with the DTCENi (i = 0 to 3, 5 to 6) registers.
The DTC sets 0 (activation disabled) to the corresponding bit among bits DTCENi0 to DTCENi7 in the
DTCENi register during operation when the setting of data transfer (the first transfer in chain transfers) is either
of the following:
Transfer causing the DTCCTj (j = 0 to 23) register value to change to 0 in normal mode
Transfer causing the DTCCTj register value to change to 0 while the RPTINT bit in the DTCCRj register is 1
(interrupt generation enabled) in repeat mode
If the data transfer setting is not either of the above and the activation source is an interrupt source for timer RC,
or the flash memory, the DTC sets 0 to the interrupt source flag corresponding to the activation source during
operation.
If multiple activation sources are simultaneously generated, the DTC activation will be performed according to
the DTC activation source priority.
If multiple activation sources are simultaneously generated on completion of DTC operation, the next transfer
will be performed according to the priority.
DTC activation is not affected by the I flag or interrupt control register, unlike with interrupt request operation.
Therefore, even if interrupt requests cannot be acknowledged because interrupts are disabled, DTC activation
requests can be acknowledged. The IR bit in the interrupt control register does not change even when an
interrupt source to enable DTC activation is generated.
Figure 15.2
Block Diagram Showing Control of DTC Activation Sources
Interrupt controller
Select interrupt source or
DTC activation source
DTCENi
Clear control
Peripheral function 1
Peripheral function 2
(timer RC, flash memory)
DTC
Interrupt request
Peripheral interrupt
request
Peripheral interrupt
request
DTC activation
request
Select DTC activation or
interrupt generation.
Set the bit among bits DTCENi0 to
DTCENi7 (i = 0 to 3, 5 to 6) to 0.
Set the interrupt source flag
in the status register to 0.