Interupts

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

Hello everyone,
I am woundering how to set up a interrupt, that get's triggerred when a specific pin gets set to HIGH

/Anders

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

What controller are you using?

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

AT90S8515

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

For the AT90S8515 only two (INT0 and INT1) dedicated pins can offer funcionality you need. Performing some software "cheats" you can adapt next five pins (T0, T1, OC1A, OC1B, AIN0).
In fact you need "PIN CHANGE" interrupt function. Look at the "Devices" page to find AVRs with this feature.
Another solution is to perform scan using timer interrupt(s). It is possible to scan pins a few thausend times per second, but of course it depends on your application.

Reagrds,

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

I solved the problem now, I decided to use timer interrupts
I decided to use a timer for it and a function to check the input's I want checked once or of if it's being held down.
In case anyone is woundering I was programming a frequency counter
Thank's for your help. :)

/Anders