Interupts/Polled I/O
DGiudici
Posts: 10
While playing around with my BS2 I found out that it can not handle interupts or polled I/O. I am sure there are some ways around this, if anybody has any suggestions please tell me.
My application is to shut off my project remotley, because this shut off is going to be used as a "kill switch" or emergency stop i need it to be happen as soon as i press the remote (or soon after).
Cheers
DG
My application is to shut off my project remotley, because this shut off is going to be used as a "kill switch" or emergency stop i need it to be happen as soon as i press the remote (or soon after).
Cheers
DG
Comments
Othewise you can construct your code so that the emergency input is scanned periodically and handled. PBASIC has programming contructs that make this possible with very elegant code. The attached framework should help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Its good to hear that I can manuver around this, I was thinking about upgrading my stamp to maybe the BS2p, so I could do polled I/O. Would there be an advantage to upgrading, except for saving code?
Cheers
DG
Aside from extra speed and polled input pins, the BS2p is faster and has lots of other features (I2C, 1-Wire, LCD, etc).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
http://www.parallax.com/detail.asp?product_id=45187
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax