21. Multi-Function Timer Pulse Unit 2 (MTU2A)
21.4.2
DTC and DMACA Activation
(1) DTC Activation
The DTC can be activated by the TGR input capture/compare match interrupt in each channel or the overflow interrupt in
The MTU2A provides a total of 20 input capture/compare match interrupts and overflow interrupts that can be used as
DTC activation sources: four each for MTU0 and MTU3, two each for MTU1 and MTU2, five for MTU4, and three for
MTU5.
(2) DMACA Activation
The DMACA can be activated by the TGRA input capture/compare match interrupt in each channel. For details, see
The MTU2A provides a total of five TGRA input capture/compare match interrupts that can be used as DMACA
activation sources: one each for MTU0 to MTU4.
When the DMACA is activated by the MTU2A, the activation source is cleared when the DMACA requests the internal
bus mastership. Therefore, the request for DMACA transfer may be kept pending for a certain period even after the
activation source is cleared depending on the internal bus state.
21.4.3
A/D Converter Activation
The A/D converter can be activated by one of the following five methods in the MTU2A.
Table 21.59 lists the
relationship between interrupt sources and A/D converter start request signals.
(1) A/D Converter Activation by TGRA Input Capture/Compare Match or at MTU4.TCNT Trough in
Complementary PWM Mode
The A/D converter can be activated by the occurrence of a TGRA input capture/compare match in each channel. In
addition, if complementary PWM operation is performed while the TTGE2 bit in MTU4.TIER is set to 1, the A/D
converter can be activated at the trough of MTU4.TCNT count (MTU4.TCNT = 0000h).
A/D converter start request signal TRGAN is issued to the A/D converter under either of the following conditions.
When a TGRA input capture/compare match occurs on a channel while the TTGE bit in TIER is set to 1
When the MTU4.TCNT count reaches the trough (MTU4.TCNT = 0000h) during complementary PWM operation
while the TTGE2 bit in MTU4.TIER is set to 1
When either condition is satisfied, if A/D converter start signal TRGAN from the MTU2A is selected as the trigger in the
A/D converter, A/D conversion will start.
(2) A/D Converter Activation by Compare Match between MTU0.TCNT and MTU0.TGRE
A compare match between MTU0.TCNT and MTU0.TGRE activates the A/D converter.
A/D converter start request signal TRG0EN is issued when a compare match occurs between MTU0.TCNT and
MTU0.TGRE. If A/D converter start signal TRG0EN from the MTU2A is selected as the trigger in the A/D converter, A/
D conversion will start.
(3) A/D Converter Activation by Compare Match between MTU0.TCNT and MTU0.TGRF
A compare match between MTU0.TCNT and MTU0.TGRF activates the A/D converter.
A/D converter start request signal TRG0FN is issued when a compare match occurs between MTU0.TCNT and
MTU0.TGRF. If A/D converter start signal TRG0FN from the MTU2A is selected as the trigger in the A/D converter, A/
D conversion will start.