Operation; Timer Mode - Renesas H8S/2100 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S/2100 Series:
Table of Contents

Advertisement

11.4

Operation

The TCM operates in timer mode or cycle measurement mode. TCM is in timer mode after a reset.
11.4.1

Timer Mode

When the TCMMDS bit in TCMCR is cleared to 0, TCM operates in timer mode.
(1)
Counter Operation
TCMCNT operates as a free running counter in timer mode. TCMCNT starts counting up when
the CST bit in TCMCR is set to 1. When TCMCNT overflows (the value changes from H'FFFF to
H'0000), the OVF bit in TCMCSR is set to 1 and an interrupt request is generated if the OVIE bit
in TCMIER is 1. Figure 11.2 shows an example of free running counter operation. In addition,
figure 11.3 shows TCMCNT count timing of external clock operation. The external clock should
have a pulse width of no less than 1.5 cycles. The counter will not operate correctly if the pulses
are narrower than this.
φ
φ/4
TCMCNT
input clock
TCMCNT
Figure 11.2 Example of Free Running Counter Operation
φ
TCMCKI
TCMCNT
input clock
TCMCNT
Figure 11.3 Count Timing of External Clock Operation (Falling Edges)
Section 11 16-Bit Cycle Measurement Timer (TCM)
N - 1
N - 1
N
N
Rev. 1.00 Apr. 28, 2008 Page 317 of 994
REJ09B0452-0100
N + 1
N + 1

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2117r seriesR4f2117r

Table of Contents