Serial Communication Question-Resolved-im not smart
tom90
Posts: 55
Hey All,
Is there anyway to perform serial communications faster than "PC_Debug", "FullDuplex", or "BS2_Functions"?
I have a loop with six operations in it that need to be output to a computer about every 2 ms.· The fastest I can get my loop to run now is ~4.5 ms.· How can I speed this up?
Thanks,
Tom
Post Edited (tom90) : 3/14/2008 5:51:29 PM GMT
Is there anyway to perform serial communications faster than "PC_Debug", "FullDuplex", or "BS2_Functions"?
I have a loop with six operations in it that need to be output to a computer about every 2 ms.· The fastest I can get my loop to run now is ~4.5 ms.· How can I speed this up?
Thanks,
Tom
Post Edited (tom90) : 3/14/2008 5:51:29 PM GMT
Comments
I don't understand your question or your problem, what loop?
You can speed up the question/answer loop by providing more detail and overview also.
*Peter*
Spin is alot slower than ASM, and emulating BS2 functions in spin would be slower yet. There may be an assembly "mini" driver floating about for high speed serial (USB speeds). But for speed, being 1:1 with the system clock is pretty good!
Maybe there's a way to optimize your code, like if you have six separate transmissions & they are all BYTE sized, you can group them all together in two LONGs (2 LONGs = 8 BYTEs) using the BYTE command to acces the various BYTEs within a LONG or WORD.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E3 = Thought
http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
Post Edited (RinksCustoms) : 3/14/2008 12:21:10 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.