External Pulse Width Measurement - Renesas RX100 Series User Manual

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

Advertisement

RX13T Group
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.
Figure 19.92 shows an example of setting external pulse width measurement, and Figure 19.93 an example of external
pulse width measurement.
External pulse width
measurement
Select count clock
Select pulse width measuring
conditions
Start count operation
<External pulse width measurement>
Figure 19.92
Example of External Pulse Width Measurement Setting Procedure
PCLKB
MTIC5U
MTU5.TCNTU
Figure 19.93
Example of External Pulse Width Measurement (Measuring High Pulse Width)
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
[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
[1]
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.
[2]
Note:
[3]
0000h
0001h 0002h 0003h 0004h
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
0005h
0006h 0007h 0008h
0009h
Page 465 of 1041

Advertisement

Table of Contents
loading

Table of Contents