How to deal with external interrupts

inakiinaki Posts: 262
edited 2006-04-13 - 23:04:29 in Propeller 1
Okay the Propeller does not have interrupts. However I wonder how can·it deal with other external·devices that do·work with interrupts.
Should I use the WAITPEQ/WAITPNE instructions ? Can I emulate edge and level interrupts using these signals ?
Which is the correct approach to work with external interrupts on Propeller ?



  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-13 - 23:04:29
    I suppose you could dedicate a cog and use WAITPEQ or WAITPNE; or if you simply needed to latch the "interupt" input you could setup one of the cnt registers for edge detect and then check its count from time-to-time.

    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.