Tc - Timer/Counter; Overview; Features - Atmel SAM L22G Manual

Table of Contents

Advertisement

35.
TC – Timer/Counter
35.1.

Overview

There are up to four TC peripheral instances.
Each TC consists of a counter, a prescaler, compare/capture channels and control logic. The counter can
be set to count events, or clock pulses. The counter, together with the compare/capture channels, can be
configured to timestamp input events or IO pin edges, allowing for capturing of frequency and/or pulse
width.
A TC can also perform waveform generation, such as frequency generation and pulse-width modulation.
35.2.

Features

Selectable configuration
8-, 16- or 32-bit TC operation, with compare/capture channels
2 compare/capture channels (CC) with:
Double buffered timer period setting (in 8-bit mode only)
Double buffered compare channel
Waveform generation
Frequency generation
Single-slope pulse-width modulation
Input capture
Event / IO pin edge capture
Frequency capture
Pulse-width capture
Time-stamp capture
One input event
Interrupts/output events on:
Counter overflow/underflow
Compare match or capture
Internal prescaler
DMA support
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
743

Advertisement

Table of Contents
loading

Table of Contents