Back to DRIVERS page

AVR UC3 Series Software Framework: Timer Counter Driver

Copyright © 2009 Atmel Corporation

Introduction

The Timer Counter (TC) includes three identical 16-bit Timer Counter channels. Each 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.

Timer Counter Driver

The driver is composed of tc.c and tc.h.

 

Four examples are available:

  • EXAMPLE1: start a timer/counter and generate a PWM on the output,
  • EXAMPLE2: start a timer/counter and generate a PWM on the output with a duty cycle depending on the period of the input Timer/counter signal,
  • EXAMPLE3: start a timer/counter and generate "tick" interrupts.
  • EXAMPLE4 on UC3L: using the Peripheral Event System, upon a GPIO pin change, an event triggers a TC.Ai capture.
  •  


    AVR is a registered trademark of Atmel Corporation.