hjl4
Member
Hello again.
Is it possible to make a routine, where the pic reads the entire portA, then depending on which bit is set, goes to an individual routine for each pin. Only one pin will be set at anyone time.
In other words, portA=00000001 then to special routine because that pin is set. If portA=00000100 then the set pin makes the microcontroller goto that pins special routine?
Its hard to make sense of this.
Is it possible?
Thanks in advance.
Is it possible to make a routine, where the pic reads the entire portA, then depending on which bit is set, goes to an individual routine for each pin. Only one pin will be set at anyone time.
In other words, portA=00000001 then to special routine because that pin is set. If portA=00000100 then the set pin makes the microcontroller goto that pins special routine?
Its hard to make sense of this.
Is it possible?
Thanks in advance.