I'm having trouble with pin change interrupts in the Tiny26..
The following code should generate pin change interrupts on PB7, PB6, PB5, PB4, PA7, PA6, and PA3 (based on datasheet's documentation of PCIE1).. It will generate pin change interrupts on PA3 but not PA6 or PA7 (I haven't tested PB).. Does anyone know what I'm missing?
Thanks in advance!
; main program reset: ldi temp, 0xff ; maximum RC clock out OSCCAL, temp ldi temp, 0xdf out SP, temp ; set stack pointer at top of SRAM sbi PORTB, txpin; init comm pin sbi DDRB, txpin ; set up PCINT1 ldi temp,(1<<PCIE1); pin change int mask set out GIMSK, temp sei ; enable ints ;loop waiting for interrupts loop: rjmp loop ;pin change interrupt vector PCIntV: in S,sreg ;store SREG rcall print_hello out SREG, S reti