4 * Created on: 1 Dec 2009
9 #include <avr/interrupt.h>
10 #include <avr/sleep.h>
12 #include "avr_mcu_section.h"
13 AVR_MCU(F_CPU, "atmega48");
15 ISR(TIMER0_COMPA_vect)
21 // Set up timer0 - do not start yet
22 TCCR0A |= (1 << WGM01); // Configure timer 0 for CTC mode
23 TIMSK0 |= (1 << OCIE0A); // Enable CTC interrupt
24 OCR0A = 0xAA; // CTC compare value
26 //TCCR0B |= (1 << CS00) | (1 << CS01); // Start timer: clk/64
28 sei(); // Enable global interrupts
30 // here the interupts are enabled, but the interupt
31 // vector should not be called
34 // this should not be reached