English
Language : 

SH7055S Datasheet, PDF (403/1002 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
When the ITVE bit for the desired timing is set, an interrupt can be requested when the
corresponding bit of TCNT0 changes to 1. At this time, the corresponding bit of the timer status
register (TSR0) is set. There are four interrupt sources for the respective ITVRR registers, but
there is only one interrupt vector.
To suppress interrupts and A/D converter activation, ITVRR bits should be cleared to 0.
An example of interval timer function operation is shown in figure 11.19.
In the example in figure 11.19, TCNT0 is started by setting ITVE to 1 in ITVRR1.
Pø
TCNT0
Clock
TCNT0 0000003C 0000003D 0000003E 0000003F 00000040 0000007E 0000007F 00000080 00000081 00000082 00000083 00000084 00000085
Internal
detection
signal
In case of bit 6 detection
In case of bit 7 detection
AD
activation
trigger
Figure 11.19 Interval Timer Function
11.3.8 Twin-Capture Function
Channel 0 input capture register ICR0A, channel 1 offset base register 1 (OSBR1), and channel 2
offset base register 2 (OSBR2) can be made to perform input capture in response to the same
trigger by means of a setting in timer I/O control register 0 (TIOR0).
When TCNT0, TCNT1A, and TCNT2A in channel 0, channel 1, and channel 2 are started by a
setting in the timer status register (TSR), and an edge detection is carried out by the ICR0A input
as a trigger signal, the TCNT1A value is transferred to OSBR1, and the TCNT2A value to
OSBR2. Edge detection is as described in section 11.3.4, Input Capture Function.
An example of twin-capture operation is shown in figure 11.20.
Rev.2.0, 07/03, page 365 of 960