FullDuplex Serial
Harold
Posts: 8
I have wired a bluetooth chip to my propellor board and I am trying to use it to send and receive data between it and my PC.· I can send data from the propellor and receive it fine on the PC.· But when I send data from the PC and try to reroute it back to the PC i get jibberish.· Any ideas.· Thanks in advance.
Comments
· sp.start(4,5,1,9600)
· sp.start(4,5,9600)·
depending if I use the Simple or Full object.
I can send strings and bytes to the PC without a problem.· I put in a very simple loop
· byte Tag
· repeat
··· Tag := sp.rx·· ' or rxcheck when using the full object
····sp.tx(Tag)
to echo chars sent from the PC to the propeller back to the PC.· The chars always come back as jibberish.·
I have used this same device with a PIC 16F877A, wired the same way and didn't have any problems.·
thanks
I am running a Seetron SG12032 that requires a inverted tx.
I am using mode=%0010
You're running a Seetron which does require the inverted tx, not a Bluetooth adapter which doesn't.
How's the Seetron display working?
Mike
Is working fine.
Thank you very much.· It works beautifully now for FullDuplex.
Thanks again.
Harold kimball
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
·
1) Speed. SPIN can handle 19.2KB for sure, maybe a little faster. Assembly can handle well in excess of 1MB
2) Full-Duplex. SPIN routines are half-duplex (one direction at a time). You could use two cogs in SPIN to get full duplex.
3) Buffered. The assembly routines provide full-duplex buffered (16 bytes each direction) serial I/O and run in their own cog in parallel with other operations. The SPIN routines are part of the main processing thread unless moved into their own cog.
4) The assembly routines have a few minor features (see the description of the mode value) that the SPIN routines don't have.