Section 11 Multi-Function Timer Pulse Unit 2
R01UH0134EJ0400 Rev. 4.00 Page 623 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
(5) Operation when Error Occurs during Normal Mode Operation, and Operation is
Restarted in Complementary PWM Mode
Figure 11.119 shows an explanatory diagram of the case where an error occurs in normal mode
and operation is restarted in complementary PWM mode after re-setting.
1
RESET
2
TMDR
(normal)
3
TOER
(1)
5
PFC
(MTU2)
4
TIOR
(1 init
0 out)
6
TSTR
(1)
7
Match
8
Error
occurs
9
PFC
(PORT)
10
TSTR
(0)
11
TIOR
(0 init
0 out)
12
TIOR
(
disabled
)
13
TOER
(0)
14
TOCR
15
TMDR
(CPWM)
(16)
TOER
(1)
(17)
PFC
(MTU2)
(18)
TSTR
(1)
MTU2
module
output
TIOC3A
TIOC3B
TIOC3D
Port output
PE9
PE8
PE11
High-Z
High-Z
High-Z
Figure 11.119 Error Occurrence in Normal Mode,
Recovery in Complementary PWM Mode
1 to 10 are the same as in figure 11.115.
11. Initialize the normal mode waveform generation section with TIOR.
12. Disable operation of the normal mode waveform generation section with TIOR.
13. Disable channel 3 and 4 output with TOER.
14. Select the complementary PWM output level and cyclic output enabling/disabling with
TOCR.
15. Set complementary PWM.
16. Enable channel 3 and 4 output with TOER.
17. Set the multi-function timer pulse unit 2 output with the general I/O port.
18. Operation is restarted by TSTR.