ISR(INT0_vect)
{
Serial.println("PRESSED\n");
//asm volatile ("jmp 0");
}
ISR(PCINT0_vect)
{
Serial.println("PCINT 0 ocured\n");
}
ISR(PCINT1_vect)
{
Serial.println("PCINT1 occuren\n");
}
void setup() {
// put your setup code here, to run once:
cli();
EICRA=(EICRA&~(0x03<<ISC00)|(0x01<<ISC01));
EIMSK|=(0x01<<INT0);
SREG|=(0x01<<7);//sei()
//Configuring PCiNT05
cli();
PCICR=(0x01<<0);
PCMSK0=(0x01<<5);
SREG|=(0x01<<7);
//cli();
Serial.begin(9600);
Serial.println("Hi\n");
}
uint8_t i=20;
void loop() {
// put your main code here, to run repeatedly:
Serial.println(i);
i++;
delay(1000);
}