Hi all,



I have three signals that are prioritized. Let's say S1 = 1st priority, S2 = 2nd, and S3 = 3rd.

I'm planning on connecting each signal line to an available pin in the PIC mcu. I'm trying to understand how I can use the interrupt feature so that it will do the following:

- if S1 is present, then ignore any signals from S2 and S3 and output S1.
- if S2 is present and S1 is not, then ignore any signal from S3 and output S2.
- however, if S1 comes on a few seconds later, then ignore S2 and S3 and output S1.

Can anyone give me some tips on how I can go about implementing this?

I haven't really dealt with the interrupt feature before.

Thanks!