English
Language : 

SH7080 Datasheet, PDF (659/1644 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 11 Multi-Function Timer Pulse Unit 2 (MTU2)
11.4.11 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
TIER_5 to 1.
Start count operation
[3]
3. The value in TCNT is not captured in TGR.
<External pulse width measurement>
Figure 11.87 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 11.88 Example of External Pulse Width Measurement
(Measuring High Pulse Width)
Rev. 3.00 May 17, 2007 Page 601 of 1582
REJ09B0181-0300