Timer Control Register V1 (Tcrv1) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

11.2.5

Timer Control Register V1 (TCRV1)

Bit
7
Initial value
1
Read/Write
TCRV1 is an 8-bit read/write register that selects the valid edge at the TRGV pin, enables TRGV
input, and selects the clock input to TCNTV.
TCRV1 is initialized to H'E2 upon reset and in subsleep mode and subactive mode.
Bits 7 to 5—Reserved Bits: Bit 7 to 5 are reserved; they are always read as 1, and cannot be
modified.
Bits 4 and 3—TRGV Input Edge Select (TVEG1, TVEG0): Bits 4 and 3 select the TRGV input
edge.
Bit 4: TVEG1
Bit 3: TVEG0
0
0
1
1
0
1
Bit 2—TRGV Input Enable (TRGE): Bit 2 enables TCNTV counting to be triggered by input at
the TRGV pin, and enables TCNTV counting to be halted when TCNTV is cleared by compare
match. TCNTV stops counting when TRGE is set to 1, then starts counting when the edge selected
by bits TVEG1 and TVEG0 is input at the TRGV pin.
Bit 2: TRGE
0
1
Bit 1—Reserved Bit: Bit 1 is reserved; it is always read as 1, and cannot be modified.
Bit 0—Internal Clock Select 0 (ICKS0): Bit 0 and bits CKS2 to CKS0 in TCRV0 select the
TCNTV clock source. For details see 11.2.3 Timer Control Register V0.
6
1
Description
TRGV trigger input is disabled
Rising edge is selected
Falling edge is selected
Rising and falling edges are both selected
Description
TCNTV counting is not triggered by input at the TRGV pin, and does not stop
when TCNTV is cleared by compare match
TCNTV counting is triggered by input at the TRGV pin, and stops when TCNTV
is cleared by compare match
5
4
TVEG1
TVEG0
1
0
R/W
3
2
TRGE
0
0
R/W
R/W
1
0
ICKS0
1
0
R/W
(Initial value)
(Initial value)
177

Advertisement

Table of Contents
loading

Table of Contents