FullDusplexSerial Hints
lairdt
Posts: 36
Any good hints on using FDserial?· New to this·library - I've been following the various conversations about stop bits and such, but nothing seems to help with the issues I'm running into.
Working with a Multilabs ezDisplay, I had a library that could send just fine, but not recieve - I'd like to recieve data from the touchpad now. So - I decided to convert over to FDserial. I'm having issues with sending data now that I didn't before, almost like there is a number of bits that need to be transmitted before it will start to work correctly. This doesn't appear to be an 8bit vs 7bit kind of thing, more like the amount of info transmitted before things start to work consistently.
I'm running fdserial.start(26,25,0,9600), then sending data to format the display... which appears to get dropped for a bit before it works... kinda.
Ideas?
Working with a Multilabs ezDisplay, I had a library that could send just fine, but not recieve - I'd like to recieve data from the touchpad now. So - I decided to convert over to FDserial. I'm having issues with sending data now that I didn't before, almost like there is a number of bits that need to be transmitted before it will start to work correctly. This doesn't appear to be an 8bit vs 7bit kind of thing, more like the amount of info transmitted before things start to work consistently.
I'm running fdserial.start(26,25,0,9600), then sending data to format the display... which appears to get dropped for a bit before it works... kinda.
Ideas?
Comments
I'd hoped that there were some kind of gotcha's list for FDserial, but if that's not the case then it's faster for me to go back to the old library that works and add what I need to recieve data.
Diagram I don't have, but it's a very simple minimal setup: prop DIP40, 5mhz xtal, 32k eeprom, propclip attachments, ttl display on p1 for debugging, LEDs on p16-23, ezDisplay tx/rx on p25/26. Defined _clkmode = xtal1 + pll16x and _xinfreq = 5_000_000...
Code - I'll save all of that for something much more involved and puzzling. Since the old lib worked it just seemed too simple not to change over, but I'd rather debug new code than deal with FDserial nuances right now.
http://forums.parallax.com/showthread.php?p=649541
Tom
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wasn't referring to my one inch but the possibility that tekochip was using a cable and that was limiting his speed. I've looked at the serial stream on an oscilloscope and don't see any reason you couldn't bump the speed up one more notch to 500K. I think the timing would be adequate. Now to find some means to test it at 500K!
Tom