User guide

67
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
The event counter mode is available in
Timer X and Timer RA. The external sig-
nal is applied to INT1/CNTR0 pin of the
Timer X and INT1/TRAIO pin of the Timer
RA. When the timing register underflows,
an interrupt also can be generated for fur-
ther processing. Apart from all above, either
rising or the falling edge of the input signal can
be selected as the active signal for the counting
operation. The Timer RA can introduce a digital fil-
ter with the suitable sampling frequency at the input
pin to receive the stable signals.
7.4 Pulse Width Measurement Mode:
In this mode, either high level or the low level of the input signal can be measured
using the counter operation of the TX and TRA Timers. The counter gets the re-
quired clock signals from different internal clock sources. The counter keeps count-
ing down as long as the selected level (either high or low) of the input signal is
available at the input pin.
During the counting operation, the reload registers keep loading the counters with
the initial set value during the underflow. An interrupt can also be generated to
indicate the end of the measurement.
The pulse width measuring facility is available with Timers X and RA. Timer X gets
the external input signal at the INT1/CNTR0 pin and Timer RA gets the input
signal at INT1/TRAIO. Timer RA can get stable input signals through the built in
noise filter.
D
a
t
a
4
D
e
s
i
g
n
In pulse width measure-
ment mode, either high
level or the low level of
the input signal can be
measured using the
counter operation of the TX and TRA
Timers. The counter keeps counting
down as long as the selected level
(either high or low) of the in-
put signal is available at
the input pin.