English
Language : 

SH7058 Datasheet, PDF (411/1130 Pages) Renesas Technology Corp – Renesas SuperHTM RISC engine
An example of input capture operation is shown in figure 11.16.
In the example in figure 11.16, channel 1 is activated, and input capture operation is performed
with both-edge detection specified for TIO1A, rising-edge detection for TIO1B, and falling-edge
detection for TIO1C.
P
TCNT1
Clock
TCNT1 0000
0001
0002
0003
0004
0005
5678
5679
567A
567B
567C
567D
567E
TIO1A–1C
GR1A
GR1B
GR1C
TSR1
IMF1A
TSR1
IMF1B
TSR1
IMF1C
0003
0003
Cleared by software
567A
0003
567A
Cleared by software
Figure 11.16 Input Capture Operation
11.3.5 One-Shot Pulse Function
Channel 8 has sixteen down-counters (DCNT8A to DCNT8P) and corresponding external pins
(TO8A to TO8P) which can be used as one-shot pulse output pins.
When a value is set beforehand in DCNT and the corresponding bit in the down-counter start
register (DSTR) is set, DCNT starts counting down, and at the same time 1 is output from the
corresponding external pin. When DCNT reaches H'0000 the down-count stops, the corresponding
bit in the timer status register (TSR) is set, and 0 is output from the external pin. The
corresponding bit in DSTR is cleared automatically. By making the appropriate setting in the
interrupt enable register (TIER), an interrupt request can be sent to the CPU.
An example of one-shot pulse operation is shown in figure 11.17.
In the example in figure 11.17, H'0005 is set in DCNT and a down-count is started.
Rev. 3.0, 09/04, page 370 of 1086