Renesas RX100 Series User Manual page 515

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

Advertisement

RX13T Group
(17) Operation When Error Occurs in Phase Counting Mode and Operation is Restarted in Normal
Mode
Figure 19.159 shows a case in which an error occurs in phase counting mode and operation is restarted in normal mode
after re-setting.
MTU module output
MTIOCnA
MTIOCnB
PORT output
Pxx
Pxx
Figure 19.159
Error Occurrence in Phase Counting Mode, Recovery in Normal Mode
(1) After a reset, the MTU output goes low and the ports enter high-impedance state.
(2) Set phase counting mode.
(3) Initialize the pins with the TIOR register. (In the example, the initial output is a high level, and a low level is output
on compare match occurrence.)
(4) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(5) Start count operation by setting the TSTRA register.
(6) Output goes low on compare match occurrence.
(7) An error occurs.
(8) Allow non-active level output 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.
(9) Stop count operation by setting the TSTRA register.
(10) Set normal mode.
(11) Initialize the pins with the TIOR register.
(12) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(13) Restart operation by setting the TSTRA register.
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
(1)
(2)
(3)
(4)
(5)
Reset
TMDR
TIOR
MPC
TSTR
Match
(PCM)
(1 init
(MTU)
(1)
0 out)
Hi-Z
Hi-Z
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(6)
(8)
(9)
(9)
(10)
(11)
Error
Port
TSTR
TMDR
TIOR
occurs
output
(0)
(normal)
(1 init
0 out)
(12)
(13)
MPC
TSTR
(MTU)
(1)
Page 515 of 1041

Advertisement

Table of Contents
loading

Table of Contents