R01UH0823EJ0100 Rev.1.00
Page 580 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
23.3.9
A/D Converter Start Request Delaying Function
A/D converter start requests can be issued in MTU4 by making settings in registers TADCR, TADCORA, TADCORB,
TADCOBRA, and TADCOBRB.
The A/D converter start request delaying function compares the MTU4.TCNT counter with the MTU4.TADCORA or
MTU4.TADCORB register, and when their values match, the function issues a respective A/D converter start request
(TRG4AN or TRG4BN).
A/D converter start requests (TRG4AN and TRG4BN) can be skipped in coordination with interrupt skipping by making
settings in the TADCR.ITA3AE bit, TADCR.ITA4VE bit, TADCR.ITB3AE bit, and ITB4VE bit.
(1) Example of Procedure for Specifying A/D Converter Start Request Delaying Function
shows an example of procedure for specifying the A/D converter start request delaying function.
Figure 23.73
Example of Procedure for Specifying A/D Converter Start Request Delaying Function
[1]
[2]
[1] Set the cycle in registers MTU4.TADCOBRA, MTU4.TADCOBRB,
MTU4.TADCORA, and MTU4.TADCORB. (The same initial value
must be specified in the cycle set buffer register and cycle set
register.)
[2] Use the TADCR.BF[1:0] bits to specify the timing of buffer transfer
from the timer A/D converter start request cycle set buffer register to
A/D converter start request cycle set register.
• Specify whether to link with interrupt skipping through
TADCR.ITA3AE bit, TADCR.ITA4VE bit, TADCR.ITB3AE bit,
and TADCR.ITB4VE bit.
• Use TADCR.UT4AE bit, TADCR.DT4AE bit, TADCR.UT4BE bit,
and TADCR.DT4BE bit to enable A/D converter start requests
(TRG4AN or TRG4BN).
A/D converter start request
delaying function
Set A/D converter start request cycle
•Set the timing of transfer from cycle
set buffer register
•Set linkage with interrupt skipping
•Enable A/D converter start request
delaying function
A/D converter start request
delaying function
Note:
Perform the TADCR register setting while the MTU4.TCNT
counter is stopped.
Set the TADCR.BF[1], ITA3AE, ITA4VE, ITB3AE, ITB4VE,
DT4AE, and DT4BE bits to 0 when complementary PWM mode
is not selected.
Set the ITA3AE, ITA4VE, ITB3AE, and ITB4VE bits to 0 when
interrupt skipping is disabled.