R01UH0823EJ0100 Rev.1.00
Page 582 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(5) A/D Converter Start Request Delaying Function Linked with Interrupt Skipping
In complementary PWM mode, A/D converter start requests (TRG4AN and TRG4BN) can be issued in coordination
with interrupt skipping by making settings in the TADCR.ITA3AE bit, TADCR.ITA4VE bit, TADCR.ITB3AE bit, and
TADCR.ITB4VE bit.
shows an example of A/D converter start request signal (TRG4AN) operation when
TRG4AN output is enabled during MTU4.TCNT up-counting and down-counting and A/D converter start requests are
linked with interrupt skipping.
shows another example of A/D converter start request signal (TRG4AN) operation when TRG4AN output
is enabled during MTU4.TCNT up-counting and A/D converter start requests are linked with interrupt skipping.
In modes other than complementary PWM mode, do not use the A/D converter start request delaying function linked
with interrupt skipping.
Set the ITA3AE, ITA4VE, ITB3AE, and ITB4VE bits in the MTU4.TADCR register to 0.
Note:
This function should be used in combination with interrupt skipping.
When interrupt skipping is disabled (the TITCR.T3AEN bit and TITCR.T4VEN bit are set to 0 or the skipping
count setting bits (T3ACOR[2:0] and T4VCOR[2:0]) in the TITCR register are set to 000b), make sure that A/D
converter start requests are not linked with interrupt skipping (set the TADCR.ITA3AE bit, TADCR.ITA4VE bit,
TADCR.ITB3AE bit, and TADCR.ITB4VE bit to 0).
Note that TRG4ABN (TRG4AN or TRG4BN) is output as the A/D converter start request signal in this case.
When this function is used, registers MTU4.TADCORA and MTU4.TADCORB should be set with the value
ranging 0002h to the value set in the TCDRA register minus 2.
Figure 23.75
Example of A/D Converter Start Request Signal (TRG4AN) Operation Linked with Interrupt
Skipping (when the output of TRG4AN in counting up and down by TCNT is enabled)
00h
01h
00h
01h
02h
00h
01h
00h
01h
02h
MTU4.TCNT
MTU4.TADCORA
TGIA3 interrupt
skipping counter
TCIV4 interrupt
skipping counter
TGIA3 A/D request-enabled
period
TCIV4 A/D request-enabled
period
A/D converter start request (TRG4AN)
When linked with TGIA3 and TCIV4
interrupt skipping
When linked with TGIA3
interrupt skipping
When linked with TCIV4
interrupt skipping
Note:
When the interrupt skipping count is set to two.
TADCR.UT4AE = 1
TADCR.DT4AE = 1