realolman
01-18-2009, 12:15 AM
I have been trying to use chip gracey's full duplex serial and the Extended _FDSerial, and I am having some success.
·In another thread a few guys helped me to send and receive, and I have the code I have been using here.· It is stuff that I got from them that I have modified somewhat.
SER : "Extended_FDSerial"
VAR
long MyVariable
PUB Main
MyVariable :=(string("This is it oh yes it is furthermore how much stuff will this vatiable hold??"))
ser.start(31,30,0,38400)
dira[15] := 1 ' output port to also flash an LED for example
outa[15] := 1
ser.str(string("Communication with propeller", $0D))
ser.str(MyVariable)
waitcnt(10_000 + cnt)
ser.tx(13)
ser.tx(10)
the questions I have are:
I defined the Variable "MyVariable" as a long... why is it able to transmit so much in the Main
Is it even using the "MyVariable" that I defined in the VAR block?
·In another thread a few guys helped me to send and receive, and I have the code I have been using here.· It is stuff that I got from them that I have modified somewhat.
SER : "Extended_FDSerial"
VAR
long MyVariable
PUB Main
MyVariable :=(string("This is it oh yes it is furthermore how much stuff will this vatiable hold??"))
ser.start(31,30,0,38400)
dira[15] := 1 ' output port to also flash an LED for example
outa[15] := 1
ser.str(string("Communication with propeller", $0D))
ser.str(MyVariable)
waitcnt(10_000 + cnt)
ser.tx(13)
ser.tx(10)
the questions I have are:
I defined the Variable "MyVariable" as a long... why is it able to transmit so much in the Main
Is it even using the "MyVariable" that I defined in the VAR block?