Download Print this page

Timer Counters (Tcnt) - Renesas F-ZTAT H8 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for F-ZTAT H8 Series:

Advertisement

Section 10 16-Bit Integrated Timer Unit (ITU)
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
1
TIOCA
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
1
TIOCB
10.2.7

Timer Counters (TCNT)

TCNT is a 16-bit counter. The ITU has five TCNTs, one for each channel.
Channel
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 TCR.
TCNT0 and TCNT1 are up-counters. TCNT2 is an up/down-counter in phase counting mode and
an up-counter in other modes. TCNT3 and TCNT4 are up/down-counters in complementary PWM
mode and up-counters in other modes.
Rev. 7.00 Sep 21, 2005 page 338 of 878
REJ09B0259-0700
, TIOCA
, and TIOCB
3
4
, TIOCA
, and TIOCB
3
4
, TOCXA
, and TOCXB
3
4
, TOCXA
, and TOCXB
3
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
10
0
0
0
0
R/W
R/W
R/W
R/W
R/W
outputs are inverted
4
outputs are not inverted
4
outputs are inverted
4
outputs are not inverted
4
9
8
7
6
0
0
0
0
0
R/W
R/W
R/W
R/W
(Initial value)
(Initial value)
5
4
3
2
0
0
0
0
R/W
R/W
R/W
R/W
R/W
1
0
0
0
R/W

Hide quick links:

Advertisement

loading