Shop OBEX P1 Docs P2 Docs Learn Events
I need example interrupt to goto subroutine. — Parallax Forums

I need example interrupt to goto subroutine.

ToHaBoyToHaBoy Posts: 4
edited 2008-01-08 13:59 in BASIC Stamp
I want to make interrupt in BSp40, I know that use Poll command. but I don't to goto subroutine when interrupt execute.I just need example interrupt to goto subroutine.
cry.gif

Post Edited By Moderator (Chris Savage (Parallax)) : 1/9/2008 6:39:39 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-06 16:54
    The manual is fairly clear that the POLL commands do not provide interrupts. The run mode does provide for a GOTO-like action, but there's no return to the place where the program was executing when the input change occurred.

    What are you trying to accomplish? Perhaps there's a way to accomplish it without interrupts.
  • ToHaBoyToHaBoy Posts: 4
    edited 2008-01-07 06:11
    I still confuse to use Poll commands, I need example about using poll command and run another programslot.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-01-07 08:43
    Toha -

    The "BS2p: Commands, Features and Projects" document (attached) has an excellent description of the POLL command in all of its various forms, as well as some very clear examples. See if that will get you started, and then if you have additional questions, I'm sure we can sort them out.

    If the attachement does not appear, the document can be retrieved from here:

    http://www.parallax.com/ProductInfo/Microcontrollers/BASICStampDocumentation/tabid/440/Default.aspx

    It is the document that is third from the bottom of all the documents listed.

    Regards,

    Bruce Bates
  • ToHaBoyToHaBoy Posts: 4
    edited 2008-01-08 13:59
    Thanks............
    Terima Kasih..........
    Matur Nuwun...........

    (*_*)
Sign In or Register to comment.