Data Sheet

610
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
29. TC – Timer/Counter
29.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).
29.2 Features
z Selectable configuration
z 8-, 16- or 32-bit TC, with compare/capture channels
z Waveform generation
z Frequency generation
z Single-slope pulse-width modulation
z Input capture
z Event capture
z Frequency capture
z Pulse-width capture
z One input event
z Interrupts/output events on:
z Counter overflow/underflow
z Compare match or capture
z Internal prescaler
z Can be used with DMA and to trigger DMA transactions