English
Language : 

SH7206 Datasheet, PDF (613/1188 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
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
TIER_5 to 1.
Start count operation
[3]
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
Rev. 3.00 Jun. 18, 2008 Page 589 of 1160
REJ09B0191-0300