Welcome to the Parallax Discussion Forums, sign-up to participate.
pjv wrote: »
The code I posted three years ago was not intended to be a universal speed programmable model. It was a response to a need of "fastest serial ASCII link" that I had for an industrial application, and I just thought I would post it in case there was interest in the subject. There seemed to be none. Regrettably it also appears not to meet your requirements....... but luckily there are many others to choose from.
Peter Jakacki wrote: »
I think the nops you are seeing are simply part of the 3 Mbaud only hack (receive3) and not the general-purpose code (receive) which is limited to around 2 Mbaud max. At this speed trying to test for special end conditions etc would make the code unreliable however the code works reliably up to 2M baud without a hitch.
lonesock wrote: »
Just for grins, I ported FFDS1 to a 2-cog solution, thus FFDS2. It seems to be able to do a minimum bit period of 18 clock, so 4.44 Mbps, with a single stop bit. It definitely needs more testing, though. The timing works great on a direct-pin-cog-to-cog controlled test, but may be too tight for something with optoisolators inline...we'll see.
Let me know if it works!