Datasheet

Section 13 Timer RC
Rev. 1.50 Sep. 18, 2007 Page 217 of 584
REJ09B0240-0150
Section 13 Timer RC
Timer RC is a 16-bit timer having output compare and input capture functions. Timer RC can
count external events and output pulses with a desired duty cycle using the compare match
function between the timer counter and four general registers. Thus, it can be applied to various
systems.
13.1 Features
Selection of seven counter clock sources
Six internal clocks (φ, φ/2, φ/4, φ/8, φ/32, and φ40M which is a 40-MHz/32-MHz clock derived
from the on-chip oscillator) and an external clock (for counting external events)
Capability to process up to four pulse outputs or four pulse inputs
Four general registers
Can be used as output compare or input capture registers independently
Can be used as buffer registers for the output compare or input capture registers
Timer inputs and outputs
Timer mode
Waveform output by compare match (Selection of 0 output, 1 output, or toggle output)
Input capture function (Rising edge, falling edge, or both edges)
Counter clearing function (Counters can be cleared by compare match)
PWM mode
Generates up to three-phase PWM output with desired duty cycles.
PWM2 mode
Generates pulses with a desired period and duty cycle.
Any initial timer output value can be set
Five interrupt sources
Four compare match/input capture interrupts and an overflow interrupt.