
R8C/38T-A Group
17. Timer RC
Under development Preliminary document
Specifications in this document are tentative and subject to change.
R01UH0241EJ0010 Rev.0.10
Page 297 of 730
Aug 05, 2011
17.3
Operation
Tables 17.7 to
17.10 list the settings of pins TRCIOA to TRCIOD. For the assignments of pins TRCIOA to
X: 0 or 1
Table 17.6
Timer RC Operating Modes
Item
Description
Timer mode
The output compare and input capture functions are used by setting bits IOA0 to IOA2 and IOB0 to
IOB2 in the TRCIOR0 register and bits IOC0 to IOC3 and IOD0 to IOD3 in the TRCIOR1 register.
PWM mode
PWM mode is used by setting bits PWMB to PWMD in the TRCMR register.
PWM2 mode
PWM2 mode is used by setting the PWM2 bit in the TRCMR register.
Table 17.7
TRCIOA Pin Settings
Register
TRCOER
TRCMR
TRCIOR0
Function
Bit
EA
PWM2
IOA2
IOA1
IOA0
Setting
value
010
0
1
Timer mode waveform output (output compare function)
1X
X
1
X
Timer mode (input capture function)
Other than the above
I/O port
Table 17.8
TRCIOB Pin Settings
Register
TRCOER
TRCMR
TRCIOR0
Function
Bit
EB
PWM2
PWMB
IOB2
IOB1
IOB0
Setting
value
0
X
PWM2 mode waveform output
0
1
X
PWM mode waveform output
0
100
0
1
Timer mode waveform output (output compare function)
1X
X
1
0
1
X
Timer mode (input capture function)
Other than the above
I/O port
Table 17.9
TRCIOC Pin Settings
Register
TRCOER
TRCMR
TRCIOR1
Function
Bit
EC
PWM2
PWMC
IOC2
IOC1
IOC0
Setting
value
0
1
X
PWM mode waveform output
0
100
0
1
Timer mode waveform output (output compare function)
1X
X
1
0
1
X
Timer mode (input capture function)
PWM2 = 1 and other than the above
I/O port
Table 17.10
TRCIOD Pin Settings
Register
TRCOER
TRCMR
TRCIOR1
Function
Bit
ED
PWM2
PWMD
IOD2
IOD1
IOD0
Setting
value
0
1
X
PWM mode waveform output
0
100
0
1
Timer mode waveform output (output compare function)
1X
X
1
0
1
X
Timer mode (input capture function)
PWM2 = 1 and other than the above
I/O port