Shop OBEX P1 Docs P2 Docs Learn Events
Simple_Serial driver problem — Parallax Forums

Simple_Serial driver problem

Computer Geek 101Computer Geek 101 Posts: 179
edited 2008-08-27 21:11 in Propeller 1
I have a strange problem.· If I start Simple_Serial and read one character from a computer, its fine.· If I read two or more the characters I get are wrong.· ie.· I send· one letter "a" it will echo the letter "a".· If I send "a" then another "a" I get "a" and a random character.· If I start and stop the Simple_Serial driver between reads its fine.· Attached is a working example.· I have used the driver before without this problem.· Any ideas as to what can cause this?· Thanks for the help.

Comments

  • Erik FriesenErik Friesen Posts: 1,071
    edited 2008-08-27 21:11
    try this
    PUB Main | Val
        Serial.start(RX,TX,9600)  
      repeat
        Val := Serial.rx
        Serial.tx(Val)
    
    
Sign In or Register to comment.