Tcm Status Register (Tcmcsr) - Renesas H8S/2100 Series Hardware Manual

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

Advertisement

11.3.6

TCM Status Register (TCMCSR)

TCMCSR is an 8-bit readable/writable register that controls operation of the interrupt sources.
Initial
Bit
Bit Name
Value
7
OVF
0
6
MAXOVF
0
5
CMF
0
4
CKSEG
0
R/W
Description
R/(W)* Timer Overflow
This flag indicates that the TCMCNT has overflowed.
[Setting condition]
Overflow of TCMCNT (change in value from H'FFFF to
H'0000)
[Clearing condition]
Reading OVF when OVF = 1 and then writing 0 to OVF.
R/(W)* Measurement Period Upper Limit Overflow
This flag indicates that the measured number of cycles of
the waveform for measurement in cycle measurement mode
has reached the upper limit set in TCMMLCM, causing an
overflow.
[Setting condition]
A greater value for TCMICR than TCMMLCM
[Clearing condition]
Reading MAXOVF when MAXOVF = 1 and then writing 0 to
MAXOVF
R/(W)* Compare Match Flag (only valid in timer mode)
[Setting condition]
When the values in TCMCNT and TCMMLCM match.
[Clearing condition]
Reading CMF when CMF = 1 and then writing 0 to CMF
Note: CMF is not set in cycle measurement mode, even
when the values in TCMCNT and TCMMLCM match.
R/W
External Clock Edge Select
When bits CKS2 to CKS0 in TCMCR are set to B'111, this
bit selects the edge for counting of external count clock
edge.
0: Count falling edges of the external clock.
1: Count rising edges of the external clock.
Section 11 16-Bit Cycle Measurement Timer (TCM)
Rev. 1.00 May 09, 2008 Page 297 of 954
REJ09B0462-0100

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2112r

Table of Contents