Each TIOR is an 8-bit readable/writable register that selects the output compare or input capture
function for GRA and GRB, and specifies the functions of the TIOCA and TIOCB pins. If the
output compare function is selected, TIOR also selects the type of output. If input capture is
selected, TIOR also selects the edge or edges of the input capture signal.
TIOR is initialized to H'88 by a reset and in standby mode.
Bit 7—Reserved: Read-only bit, 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
Bit 4
IOB2
IOB1
IOB0
Function
0
0
0
No output at compare match
(Initial value)
1
0 output at GRB compare match
*
1
1
0
1 output at GRB compare match
*
1
1
Output toggles at GRB compare match
(1 output in channel 2)
*
1,
*
2
1
0
0
GRB captures rising edge of input
1
GRB captures falling edge of input
1
0
GRB captures both edges of input
1
Notes: 1. After a reset, the output is 0 until the first compare match.
2. Channel 2 output cannot be toggled by compare match. This setting selects 1 output
instead.
Bit
Initial value
Read/Write
7
—
1
—
6
IOB2
0
R/W
5
IOB1
0
R/W
4
IOB0
0
R/W
3
—
1
—
0
IOA0
0
R/W
2
IOA2
0
R/W
1
IOA1
0
R/W
I/O control A2 to A0
These bits select GRA
functions
Reserved bit
I/O control B2 to B0
These bits select GRB functions
Reserved bit
GRB is an output
compare register
GRB is an input
capture register
325
www.DataSheet4U.com