4 * Created on: 1 Dec 2009
9 #include <avr/interrupt.h>
11 #include "avr_mcu_section.h"
12 AVR_MCU(F_CPU, "atmega48");
14 ISR(TIMER0_COMPA_vect)
22 // Set up timer0 - do not start yet
23 TCCR0A |= (1 << WGM01); // Configure timer 0 for CTC mode
24 TIMSK0 |= (1 << OCIE0A); // Enable CTC interrupt
25 OCR0A = 0xAA; // CTC compare value
27 sei(); // Enable global interrupts
29 // here the interupts are enabled, but the interupt
30 // vector should not be called