using pin change interrupts (pcie1)

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello:

I'm using a tiny26 & need to trigger an iterrupt on PA6 (or possibly PA7). It looks very possible to do so using the Pin change interrupt feature. However, I strongly prefer to only have that pin generate the interrupt. Apparently turining on this function also causes pb[7:4] & PA3 to do so as well. These pins are not used as special functions, only as standard I/O. Is it possible to trigger an interrupt only on PA6?

I suppose I can let any of these pins generate an interrupt then in the ISR, try to check if it was caused by pa6. If not, simply return. However, this does not seem too elegant, since this can cause a lot of nusiance interrupts.. Any thoughts? Too bad I am already using the INT0 pin for something else (& of course don't want to change the PCB). PA6 was available as a spare.

More specifically, I want to generate an interrupt when PA6 goes high (it will be high for a "lengthy" time--not needing "glitch capture" or anything of that nature).

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I agree with your interpretation of the datasheet. It does not look like there is a way to mask off individual pin change interrupts. The newer devices (I have used the mega169 pin change interrupts) have mask registers where you select the port pin that you want to cause the pin change interrupt.

Regards,
Steve