Tcc - Timer/Counter For Control Applications; Overview; Features - Atmel SAM L22G Manual

Table of Contents

Advertisement

36.
TCC – Timer/Counter for Control Applications
36.1.

Overview

The device provides one instance of the Timer/Counter for Control applications (TCC) peripheral.
Each TCC instance 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 time stamp input events, allowing capture of frequency and pulse-width. It
can also perform waveform generation such as frequency generation and pulse-width modulation.
Waveform extensions are intended for motor control, ballast, LED, H-bridge, power converters, and other
types of power control applications. They allow for low- and high-side output with optional dead-time
insertion. Waveform extensions can also generate a synchronized bit pattern across the waveform output
pins. The fault options enable fault protection for safe and deterministic handling, disabling and/or shut
down of external drivers.
36.2.

Features

Up to four compare/capture channels (CC) with:
Double buffered period setting
Double buffered compare or capture channel
Circular buffer on period and compare channel registers
Waveform generation:
Frequency generation
Single-slope pulse-width modulation (PWM)
Dual-slope pulse-width modulation with half-cycle reload capability
Input capture:
Event capture
Frequency capture
Pulse-width capture
Waveform extensions:
Configurable distribution of compare channels outputs across port pins
Low- and high-side output with programmable dead-time insertion
Waveform swap option with double buffer support
Pattern generation with double buffer support
Dithering support
Fault protection for safe disabling of drivers:
Two recoverable fault sources
Two non-recoverable fault sources
Debugger can be source of non-recoverable fault
Input events:
Two input events for counter
One input event for each channel
Output events:
Three output events (Count, Re-Trigger and Overflow) available for counter
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
795

Advertisement

Table of Contents
loading

Table of Contents