English
Language : 

SH7211 Datasheet, PDF (552/1228 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family
Section 10 Multi-Function Timer Pulse Unit 2 (MTU2)
10.4.11 External Pulse Width Measurement
The pulse widths of up to three external input lines can be measured in channel 5.
(1) 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 10.87 Example of External Pulse Width Measurement Setting Procedure
(2) Example of External Pulse Width Measurement
MPφ
TIC5U
TCNT5_U
0000
0001 0002 0003 0004 0005 0006 0007
0007 0008 0009 000A 000B
Figure 10.88 Example of External Pulse Width Measurement
(Measuring High Pulse Width)
Rev. 2.00 May. 08, 2008 Page 528 of 1200
REJ09B0344-0200