User guide

63
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
Chapter 7. Timer/Counter Functions
7.1 Introduction:
The Timer and Counter functions of any microcontroller play an active role in system
design. These facilities enable the designers manage many difficult tasks with
ease and confidence. This part of the series gives a complete picture on the
R8C/Tiny Microcontroller’s timing features.
R8C/Tiny Microcontrollers sport plenty of timer functions to give the system
designers power to handle a variety of applications. These timers can be configured
in many modes like pulse output, pulse width measurement, waveform generation,
input capturing, output comparing, PWM generation, etc. This kind of flexibility
enables the designers power to implement complicated timing tasks without any
pain.
The following gives the list of different timing modes possible with the R8C/Tiny
micons:
Timer mode: This timer mode generates periodical interrupts.
Event counter mode: In this mode, the timers count external signals.
Pulse output modes: R8C/Tiny micons generate definable pulses at the timer
output pins.
Pulse width measuring mode: The width of the external pulses can be measured
using this mode.
Pulse period measurement mode: This mode measures the period of the
externally applied pulses.
Programmable waveform generation mode: R8C/Tiny micons can also
generate continuous pulse signals with definable period and the width.