A bug in FullDuplexSerial?
Robin Andersson
Posts: 3
I don't know if it's me that's doing wrong but I just can't figure this out by my self.
I am trying to use the FullDuplexSerial object. It's works great accept one little thing.
Here is a simple program to demonstrate my problem.
·All this does is to grab a byte from serial port on pin·31 and print it to the screen (pin 0 - 3). Then·I start hyper terminal and connect to the com port with 9600 baudrate, 8 bits, no parity,1 stopbit and·no flow controll. If I type on my keyboard it's happen on my screen. Even backspace and return works. But it's·when i type more than two of the same letter·after·each other·it is getting werd.
Say if I type "aaa" the screen shows me "aaá" and if i type "aaaaaaaa" this is what happens "aaáaáaá".
"vvvvvvv" gives me "vvövövöv" and so on.
Is it me that doing this all wrong or are there realy a bug in the serail object??
(ps. a have tryed to do serial.rxflush at the end of the repeat loop, but without results.)
Post Edited (Robin Andersson) : 4/4/2008 10:11:20 PM GMT
I am trying to use the FullDuplexSerial object. It's works great accept one little thing.
Here is a simple program to demonstrate my problem.
CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 OBJ text : "tv_text" serial : "FullDuplexSerial" PUB start | serinp text.start(0) serial.start(31,30,0,9600) repeat serinp := serial.rx text.out(serinp)
·All this does is to grab a byte from serial port on pin·31 and print it to the screen (pin 0 - 3). Then·I start hyper terminal and connect to the com port with 9600 baudrate, 8 bits, no parity,1 stopbit and·no flow controll. If I type on my keyboard it's happen on my screen. Even backspace and return works. But it's·when i type more than two of the same letter·after·each other·it is getting werd.
Say if I type "aaa" the screen shows me "aaá" and if i type "aaaaaaaa" this is what happens "aaáaáaá".
"vvvvvvv" gives me "vvövövöv" and so on.
Is it me that doing this all wrong or are there realy a bug in the serail object??
(ps. a have tryed to do serial.rxflush at the end of the repeat loop, but without results.)
Post Edited (Robin Andersson) : 4/4/2008 10:11:20 PM GMT
Comments
but seriously...does it matter how fast you type the characters?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
And it dosent matter how fast or slow·i type it. I·can type letter with several minutes betwen and·I still get same result.
And for·your notice, the·final use for the program is not·ment to be me that send commands. It's supposed to be a simple protocoll between my computer and the propeller to let the computer controll the propeller's system.
It's unlikely that the Prop is off in its timing because then the TV output wouldn't work ... that's very sensitive to timing.
If i type that within a second theres no problem. So the timing between the PC and propeller dosen't seems to be the problem. Maby it is only me that have this problem?
Thanks for the quick response!