Need help on SERIN
Archiver
Posts: 46,084
Hi guys i am a newbie here , i need some help in programming BS2.
How to use a SERIN command , i am not too sure.
How do i acquire data from a hyper terminal and send it to my stamp?
can u all give me some sample programs?
How to use a SERIN command , i am not too sure.
How do i acquire data from a hyper terminal and send it to my stamp?
can u all give me some sample programs?
Comments
http://www.parallax.com/dl/docs/books/sw/exp/31.pdf
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: SkYbOL [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=inzAlO3lCjkK7y-wH8GGn7_NsvBUrTQ2UW-BI2kCCJU5tEytYAksjscYGFoNKo2hqob1SEGU_bG_Tw]skybol1@y...[/url
Sent: Wednesday, November 19, 2003 8:59 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Need help on SERIN
Hi guys i am a newbie here , i need some help in programming BS2. How to
use a SERIN command , i am not too sure. How do i acquire data from a
hyper terminal and send it to my stamp?
can u all give me some sample programs?
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
and a BS2:
MyBaud VAR 86 + 16384 ' 9600 buad + Inversion val
MyData VAR WORD
I VAR WORD
MAIN:
FOR I = 1 to 100
SERIN 16, MyBaud, [noparse][[/noparse]DEC MyData]
SEROUT 16, MyBaud, [noparse][[/noparse]DEC MyData, 13]
NEXT
GOTO MAIN
' Now, in hyperterm enter a value (like "10")
' followed by 'enter' key. The BS2 should echo
' back your data.
'
' The "DEC MyData" expects to recieve the ascii
' characters for a number, and converts them into
' the WORD value, and stores them in MyData.
' It waits for the end of the number, which the
' 'enter' key (or a "." character) gives it.
--- In basicstamps@yahoogroups.com, "SkYbOL" <skybol1@y...> wrote:
> Hi guys i am a newbie here , i need some help in programming BS2.
> How to use a SERIN command , i am not too sure.
> How do i acquire data from a hyper terminal and send it to my
stamp?
> can u all give me some sample programs?