Shop OBEX P1 Docs P2 Docs Learn Events
Problem with Simple_Serial — Parallax Forums

Problem with Simple_Serial

marclamarcla Posts: 19
edited 2008-07-23 22:30 in Propeller 1
Hello!

I made a program who acts like a mirror example: I send "h" to the propeller and it sends back "h"
but there is a little problem when i start the propeller and send a·letter to the·propeller form hyper terminal·i·always gett "ÿ" as the first letter why?


And her is my code:
CON
  _CLKMODE = XTAL1 + PLL16X    
  _XINFREQ = 5_000_000 
OBJ
  serial : "Simple_Serial"
  
VAR
  Byte Rx, Rx2
Pub Main
serial.init(31, 30, 9600)
repeat
  serial.tx(serial.rx)

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2008-07-23 12:51
    Are subsequent characters correct?

    If not then probably Hyperterminal is resetting the Propeller (because it raises DTR causing a reset).

    Try PST (propeller serial terminal). It works great in conjunction with PropTool for loading code. Just cycle between the two programs without closing them. Unfortunately you cannot capture code with PST although cut and paste works.
  • viskrviskr Posts: 34
    edited 2008-07-23 22:30
    might help-

    the "ÿ" is 255
Sign In or Register to comment.