Serin question
Bobb Fwed
Posts: 1,119
I have a BS2pe, it checks sensors and controls stuff, but I want it to receive Serial info. The problem is, there is no flow control possible (from a separate device) and the serial info will come at unknown times. Is there any way to get the serial info when it comes?
Obviously I can have it run a Serin between each cycle (which is about 3 cycles per second) and add a timeout of no more than 200ms, but that gives a very small window to hit if the other device is sending info.
What is the easiest/cheapest way to get serial info at random times?
Obviously I can have it run a Serin between each cycle (which is about 3 cycles per second) and add a timeout of no more than 200ms, but that gives a very small window to hit if the other device is sending info.
What is the easiest/cheapest way to get serial info at random times?
Comments
serin RX, Baud, [noparse][[/noparse]wait ("*DT"), dec var1, dec var2]
Post Edited (Mike Green) : 6/6/2008 10:58:32 PM GMT