210
If an OCRFL write and compare match signal generation occur simultaneously, the compare
match signal is invalid. However, if the written data and the counter value match, a compare
match signal will be generated at that point. As the compare match signal is output in
synchronization with the TCFL clock, a compare match will not result in compare match signal
generation if the clock is stopped.
If a TCFL write and overflow signal output occur simultaneously, the overflow signal is not
output.
9.5
Timer G
9.5.1
Overview
Timer G is an 8-bit timer with dedicated input capture functions for the rising/falling edges of
pulses input from the input capture input pin (input capture input signal). High-frequency
component noise in the input capture input signal can be eliminated by a noise canceler, enabling
accurate measurement of the input capture input signal duty cycle. If input capture input is not set,
timer G functions as an 8-bit interval timer.
1. Features
Features of timer G are given below.
•
Choice of four internal clock sources (ø/64, ø/32, ø/2, øw/2)
•
Dedicated input capture functions for rising and falling edges
•
Level detection at counter overflow
It is possible to detect whether overflow occurred when the input capture input signal was high
or when it was low.
•
Selection of whether or not the counter value is to be cleared at the input capture input signal
rising edge, falling edge, or both edges
•
Two interrupt sources: one input capture, one overflow. The input capture input signal rising
or falling edge can be selected as the interrupt source.
•
A built-in noise canceler eliminates high-frequency component noise in the input capture input
signal.
•
Watch mode, subactive mode and subsleep mode operation is possible when øw/2 is selected
as the internal clock.
•
Use of module standby mode enables this module to be placed in standby mode independently
when not used.