Hi I have been trying and reading to get interrupts working INT6, but i just cant get it to work. Eventually it will be used to wake it from sleep but at the moment i cant get it to do anything.
#include#include #define F_CPU 7372800 #include ISR(INT6_vect) //Input capture two { PORTD ^=_BV(PB7); _delay_ms(30); } int main(void) { DDRD |=_BV(7); PORTD|=_BV(7); PCICR |= (1 << PCIE0); PCMSK0 |= (1 << PCINT6); sei(); for(;;) { } }