PDA

View Full Version : SEROUT command



BEAVIS
04-09-2007, 07:04 AM
Hello,
I have a question. I have been messing around with the SEROUT command. I saw an example of some code in a book.
It was "SEROUT 16, 9600, 10, ["Hello"]
It was supposed to display hello on the screen. It did not. I kept messing with it and when I changed the 9600 to 84 it worked.
SEROUT 16, 84, 10, ["Hello"]

My question is why 84 works and 9600 does not work? both should work, Right?

Thank you,
BEAVIS.

Martin Hebel
04-09-2007, 07:09 AM
In all likelyhood, it was n9600, or similar, and declared earlier in code as:
n9600·· con··· 84

84 is proper value for the BS2 for 9600 baud, non-inverted.

-Martin

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters (http://www.selmaware.com/)
Southern Illinois University Carbondale, Electronic Systems Technologies (http://www.siu.edu/~isat/est)

BEAVIS
04-09-2007, 08:11 AM
Thanks!