p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 310

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 13 8-Bit Timer (TMR)
• Timer connection register I (TCONRI)
For both TMR_Y and TMR_X
• Timer XY control register (TCRXY)
Note: Some of the registers of TMR_X and TMR_Y use the same address. The registers can be
13.3.1
Each TCNT is an 8-bit readable/writable up-counter. TCNT_0 and TCNT_1 (or TCNT_X and
TCNT_Y) comprise a single 16-bit register, so they can be accessed together by word access. The
clock source is selected by the CKS2 to CKS0 bits in TCR. TCNT can be cleared by an external
reset input signal, compare-match A signal or compare-match B signal. The method of clearing
can be selected by the CCLR1 and CCLR0 bits in TCR. When TCNT overflows (changes from
H'FF to H'00), the OVF bit in TCSR is set to 1. TCNT is initialized to H'00.
13.3.2
TCORA is an 8-bit readable/writable register. TCORA_0 and TCORA_1 (or TCORA_X and
TCORA_Y) comprise a single 16-bit register, so they can be accessed together by word access.
TCORA is continually compared with the value in TCNT. When a match is detected, the
corresponding compare-match flag A (CMFA) in TCSR is set to 1. Note however that comparison
is disabled during the T
freely controlled by these compare-match A signals and the settings of output select bits OS1 and
OS0 in TCSR. TCORA is initialized to H'FF.
13.3.3
TCORB is an 8-bit readable/writable register. TCORB_0 and TCORB_1 (or TCORB_X and
TCORB_Y) comprise a single 16-bit register, so they can be accessed together by word access.
TCORB is continually compared with the value in TCNT. When a match is detected, the
corresponding compare-match flag B (CMFB) in TCSR is set to 1. Note however that comparison
is disabled during the T
freely controlled by these compare-match B signals and the settings of output select bits OS3 and
OS2 in TCSR. TCORB is initialized to H'FF.
Rev. 1.00 Sep. 21, 2006 Page 272 of 658
REJ09B0310-0100
switched by the TMRX/Y bit in TCONRS.
TCNT_Y, TCORA_Y, TCORB_Y, and TCR_Y can be accessed when the TMRX/Y bit in
TCONRS is set to 1. TCNT_X, TCORA_X, TCORB_X, and TCR_X can be accessed
when the TMRX/Y bit in TCONRS are cleared to 0.
Timer Counter (TCNT)
Time Constant Register A (TCORA)
Time Constant Register B (TCORB)
2
2
state of a TCORA write cycle. The timer output from the TMO pin can be
state of a TCORB write cycle. The timer output from the TMO pin can be

Related parts for p2125vps20