Shop OBEX P1 Docs P2 Docs Learn Events
HELP waitpeq — Parallax Forums

HELP waitpeq

LafetLafet Posts: 23
edited 2007-07-31 21:00 in Propeller 1
Please about help, WAITPEQ irresponsive on entry conditions.

repeat 
   waitpeq(%10000, 4, 0)
   !outa[noparse][[/noparse]16]




P4 <= CLK
P16 is permanent LOW confused.gif

Thanks Lafet

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-07-31 21:00
    The second parameter of WAITPEQ (and WAITPNE) is another bit mask. I think you want "waitpeq(%10000,%10000,0)" to wait for P4 to go high.
Sign In or Register to comment.