h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 386

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 13 Timer Connection
13.4.3
Measurement of 8-Bit Timer Divided Waveform Period
The timer connection facility, TMR_1, and the free-running timer (FRT) can be used to measure
the period of an IHI signal divided waveform. Since TMR_1 can be cleared by a rising edge of the
inverted IVI signal, the rise and fall of the IHI signal divided waveform can be synchronized with
the IVI signal. This enables period measurement to be carried out efficiently.
To measure the period of an IHI signal divided waveform, TCNT in TMR_1 is set to count the
external clock (IHI signal) pulses and to be cleared on the rising edge of the external reset signal
(inverse of the IVI signal). The value to be used as the division factor is written in TCORA, and
the TMO output method is specified by the OS bits in TCSR.
Examples of TCR and TCSR settings in TMR_1, and TCR and TCSR settings in the FRT are
shown in table 13.6, and the timing chart for measurement of the IVI signal and IHI signal divided
waveform periods is shown in figure 13.5. The period of the IHI signal divided waveform is given
by (ICRD(3) – ICRD(2))
resolution.
Rev. 3.00 Mar 21, 2006 page 332 of 788
REJ09B0300-0300

Related parts for h8s-2161b