General Registers (Gra, Grb) - Renesas H8/3067 Series User Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for H8/3067 Series:
Table of Contents

Advertisement

The TCNTs are linked to the CPU by an internal 16-bit bus and can be written or read by either
word access or byte access.
Each TCNT is initialized to H'0000 by a reset and in standby mode.
9.2.8

General Registers (GRA, GRB)

The general registers are 16-bit registers. The 16-bit timer has 6 general registers, two in each
channel.
Channel
Abbreviation
0
GRA0, GRB0
1
GRA1, GRB1
2
GRA2, GRB2
Bit
15
Initial value
1
R/W
Read/Write
A general register is a 16-bit readable/writable register that can function as either an output
compare register or an input capture register. The function is selected by settings in TIOR.
When a general register is used as an output compare register, its value is constantly compared
with the TCNT value. When the two values match (compare match), the IMFA or IMFB flag is set
to 1 in TISRA/TISRB. Compare match output can be selected in TIOR.
When a general register is used as an input capture register, rising edges, falling edges, or both
edges of an external input capture signal are detected and the current TCNT value is stored in the
general register. The corresponding IMFA or IMFB flag in TISRA/TISRB is set to 1 at the same
time. The valid edge or edges of the input capture signal are selected in TIOR.
TIOR settings are ignored in PWM mode.
General registers are linked to the CPU by an internal 16-bit bus and can be written or read by
either word access or byte access.
General registers are initialized to the output compare function (with no output signal) by a reset
and in standby mode. The initial value is H'FFFF.
14
13
12
11
10
1
1
1
1
R/W
R/W
R/W
R/W
R/W
Function
Output compare/input capture register
9
8
7
6
1
1
1
1
1
R/W
R/W
R/W
R/W
Rev. 4.00 Jan 26, 2006 page 351 of 938
Section 9 16-Bit Timer
5
4
3
2
1
1
1
1
R/W
R/W
R/W
R/W
R/W
REJ09B0276-0400
1
0
1
1
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents