English
Language : 

SH7261 Datasheet, PDF (565/1348 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 12 Multi-Function Timer Pulse Unit 2 (MTU2)
12.4.10 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
Select counter clock
Select pulse width measuring
conditions
Start count operation
[1] [1] Use bits TPSC1 and TPSC0 in TCR to select the
counter clock.
[2] In TIOR, select the high level or low level for the pulse
[2]
width measuring condition.
[3] Set bits CST in TSTR to 1 to start count operation.
[3]
<External pulse width measurement>
Notes: 1. Do not set bits CMPCLR5U, CMPCLR5V, or CMPCLR5W in TCNTCMPCLR to 1.
2. Do not set bits TGIE5U, TGIE5V, or TGIE5W in TIER_5 to 1.
3. The value in TCNT is not captured in TGR.
Figure 12.77 Example of External Pulse Width Measurement Setting Procedure
(2) Example of External Pulse Width Measurement
Pφ
TIC5U
TCNT5_U
0000
0001 0002 0003 0004
0005
0006 0007 0008 0009
Figure 12.78 Example of External Pulse Width Measurement
(Measuring High Pulse Width)
Rev. 2.00 Sep. 07, 2007 Page 533 of 1312
REJ09B0320-0200