I am woundering how to set up a interrupt, that get's triggerred when a specific pin gets set to HIGH
What controller are you using?
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.
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. :)
© 2020 Microchip Technology Inc.