User guide

73
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
Now, we discuss the operation of this timer
using Timer C as reference.
As you know well, Timer C is based on 16
bit counter running from zero with the selected
input clock signal. The content of this timer is
compared with the contents of TM0 register for
every count. When the match is identified, timer
output line changes its level. But the counting of
timer continuous further and the counter contents are
continuously in check for the match with the contents
of other compare register, TM1. When there is a match,
again timer output pin changes its level and at the same time
timer contents are initialized to zero and then the operation continues
further.
Hence, the timer output gets both high and low levels alternatively and a square
waveform is generated.
Apart from the changes at the output pin, interrupts can also be generated for the
content matches of both compare circuits along with the Timer C overflow.
D
a
t
a
4
D
e
s
i
g
n
For every match with
the compare register,
timer output pin
changes its level and
at the same time
timer contents are initialized to zero
and then the operation continues
further. Hence, the timer output
gets both high and low levels
alternatively and a square
waveform is gener-
ated.