Serial with 8N2 instead of 8N1?
ktekx
Posts: 71
I have limited experiences with using the SERIN/SEROUT command and I've recently got a hold of several vacuum flourescent displays (used for cash register terminals). The good thing is, it is serially controlled at a changeable baud (9600 all the way to 1200), however, it says that it uses 8 data bits, no parity and _TWO_STOP_BITS_. Will this affect the stamp's serial communication between the two? Are there any modifiers to overcome this or is the Stamp fixed to 8N1?
I wish I could atleast test this out before asking, but the displays require a 7VAC source to power the vacuum flourescents (of which I've yet to find or make, any help on stepping down AC voltage or inverting circuits while I'm at it, hehehe??)
I wish I could atleast test this out before asking, but the displays require a 7VAC source to power the vacuum flourescents (of which I've yet to find or make, any help on stepping down AC voltage or inverting circuits while I'm at it, hehehe??)
Comments
If nothing else, you can send messages a character at a time, and let the additional time to interpret each SEROUT command act as your second stop bit. At 9600 baud, each stop bit is 1/9600 seconds, or 104 uSec. I believe it takes longer than that to interpret the SEROUT command.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Just to round out Jon's suggestion, here is the prototype SEROUT command:
SEROUT Tpin {\Fpin}, Baudmode, {Pace,} {Timeout, Tlabel,} [noparse][[/noparse]OutputData]
Note:
Pace is an optional variable/constant/expression (0 - 65535) that determines the length of the pause between transmitted bytes. NOTE: Pace cannot be used simultaneously with Timeout.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->