Atmel SAM4L Xplained Pro Starter Kit Atmel ATSAM4L-XSTK ATSAM4L-XSTK Data Sheet

Product codes
ATSAM4L-XSTK
Page of 1204
801
42023E–SAM–07/2013
ATSAM4L8/L4/L2
30. Timer/Counter (TC)
Rev: 4.0.2.0
30.1
Features
Three 16-bit Timer Counter channels
A wide range of functions including: 
– Frequency measurement
– Event counting
– Interval measurement
– Pulse generation
– Delay  timing
– Pulse width modulation
– Up/down capabilities
– 2-bit gray up/down count for stepper motor
Each channel is user-configurable and contains:
– Three external clock inputs
– Five internal clock inputs
– Two multi-purpose input/output signals
Internal  interrupt signal
Two global registers that act on all three TC channels
Configuration registers can be write protected
Peripheral event input on all A/B lines in capture mode
30.2
Overview
The Timer Counter (TC) includes three identical 16-bit Timer Counter channels.
Each channel can be independently programmed to perform a wide range of functions including
frequency measurement, event counting, interval measurement, pulse generation, delay timing,
and pulse width modulation.
Each channel has three external clock inputs, five internal clock inputs, and two multi-purpose
input/output signals which can be configured by the user. Each channel drives an internal inter-
rupt signal which can be programmed to generate processor interrupts.
The TC block has two global registers which act upon all three TC channels.
The Block Control Register (BCR) allows the three channels to be started simultaneously with
the same instruction.
The Block Mode Register (BMR) defines the external clock inputs for each channel, allowing
them to be chained.