Datasheet

Section 9 16-Bit Timer Pulse Unit (TPU)
Rev.7.00 Feb. 14, 2007 page 318 of 1108
REJ09B0089-0700
Bits 7 to 4— I/O Control B3 to B0 (IOB3 to IOB0)
I/O Control D3 to D0 (IOD3 to IOD0):
Bits IOB3 to IOB0 specify the function of TGRB.
Bits IOD3 to IOD0 specify the function of TGRD.
Channel
Bit 7
IOB3
Bit 6
IOB2
Bit 5
IOB1
Bit 4
IOB0
Description
0 0 0 0 0 Output disabled (Initial value)
1
0 output at compare match
1 0 1 output at compare match
1
TGR0B
is output
compare
register
Initial output is 0
output
Toggle output at compare
match
1 0 0 Output disabled
1 0 output at compare match
1 0
Initial output is 1
output
1 output at compare match
1 Toggle output at compare
match
1 0 0 0 Input capture at rising edge
1 Input capture at falling edge
1 ×
Capture input
source is
TIOCB0 pin
Input capture at both edges
1 × ×
TGR0B
is input
capture
register
Capture input
source is channel
1/count clock
Input capture at TCNT1
count-up/count-down
*
×: Don’t care
Note: * When bits TPSC2 to TPSC0 in TCR1 are set to B'000 and φ/1 is used as the TCNT1
count clock, this setting is invalid and input capture is not generated.