Timer Counters (Tcnt) - Hitachi H8/3022 Hardware Manual

H8/3022 series hitachi single-chip microcomputer
Table of Contents

Advertisement

Bits 3 and 2—Reserved: These bits cannot be modified and are always read as 1.
Bit 1—Output Level Select 4 (OLS4): Selects output levels in complementary PWM mode and
reset-synchronized PWM mode.
Bit 1
OLS4
Description
0
TIOCA
, TIOCA
3
1
TIOCA
, TIOCA
3
Bit 0—Output Level Select 3 (OLS3): Selects output levels in complementary PWM mode and
reset-synchronized PWM mode.
Bit 0
OLS3
Description
0
TIOCB
, TOCXA
3
1
TIOCB
, TOCXA
3

8.2.7 Timer Counters (TCNT)

TCNT is a 16-bit counter. The ITU has five TCNTs, one for each channel.
Chanel
Abbreviation
0
TCNT0
1
TCNT1
2
TCNT2
3
TCNT3
4
TCNT4
Bit
15
Initial value
0
Read/Write
R/W
Each TCNT is a 16-bit readable/writable register that counts pulse inputs from a clock source. The
clock source is selected by bits TPSC2 to TPSC0 in the timer control register (TCR).
206
, and TIOCB
pin outputs are inverted
4
4
, and TIOCB
pin outputs are not inverted
4
4
, and TOCXB
4
4
, and TOCXB
4
4
Function
Up-counter
Phase counting mode: up/down-counter
Other modes: up-counter
Complementary PWM mode: up/down-counter
Other modes: up-counter
14
13
12
11
0
0
0
0
R/W
R/W
R/W
R/W
pin outputs are inverted
pin outputs are not inverted
10
9
8
7
0
0
0
0
R/W
R/W
R/W
R/W
6
5
4
3
0
0
0
0
R/W
R/W
R/W
R/W
(Initial value)
(Initial value)
2
1
0
0
0
0
R/W
R/W
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents