Quick pin detection
JimAvanti
Posts: 15
I am trying to write some simple code (BS2) that will monitor two input pins for a quick·pulse and then set output pins high while the two input pins are low.· The basics are written and work, however the pulse is so quick that the stamp sometimes misses it.· I tried using the pollin & pollwait commands on the BS2px and although it never missed a pulse, it is too limited a command since either of the two input pins going low make the pollwait work the same way.· For example I want pin6 to go high when pin0 goes low, and pin7 to go high when pin2 goes low.· Does anyone know a better way to do this?
Jim
Jim
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!