Pin Change Interrupt on PB3. Am I doing something daft?

PaulS:

ISR(PCINT0_vect) {

//Increment the volatile long val by 1...
  cli();
  val++;
  sei();

}



Interrupts are already disabled during an ISR call.



#define rxpin PB3



What value does PB3 have? Does setting that pin number to an INPUT pin make sense?

Which Arduino are you doing this on?

Thanks. I assumed when reading the datasheet the interrupts were disabled "on execution" which I didn't know if it meant on the first cycle of or after the entire interrupt vector...so I threw it in "just in case" . Will remove it now I know it means at the start of the execution of the ISR.

I made my own ATMEGA328P-PU based board. 16MHz crystal. ISP breakout.

PB3 is "IDE 11". Should I be using "11" when using the IDE to define pins?