Mtu Output Pin Initialization; Operating Modes; Operation In Case Of Re-Setting Due To Error During Operation - Renesas RX100 Series User Manual

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
19.7

MTU Output Pin Initialization

19.7.1

Operating Modes

The MTU has the following six operating modes. Waveforms can be output in any of these modes.
 Normal mode (MTU0 to MTU4)
 PWM mode 1 (MTU0 to MTU4)
 PWM mode 2 (MTU0 to MTU2)
 Phase counting modes 1 to 5 (MTU1 and MTU2)
 Complementary PWM mode (MTU3 and MTU4)
 Reset-synchronized PWM mode (MTU3 and MTU4)
This section describes how to initialize the MTU output pins in each of these modes.
19.7.2

Operation in Case of Re-Setting Due to Error during Operation

If an error occurs during MTU operation, MTU output should be cut off by the system. The output can be cut off by
allowing non-active level output from the pins by setting the pins as general output ports using the port direction registers
(PDR), port output data registers (PODR), and port mode registers (PMR) of the I/O ports. MTU output can be disabled
through TIOR settings. Complementary PWM output (MTIOC3B, MTIOC3D, MTIOC4A, MTIOC4B, MTIOC4C and
MTIOC4D) should be specified through TOERA setting. For PWM output pins, output can also be cut by hardware,
using port output enable 3 (POE3). The pin initialization procedures for re-setting due to an error during operation and
the procedures for restarting in a different mode after re-setting are described below.
The MTU has six operating modes, as stated above. There are thus 36 mode transition combinations, but some transitions
are not available with certain channel and mode combinations. Available mode transition combinations are shown in
Table 19.64 .
Table 19.64
Mode Transition Combinations
Normal
Normal
(1)
PWM1
(7)
PWM2
(13)
PCM
(17)
CPWM
(21)
RPWM
(26)
Normal:
Normal mode
PWM1:
PWM mode 1
PWM2:
PWM mode 2
PCM:
Phase counting modes 1 to 5
CPWM:
Complementary PWM mode
RPWM:
Reset-synchronized PWM mode
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
PWM1
PWM2
(2)
(3)
(8)
(9)
(14)
(15)
(18)
(19)
(22)
Not available
(27)
Not available
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
PCM
CPWM
(4)
(5)
(10)
(11)
(16)
Not available
(20)
Not available
Not available
(23) (24)
Not available
(28)
RPWM
(6)
(12)
Not available
Not available
(25)
(29)
Page 500 of 1041

Advertisement

Table of Contents
loading

Table of Contents