User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (4/4)
[data6]
General control settings. All settings are optional.
If multiple selections are required, use "|" to separate each selection.
•
Interrupt skipping control
PDL_MTU2_INT_SKIP_TROUGH_DISABLE or
PDL_MTU2_INT_SKIP_TROUGH_1 or
PDL_MTU2_INT_SKIP_TROUGH_2 or
PDL_MTU2_INT_SKIP_TROUGH_3 or
PDL_MTU2_INT_SKIP_TROUGH_4 or
PDL_MTU2_INT_SKIP_TROUGH_5 or
PDL_MTU2_INT_SKIP_TROUGH_6 or
PDL_MTU2_INT_SKIP_TROUGH_7
Disable TCNT underflow (TCIV) interrupt
skipping, or set the skip count between 1
and 7.
PDL_MTU2_INT_SKIP_CREST_DISABLE or
PDL_MTU2_INT_SKIP_CREST_1 or
PDL_MTU2_INT_SKIP_CREST_2 or
PDL_MTU2_INT_SKIP_CREST_3 or
PDL_MTU2_INT_SKIP_CREST_4 or
PDL_MTU2_INT_SKIP_CREST_5 or
PDL_MTU2_INT_SKIP_CREST_6 or
PDL_MTU2_INT_SKIP_CREST_7
Disable TGRA compare match (TGIA)
interrupt skipping, or set the skip count
between 1 and 7.
•
Dead time generation control (applies only to complementary PWM modes).
PDL_MTU2_DEAD_TIME_DISABLE or
PDL_MTU2_DEAD_TIME_ENABLE
Disable or enable dead time generation. If
enabling, the dead time data register value
must not be 0.
•
Waveform retention control (applies only to complementary PWM modes).
PDL_MTU2_WAVEFORM_RETAIN_DISABLE or
PDL_MTU2_WAVEFORM_RETAIN_ENABLE
Disable or enable waveform output
retention.
•
Compare match clearing control (applies only to complementary PWM mode 1).
PDL_MTU2_CNT_CLEAR_CM_A_DISABLE or
PDL_MTU2_CNT_CLEAR_CM_A_ENABLE
Disable or enable counter clearing on
TGRA compare match.
•
Reset-synchronised or complementary PWM control
PDL_MTU2_PWM_RS_COMP_ENABLE
Enable reset-synchronised or
complementary PWM mode.
•
Register protection
PDL_MTU2_ACCESS_DISABLE
Control access to the registers and counters in
channels 3 and 4 (n = 0) or 9 and 10 (n = 1).
PDL_MTU2_ACCESS_ENABLE
[data7]
The unit registers to be modified.
If multiple selections are required, use "|" to separate each selection.
•
The registers to be modified. These apply only to complementary PWM mode.
PDL_MTU2_REGISTER_DEAD_TIME
Update the dead time data register (TDDR).
PDL_MTU2_REGISTER_CYCLE_DATA
Update the cycle data register (TCDR).
PDL_MTU2_REGISTER_CYCLE_BUFFER
Update the cycle buffer register (TCBR).
[data8]
The dead time data register value. This will be ignored if the register is not selected.
[data9]
The cycle data register value. This will be ignored if the register is not selected.
[data10]
The cycle buffer register value. This will be ignored if the register is not selected.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Multi-function Timer Pulse Unit
R20UT0084EE0112 Rev.1.12 Page 4-108
July. 16, 2014