Shop OBEX P1 Docs P2 Docs Learn Events
PST work with BST? — Parallax Forums

PST work with BST?

HumanoidoHumanoido Posts: 5,770
edited 2011-09-01 10:01 in Propeller 1
PST is not working with the serial terminal in BST.
Are these fully compatible?

If it should work, I'll post more details.

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2011-09-01 07:34
    Humanoido,

    what exacly do you mean with PST is not working with the serial terminal in BST?

    BST has its own serial terminal to receive serial data from the propeller.

    So you don't need an extra serial terminal. You can even jump between BST-editor downloading code and BST-implemented serial terminal automatically:
    opening and closing the serial port is done automatically by BST.

    Or do you mean the PST-object - the SPIN-code for the propeller?
    For this pair the parameter must be configured the same.

    Baudrate and mode.

    Please write more about your configuration and the results you get.

    keep the questions coming
    best regards

    Stefan
  • Mike GreenMike Green Posts: 23,101
    edited 2011-09-01 07:43
    The PST object assumes that the serial terminal will interpret a number of byte values as special control codes.
    ''
    ''     Parallax Serial Terminal
    ''    Control Character Constants
    ''─────────────────────────────────────
      CS = 16  ''CS: Clear Screen      
      CE = 11  ''CE: Clear to End of line     
      CB = 12  ''CB: Clear lines Below 
    
      HM =  1  ''HM: HoMe cursor       
      PC =  2  ''PC: Position Cursor in x,y          
      PX = 14  ''PX: Position cursor in X         
      PY = 15  ''PY: Position cursor in Y         
    
      NL = 13  ''NL: New Line        
      LF = 10  ''LF: Line Feed       
      ML =  3  ''ML: Move cursor Left          
      MR =  4  ''MR: Move cursor Right         
      MU =  5  ''MU: Move cursor Up          
      MD =  6  ''MD: Move cursor Down
      TB =  9  ''TB: TaB          
      BS =  8  ''BS: BackSpace          
               
      BP =  7  ''BP: BeeP speaker
    
    Most serial terminal programs, including the one in BST, do not recognize all of these. Many of them are not standard control sequences. Only the PST PC program recognizes all of them.
  • HumanoidoHumanoido Posts: 5,770
    edited 2011-09-01 10:01
    Stefan:

    Mike Green:

    Thank you for your reply. This is precisely what I need to know. The PST object was sending control sequences which the BST serial terminal did not recognize.
Sign In or Register to comment.