Timer I/O Control Register 0 (Tior0) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

12.2.5

Timer I/O Control Register 0 (TIOR0)

Bit
7
Initial value
1
Read/Write
TIOR0 is an 8-bit read/write register that selects the output compare or input capture function for
GRA and GRB, and specifies the functions of the FTIOA and FTIOB pins. If the output compare
function is selected, TIOR0 also selects the type of output. If input capture is selected, TIOR0 also
selects the edges of the input capture signal.
TIOR0 is initialized to H'88 by a reset.
Bit 7—Reserved: This bit cannot be modified and is always read as 1.
Bits 6 to 4—I/O Control B2 to B0 (IOB2 to IOB0): These bits select the GRB function.
Bit 6:
Bit 5:
IOB2
IOB1
0
0
1
1
0
1
Notes: 1. After a reset, the output conforms to the TOB setting in TCRW until the first compare
match.
2. Don't care
Bit 3—Reserved: This bit cannot be modified and is always read as 1.
6
5
IOB2
IOB1
0
0
R/W
R/W
Bit 4:
IOB0
Function
0
GRB is an output
compare register
1
0
1
0
GRB is an input
capture register
1
2
*
2
*
4
3
IOB0
0
1
R/W
No output at compare match
0 output at GRB compare match*
1 output at GRB compare match*
Output toggles at GRB compare match*
Input capture at rising edge
Input capture at falling edge
Input capture at both edges
2
1
IOA2
IOA1
0
0
R/W
R/W
(Initial value)
1
1
0
IOA0
0
R/W
1
203

Advertisement

Table of Contents
loading

Table of Contents