Datasheet

30. TC – Timer/Counter
30.1 Overview
The TC consists of a counter, a prescaler, compare/capture channels and control logic. The counter can
be set to count events, or it can be configured to count clock pulses. The counter, together with the
compare/capture channels, can be configured to timestamp input events, allowing capture of frequency
and pulse width. It can also perform waveform generation, such as frequency generation and pulse-width
modulation (PWM).
30.2 Features
Selectable configuration
Up to five 16-bit Timer/Counters (TC), each configurable as:
8-bit TC with two compare/capture channels
16-bit TC with two compare/capture channels
32-bit TC with two compare/capture channels, by using two TCs
Waveform generation
Frequency generation
Single-slope pulse-width modulation
Input capture
Event capture
Frequency capture
Pulse-width capture
One input event
Interrupts/output events on:
Counter overflow/underflow
Compare match or capture
Internal prescaler
Can be used with DMA and to trigger DMA transactions
SAM D21 Family
TC – Timer/Counter
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001882D-page 662