Serial Communication question
jmbertoncelli@USA
Posts: 48
Hello
What is the maximum serial speed that we can achieve using the Prop?
Thanks.
jm
What is the maximum serial speed that we can achieve using the Prop?
Thanks.
jm
Comments
You probably need to explain a bit more about what you are trying to do to get some options.
In fact I am building a Prop object for an XBee pro RF modem and I am currently testing the different speed. So far using the fullduplexserial I was able to achieve 38400Kbs. Do you think that it is possible to acheive higher speed?
I tried 57600Kb but when using this value the comminucation does not start at all?
jm.
I have used a xbee but I dont think it was the pro. Looking back at the code looks like I had it running at 115200 but I remember connecting the xbees to a PC and re-configuring them using the x-ctu tool
my test program:
CON
_clkmode = XTAL1 + PLL16X
_xinfreq = 5_000_000
OBJ
Link : "FullDuplexSerial"
VAR
byte buffer[noparse][[/noparse]1024]
word count
PUB Main
Link.Start(1,0,0,38400)
ByteFill(@buffer,0,1024)
buffer := string("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
repeat while(1)
Link.str(string("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"))
Link.str(string(" "))
Link.Dec(count++)
link.tx(13)
link.tx(10)
Return
I would have been either working with a 5Mhz or 6Mhz crystal, probably 5Mhz the same as you.