EasyManua.ls Logo

Hitachi H8/500 Series - Timer ControlStatus Register (TCSR)

Hitachi H8/500 Series
459 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Bits 2, 1, and 0—Clock Select (CKS2, CKS1, and CKS0): These bits select the internal or
external clock source for the timer counter. For the external clock source they select whether to
increment the count on the rising or falling edge of the clock input, or on both edges.
Bit 2 Bit 1 Bit 0
CKS2 CKS1 CKS0 Description
0 0 0 No clock source (timer stopped). (Initial value)
0 0 1 Internal clock source (ø/8).
0 1 0 Internal clock source (ø/64).
0 1 1 Internal clock source (ø/1024).
1 0 0 No clock source (timer stopped).
1 0 1 External clock source, counted on the rising edge.
1 1 0 External clock source, counted on the falling edge.
1 1 1 External clock source, counted on both the rising
and falling edges.
11.2.4 Timer Control/Status Register (TCSR)
The TCSR is an 8-bit readable and partially writable* register that indicates compare-match and
overflow status and selects the effect of compare-match events on the timer output signal (TMO).
The TCSR is initialized to H'10 at a reset and in the standby modes.
* Software can write a “0” in bits 7 to 5 to clear the flags, but cannot write a “1” in these bits.
Bit 7—Compare-Match Flag B (CMFB): This status flag is set to “1” when the timer count
matches the time constant set in TCORB.
Bit 76543210
CMFB CMFA OVF OS3 OS2 OS1 OS0
Initial value 00010000
Read/Write R/(W)* R/(W)* R/(W)* R/W R/W R/W R/W
212
Downloaded from Elcodis.com electronic components distributor

Table of Contents

Related product manuals