Question on WAITPNE and transitions
cbmeeks
Posts: 634
in Propeller 1
Hello. Been a while since I've been active.
So, I have a question on monitoring some pins. Let's say I have 8 pins from an external chip that will never have more than one pin LOW at the same time. All could be HIGH but only one could ever be LOW. Such as from a 74'138.
Now, I'd like the Propeller to monitor those 8 outputs and execute a simple bit of code depending on which of the pins is active low.
For example, if I tied the 8 outputs to P0-P7 and P3 is LOW, then I'd like P14 to be HIGH. Etc.
I'm a little confused on how I would use WAITPNE (PEQ) with this scenario. How would the wait command know that ANY of the bits could trigger the code?
Hope that makes sense. Any tips would be appreciated.
Oh, this will be in PASM.
Thanks!
So, I have a question on monitoring some pins. Let's say I have 8 pins from an external chip that will never have more than one pin LOW at the same time. All could be HIGH but only one could ever be LOW. Such as from a 74'138.
Now, I'd like the Propeller to monitor those 8 outputs and execute a simple bit of code depending on which of the pins is active low.
For example, if I tied the 8 outputs to P0-P7 and P3 is LOW, then I'd like P14 to be HIGH. Etc.
I'm a little confused on how I would use WAITPNE (PEQ) with this scenario. How would the wait command know that ANY of the bits could trigger the code?
Hope that makes sense. Any tips would be appreciated.
Oh, this will be in PASM.
Thanks!
Comments