Microchip® Advanced Software Framework

tc_example2.c File Reference

AVR XMEGA TC Driver Example 2.

Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.

#include <conf_example.h>
#include <string.h>
#include <asf.h>

Functions

static void example_overflow_interrupt_callback (void)
 Timer Counter Overflow interrupt callback function. More...
 
int main (void)
 

static void example_overflow_interrupt_callback ( void  )
static

Timer Counter Overflow interrupt callback function.

This function is called when an overflow interrupt has occurred (50ms) on TIMER_PORT_LED and change PWM duty single generation on TIMER_PORT_LED CCA.

References TC_CCA, tc_read_cc(), and tc_write_cc().

Referenced by main().