h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 363

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Each pair of registers for channel 0 and channel 1 comprises a 16-bit register with the upper 8 bits
for channel 0 and the lower 8 bits for channel 1, so they can be accessed together by word access.
(Access is not divided into two 8-bit accesses.)
In the H8S/2138 Group, certain of the channel X and channel Y registers are assigned to the same
address. The TMRX/Y bit in TCONRS determines which register is accessed.
12.2
12.2.1
Each TCNT is an 8-bit readable/writable up-counter.
TCNT0 and TCNT1 comprise a single 16-bit register, so they can be accessed together by word
access.
TCNT increments on pulses generated from an internal or external clock source. This clock source
is selected by clock select bits CKS2 to CKS0 in TCR.
TCNT can be cleared by an external reset input signal or compare-match signal. Counter clear bits
CCLR1 and CCLR0 in TCR select the method of clearing.
When TCNT overflows from H'FF to H'00, the overflow flag (OVF) in TCSR is set to 1.
The timer counters are initialized to H'00 by a reset and in hardware standby mode.
Bit
Initial value
Read/Write
TCNTX, TCNTY
Bit
Initial value
Read/Write
Register Descriptions
Timer Counter (TCNT)
R/W
15
0
R/W
7
0
R/W
14
0
R/W
13
0
R/W
6
0
R/W
12
TCNT0
0
R/W
11
0
R/W
5
0
R/W
10
0
R/W
9
0
R/W
4
0
R/W
8
0
R/W
Rev. 4.00 Jun 06, 2006 page 309 of 1004
7
0
R/W
3
0
R/W
6
0
R/W
5
0
R/W
2
0
R/W
TCNT1
4
0
Section 12 8-Bit Timers
R/W
3
0
R/W
REJ09B0301-0400
1
0
R/W
2
0
R/W
1
0
R/W
0
0
R/W
0
0

Related parts for h8s-2138