basic SX , interrupt functions ?
sunil
Posts: 5
Hi,
I am using a basic stamp 2 sx .
The stamp is waiting for a serial signal , but at the same time has to be allerted if a button is being pressed. Is there a way to do this, also is there any provision for interrupts.
Thanks
Sunil
I am using a basic stamp 2 sx .
The stamp is waiting for a serial signal , but at the same time has to be allerted if a button is being pressed. Is there a way to do this, also is there any provision for interrupts.
Thanks
Sunil
Comments
There are two things you can do: 1) you can use flow-control with your SERIN statement so the external device doesn't try to send anything when the BASIC Stamp is not ready, or 2) you can use a timeout in SERIN to escape out of it if nothing shows up.·
To catch your button input you can either latch it with a flip-flop or, as I've done a couple times, you can "stretch" the button input with a simple 555 circuit, using an extra pin on the BASIC Stamp to reset the 555 after the input is scanned.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Ryan
http://forums.parallax.com/showthread.php?p=537937
Vern
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔