R01UH0822EJ0100 Rev.1.00
Page 465 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.3.11
External Pulse Width Measurement
The pulse widths of up to three external input lines can be measured in MTU5.
When the IOC[4:0] bits in MTU5.TIORU, MTU5.TIORV, MTU5.TIORW are set for pulse width measurement, the pulse
width of the signal input to the MTIC5U, MTIC5V, and MTIC5W pins are measured. TCNTU, TCNTV, and TCNTW
count up while the level specified by the IOC[4:0] bits is input.
shows an example of setting external pulse width measurement, and
pulse width measurement.
Figure 19.92
Example of External Pulse Width Measurement Setting Procedure
Figure 19.93
Example of External Pulse Width Measurement (Measuring High Pulse Width)
[1]
[2]
[3]
External pulse width
measurement
Select count clock
Select pulse width measuring
conditions
Start count operation
<External pulse width measurement>
[1] Use the TPSC1 and TPSC0 bits in MTU5.TCRU, MTU5.TCRV, or
MTU5.TCRW to select the count clock.
[2] In MTU5.TIORU, MTU5.TIORV, or MTU5.TIORW, select the high level
or low level for the pulse width measuring condition.
[3] Set bit CSTU5, CSTV5, or CSTW5 in MTU5.TSTR to 1 to start count
operation.
Note:
0000h
MTU5.TCNTU
MTIC5U
0001h 0002h 0003h 0004h
0005h
0006h 0007h 0008h
0009h
PCLKB