If you explain what you are trying to achieve it will be easier to advise.
However, if you use the port B change interrupt then you need to keep a record of the previous state so you know which pin changed. Doing port xor previousState will give you the bits that have changed.
Mike.
However, if you use the port B change interrupt then you need to keep a record of the previous state so you know which pin changed. Doing port xor previousState will give you the bits that have changed.
Mike.