So the original inquiry was about whether it can be done with interrupts instead of polling. I don't think anyone claims that interrupts are actually the right way to do the job! But it's a challenge to think of how it might be possible.I want to connect a "voltage" with a POT to one microcontroller input and do something at every change of the voltage level.
Can it be done with an interrupt or it has to use polling?
Anything, however simple it is, can be a challenge to someone somewhere.But it's a challenge to think of how it might be possible.
Pick any mcu and try to implement it that way. You will find it quite "limiting":I thought of another way, doing it backward.
It can be brilliant, I am sure in some applications - for example, you are running out of adc channels. But that's probably not the case here.That is brilliant, is it not?