RX610 Group
15. 16-Bit Timer Pulse Unit (TPU)
R01UH0032EJ0120 Rev.1.20
Page 469 of 1006
Feb 20, 2013
15.2.3
Timer I/O Control Register (TIORH, TIORL, TIOR)
•
Unit 0 (TPU0.TIORH, TPU1.TIOR, TPU2.TIOR, TPU3.TIORH, TPU4.TIOR, TPU5.TIOR)
Unit 1 (TPU6.TIORH, TPU7.TIOR, TPU8.TIOR, TPU9.TIORH, TPU10.TIOR, TPU11.TIOR)
Addresses: TPU0.TIORH 0008 8112h, TPU1.TIOR 0008 8122h, TPU2.TIOR 0008 8132h
TPU3.TIORH 0008 8142h, TPU4.TIOR 0008 8152h, TPU5.TIOR 0008 8162h
TPU6.TIORH 0008 8182h, TPU7.TIOR 0008 8192h, TPU8.TIOR 0008 81A2h
TPU9.TIORH 0008 81B2h, TPU10.TIOR 0008 81C2h, TPU11.TIOR 0008 81D2h
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
0
0
0
0
0
0
0
0
IOA[3:0]
IOB[3:0]
Bit
Symbol
Bit Name
Description
R/W
b3 to b0
IOA[3:0]
TGRA Control
See tables 15.15 to 15.20.
R/W
b7 to b4
IOB[3:0]
TGRB Control
See tables 15.15 to 15.20.
R/W
•
Unit 0 (TPU0.TIORL, TPU3.TIORL)
Unit 1 (TPU6.TIORL, TPU9.TIORL)
Addresses: TPU0.TIORL 0008 8113h, TPU3.TIORL 0008 8143h
TPU6.TIORL 0008 8183h, TPU9.TIORL 0008 81B3h
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
0
0
0
0
0
0
0
0
IOC[3:0]
IOD[3:0]
Bit
Symbol
Bit Name
Description
R/W
b3 to b0
IOC[3:0]
TGRC Control
See tables 15.21 and 15.22.
R/W
b7 to b4
IOD[3:0]
TGRD Control
See tables 15.21 and 15.22.
R/W
The TPU has four TIORH registers, one for TPU0, TPU3, TPU6, and TPU9, and four TIORL registers, one for TPU0,
TPU3, TPU6, and TPU9, and also has eight TIOR registers, one for TPU1, TPU2, TPU4, TPU5, TPU7, TPU8, TPU10,
and TPU11. Thus the TPU has sixteen timer I/O control registers in total.
TIORH, TIORL, and TIOR control registers TGRA, TGRB, TGRC, and TGRD.
Note that TIORH, TIORL, and TIOR are affected by the TMDR setting.
The initial output specified by TIORH, TIORL, and TIOR is valid when the counter is stopped (the CSTj bit (j = 0 to 5)
in TSTRm (m = A, B) is cleared to 0). In PWM mode 2, the output at the time when the TCNT counter is cleared to 0 is
specified.
When TGRC or TGRD is specified for buffer operation, this setting is invalid and the register operates as a buffer
register.
To specify the input capture pin in TIORH, TIORL, or TIOR, set the bit in the data direction register (DDR) for the
corresponding pin to 0 (input port), and set the bit in the input buffer control register (ICR) to 1 (input buffer of the
corresponding pin is enabled). For details, see section 14, I/O Ports.