Shop OBEX P1 Docs P2 Docs Learn Events
Waitpeq/Waitpne alternative? — Parallax Forums

Waitpeq/Waitpne alternative?

MicksterMickster Posts: 2,611
edited 2022-09-29 13:40 in BASIC (for Propeller)

Is the only option to sit in a loop?

Craig

Edit: Re: P2

Comments

  • On the P2 there are some PASM instructions to set up and wait for events, and they can almost emulate waitpeq/waitpne. I say almost because IIRC there's a race condition where if the event happens between the set up and the wait then you miss it and/or wait forever. if you know ahead of time that the event isn't coming for a while (e.g. a microsecond) then that's probably not an issue.

  • @ersmith

    Sorry (and thanks) Eric. I had intended to post a "please disregard".

    I realised that I need to monitor 6 inputs simultaneously and that looping method is already huge overkill for what I need.

    Not a day goes by that FlexBasic fails to put a huge grin on this face.....just amazing :+1:

    Craig

Sign In or Register to comment.