
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 280 of 730
Aug 05, 2011
17. Timer RC
Timer RC is a 16-bit timer that provides output compare and input capture functions and can count external events. It
can be used as a multifunction timer with various applications such as generation of pulse output with an arbitrary duty
cycle using the compare match between the timer RC counter and four general registers.
17.1
Overview
Table 17.1
Timer RC Specifications
Item
Description
Count sources
(counter input
clocks)
Internal clock
f1, f2, f4, f8, or f32:
Selected when bits CKS2 to CKS0 in the TRCCR1 register are 000b to 100b.
fHOCO: Selected when bits CKS2 to CKS0 in the TRCCR1 register are 110b.
fHOCO-F: Selected when bits CKS2 to CKS0 in the TRCCR1 register are
111b.
External clock
(external event
count)
TRCCLK input:
Selected when bits CKS2 to CKS0 in the TRCCR1 register are 101b.
Pulse I/O pins
4
General registers
4
Can be set as output compare or input capture registers individually.
Can be used as buffer registers for output compare or input capture.
Operating modes
Timer mode
Output compare function:
Low-level, high-level, or toggle output can be performed.
Input capture function:
A rising edge, falling edge, or both edges can be detected.
Counter clear function: A count period can be set.
PWM mode
PWM output with up to three phases.
PWM2 mode
Pulse output with an arbitrary period and duty.
Interrupt sources
Compare match/input capture multiplexed interrupt × 4 sources
Overflow interrupt
Others
The initial value of the timer RC output can be set arbitrarily.
A/D conversions triggered by compare matches in registers TRCGRA,
TRCGRB, TRCGRC, and TRCGRD can be set.
Timer RC can cooperate with the event link controller (ELC) or the DTC.
The INT0 pin can be used to control disabling of timer output.
The INT1 pin can be used to input timer RC_0 output waveform manipulation
events.