English
Language : 

SH7125_08 Datasheet, PDF (332/774 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 9 Multi-Function Timer Pulse Unit 2 (MTU2)
9.4.10 External Pulse Width Measurement
The pulse widths of up to three external input lines can be measured in channel 5.
Example of External Pulse Width Measurement Setting Procedure:
External pulse width
measurement
[1] Use bits TPSC1 and TPSC0 in TCR to select the
counter clock.
Select counter clock
[2] In TIOR, select the high level or low level for the pulse
[1]
width measuring condition.
[3] Set bits CST in TSTR to 1 to start count operation.
Select pulse width measuring [2] Notes: 1. Do not set bits CMPCLR5U, CMPCLR5V, or
conditions
CMPCLR5W in TCNTCMPCLR to 1.
2. Do not set bits TGIE5U, TGIE5V, or TGIE5W in
Start count operation
[3]
TIER_5 to 1.
3. The value in TCNT is not captured in TGR.
<External pulse width measurement>
Figure 9.77 Example of External Pulse Width Measurement Setting Procedure
Example of External Pulse Width Measurement:
MPφ
TIC5U
TCNT5_U
0000 0001 0002 0003 0004 0005 0006 0007
0007 0008 0009 000A 000B
Figure 9.78 Example of External Pulse Width Measurement
(Measuring High Pulse Width)
Rev. 4.00 Jul. 25, 2008 Page 312 of 750
REJ09B0243-0400