Another Serial Object Question...
Joms
Posts: 279
I know I am almost beating a dead horse here, but I have searched and don't quite understand what I am reading. I have looked at the FDS4Port, Full Duplex Serial, and Extended Duplex Serial objects but still have a few questions.
I am trying to input a continuous string of data. I have done this several times in the stamp but having problems finding the right command in the prop objects. Ideally I would like to use the FDS4Port object as I will be input two or three strings at the same time, but I can always use another object 3 times if I had to.
Basically I am looking for the proper wait command.· The delimiter appears to be used differently then the wait command.
I do not have much code written yet as I am having problems getting started with this command. In Basic it would look something like this...
SERIN 15, 16572, [noparse][[/noparse]WAIT($A,$B,$C), variable]
Heres what I have for the start part of my program so far...
I am trying to input a continuous string of data. I have done this several times in the stamp but having problems finding the right command in the prop objects. Ideally I would like to use the FDS4Port object as I will be input two or three strings at the same time, but I can always use another object 3 times if I had to.
Basically I am looking for the proper wait command.· The delimiter appears to be used differently then the wait command.
I do not have much code written yet as I am having problems getting started with this command. In Basic it would look something like this...
SERIN 15, 16572, [noparse][[/noparse]WAIT($A,$B,$C), variable]
Heres what I have for the start part of my program so far...
OBJ Data: "FDS4Port" PUB Start Data.Init Data.AddPort(0,26,Data#PINNOTUSED,Data#PINNOTUSED,Data#PINNOTUSED,Data#DEFAULTTHRESHOLD,Data#OCTX,4800) Data.AddPort(1,27,Data#PINNOTUSED,Data#PINNOTUSED,Data#PINNOTUSED,Data#DEFAULTTHRESHOLD,Data#OCTX,4800) Data.Start Main PUB Main
Comments
To handle your specific example you would do this:
Post Edited (JonnyMac) : 7/16/2009 8:56:01 PM GMT