Cycle Measurement Mode - Renesas H8S/2100 Series Hardware Manual

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

Advertisement

(3)
CMF Set Timing when a Compare Match occurs
The CMF flag in TCMCSR is set in the last state where the values in TCMCNT and TCMMLCM
match in timer mode. Therefore, a compare match signal is not generated until a further cycle of
the TCMCNT input clock is generated after a match between the values in TCMCNT and
TCMMLCM. For details, see section 11.6.2, Conflict between TCMMLCM Write and Compare
Match. Figure 11.6 shows the timing with which the CMF flag is set.
φ
TCMCNT
TCMMLC
Compare match
signal
CMF
Figure 11.6 Timing of CMF Flag Setting on a Compare Match
11.4.2

Cycle Measurement Mode

When the TCMMDS bit in TCMCR is set to 1, the TCM operates in cycle measurement mode.
(1)
Counter Operation
Setting the TCMMDS bit in TCMCR to 1 selects cycle measurement mode, in which counting up
proceeds regardless of the setting of the CST bit in TCMCR. TCMCNT is cleared to H'0000 on
detection of the first edge in the measurement period and counts up from there. Figure 11.7 shows
an example of counter operation in cycle measurement mode.
φ
TCMCYI
TCMCNT
clear signal
TCMCNT
input clock
TCMCNT
Figure 11.7 Example of Counter Operation in Cycle Measurement Mode
N
N
H'0000
H'0001
Section 11 16-Bit Cycle Measurement Timer (TCM)
N + 1
N
H'0002
H'0003
Rev. 1.00 May 09, 2008 Page 305 of 954
H'0000
H'0001
REJ09B0462-0100

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2112r

Table of Contents