Datasheet

50. Timer Counter (TC)
50.1 Description
A Timer Counter (TC) module includes three identical TC channels. The number of implemented TC modules is
device-specific.
Each TC 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 multipurpose input/output signals
which can be configured by the user
. Each channel drives an internal interrupt signal which can be programmed to
generate processor interrupts.
The TC embeds a quadrature decoder (QDEC) connected in front of the timers and driven by TIOA0, TIOB0 and
TIOB1 inputs. When enabled, the QDEC performs the input lines filtering, decoding of quadrature signals and
connects to the timers/counters in order to read the position and speed of the motor through the user interface.
The TC block has two global registers which act upon all TC channels:
Block Control register (TC_BCR)—allows channels to be started simultaneously with the same instruction
Block Mode register (TC_BMR)—defines the external clock inputs for each channel, allowing them to be
chained
50.2 Embedded Characteristics
Total of 12 Channels
16-bit Channel Size
Wide Range of Functions Including:
Frequency measurement
Event counting
Interval measurement
Pulse generation
Delay timing
Pulse Width Modulation
Up/down capabilities
Quadrature decoder
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 multipurpose input/output signals acting as trigger event
Trigger/capture events can be directly synchronized by PWM signals
Internal Interrupt Signal
Read of the Capture Registers by the DMAC
Compare Event Fault Generation for PWM
Register Write Protection
SAM E70/S70/V70/V71 Family
T
imer Counter (TC)
© 2019 Microchip T
echnology Inc.
Datasheet
DS60001527D-page 1491