R01UH0822EJ0100 Rev.1.00
Page 409 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(1) Example of 16-Bit Phase Counting Mode Setting Procedure
shows an example of the phase counting mode setting procedure.
Figure 19.29
Example of 16-Bit Phase Counting Mode Setting Procedure
[1]
[3]
[1] Set the TMDR3.LWA bit of MTU1 to 0.
Set the TMDR1.MD[3:0] bits to select the
phase counting mode.
[2] When the MTU2 is set to phase counting
mode, select the A- or B-phase input
signal with the PHCKSEL bit in TMDR3.
This setting is not necessary for MTU1
because MTCLKA and MTCLKB are
always selected for A-phase and B-
phase, respectively.
[3] Set the CSTn bit in TSTRA to 1 to start
the count operation.
16-bit phase counting mode
16-bit select phase
counting mode
Start count operation
<16-bit phase counting mode>
[2]
Select A- or B-phase input
signal