Hello
First a couple of things on your program...
Bit is a Reserve word. You will have to use something other than Bit... I used Bit as a example of how the program will work.
Second. I do not know how you want your ""Slug" sent.
By each individual bit? or all together... I gave you a example of sending it each individual byte.
you can send it all together by changing your Slug value and putting a "%" in front of it... Then send the whole thing. as a 8 byte data. (But you leave off adding the 48).
Thus your program will look something like.
bytetosend Var byte
Slug="%01101101
bytetosend=Slub 'this is redundant...but ....
Serout Pin,T2400,bytetosend
Receive is
bytetoreceive var byte
counter var byte
Serin Pin,T2400,bytetoreceive
'lets do something with each bit.
for counter=0 to 7 step 1
bytetoreceive.counter 'each individual bit
next counter
Last edited by Dwayne; - 19th July 2004 at 14:39.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks