Datasheet
Section 15 Timer RC
REJ09B0465-0300 Rev. 3.00 Page 441 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
Section 15 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.
Note: Timer RC is not supported in H8S/20223, H8S/20203, H8S/20215, and H8S/20235
Groups.
15.1 Features
• Selection of six counter clock sources
Five internal clocks (φ, φ/2, φ/4, φ/8, and φ/32) 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
Output compare function (Selection of 0 output, 1 output, or toggle output)
Input capture function (Rising edge, falling edge, or both edges can be detected.)
Counter clearing function (Counter cycle can be set.)
⎯ PWM mode
Generates up to three-phase PWM output.
⎯ 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.