R01UH0823EJ0100 Rev.1.00
Page 586 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(1) Input Capture/Compare Match Interrupt
An interrupt is requested if the TIER.TGIE bit is set to 1 when a TGR input capture/compare match occurs on a channel.
The MTU has 18 input capture/compare match interrupts (six for MTU0, four each for MTU3 and MTU4, and two each
for MTU1 and MTU2).
(2) Overflow Interrupt
An interrupt is requested if the TIER.TGIE bit is set to 1 when a TCNT counter overflow occurs on a channel. The MTU
has five overflow interrupts (one for each channel).
(3) Underflow Interrupt
An interrupt is requested if the TIER.TCIEU bit is set to 1 when a TCNT counter underflow occurs on a channel. The
MTU has two underflow interrupts (one each for MTU1 and MTU2).
23.4.2
DTC/DMAC 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
MTU4. For details, refer to
section 19, Data Transfer Controller (DTCa)
The MTU provides a total of 17 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, and five for MTU4.
(2) DMAC Activation
The DMAC can be activated by the TGRA register input capture/compare match interrupt in each channel. For details,
refer to
section 18, DMA Controller (DMACA)
The MTU provides a total of five input capture/compare match interrupts that can be used as DMAC activation sources:
one each for MTU0 to MTU4.
When the DMAC is activated by the MTU, the activation source is cleared when the DMAC requests the internal bus
mastership. Therefore, there may be a wait period before DMAC transfer starts even when the activation source is
cleared, depending on the internal bus state.
23.4.3
A/D Converter Activation
The A/D converter can be activated by one of the following five methods in the MTU.
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 mode operation is performed while the MTU4.TIER.TTGE2 bit 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 TIER.TTGE bit is set to 1
When the MTU4.TCNT count reaches the trough (MTU4.TCNT = 0000h) during complementary PWM mode
operation while the MTU4.TIER.TTGE2 bit is set to 1
When either condition is satisfied, if A/D converter start signal TRGAN from the MTU is selected as the trigger in the A/
D converter, A/D conversion will start.