
101
4958B–AUTO–11/10
Atmel ATA6285/ATA6286 [Preliminary]
3.13.7
Timer3/Counter3
The 16-bit Timer/Counter unit allows accurate program execution timing (event management),
wave generation, and signal timing measurement. The main features are:
True 16-bit Design (i.e., allow a 16-bit PWM)
Eight Different Selectable Input Clocks for the Timer/Counter3
Two Independent Compare Units
Input Capture Noise Canceler
One Input Capture Unit with Noise Canceler
Clear Timer on Compare Match or Capture Event
Variable PWM Period
Frequency Generator
External Event Counter
Four Independent Interrupt Sources (T3CAP, T3COMA, T3COMB, T3OVF)
Figure 3-47. Timer3 Block Diagram
Timer3 consists of an 16-bit up counter with two compare registers (T3CORA, T3CORB) and
one capture register (T3ICR). The timer can be used as event counter, as timer and as signal
generator. Its output can be programmed as modulator. The two compare registers allow various
modes of signal generation and modulation. The counter can be driven by internal and external
clock sources. For the capture signals (T3ICP, CLK
T1, CLKT2, LFDO) it has a programmable
edge sensitive input with digital filtering unit (Noise Canceler) for reducing the chance of captur-
ing noise spikes. In the capture mode the counter value can be captured by a programmable
capture event from the internal Timer1 output (CLK
T1), Timer2 output (CLKT2), by an external
event (T3ICP), by the LF-Receiver output signal (LFDO) at the capture input pin or with a soft-
ware capture event by setting the T3SCE bit.
The special functionalities of this timer are the capture event trigger, re-start and single action
modes. In the single action mode the counter counts up once to the programmed compare
match value. These modes are very useful for modulation, signal generation, signal measure-
ment and phase controlling. Timer3 has a modulator output stage. As modulator or as sensor
measurement stage it works together with Timer2.
T3MRA
Edge detect
and
Noise canceler
16-bit Counter
MUX
Modulator
T3ICR
T3IMR
T3IFR
T3CAP
T3COMA
T3COMP
CL3
T2I
T3I
SCH
CLT
T3ICP
T3CPE
T3CRA
T3CRB
T3CORA
T3CORB
T3MRB
M2
CLKT3
CLKI/O
CLKT2
CLKT1
CLKT0
LFDO
CLKT1
CLKT2
T3OVF
T3O