Shop OBEX P1 Docs P2 Docs Learn Events
BS1 Output to Screen — Parallax Forums

BS1 Output to Screen

edmondfoxedmondfox Posts: 15
edited 2005-12-06 20:40 in BASIC Stamp
With the Basic Stamp 1 am I able to output data to the screen? When I identify the stamp in the programmer it says loopback and echo are 'No'. Here is part of the code where I am attempting to output to the screen:

SEROUT RxD,N2400,("input here > ")

However nothing shows up when I connect to the comm port the stamp is on, even after powering it off and then back on.

*** Debug works fine but I am unable to enter data at the prompt output using Debug.

Any ideas?

Post Edited (edmondfox) : 12/6/2005 1:58:25 AM GMT

Comments

  • edmondfoxedmondfox Posts: 15
    edited 2005-12-06 19:16
    anyone have an idea what is going on?
  • TiboTibo Posts: 81
    edited 2005-12-06 20:37
    What is your question ?
    You seem to be able to output data to screen since you added DEBUG works.
    So is it getting some input from the debug windows ?
    eyes.gif Well, the DEBUGIN command is a PBASIC 2.5 feature. Not avaible to BS1.

    But obviously you know the SERIN instruction.
    I wonder..are the parenthesis necessary ?
    Because when I check the manual, it says :
    Basic Stamp Manual said...
    The example below will receive a single byte through I/O pin 1 at 2400
    baud, 8N1, inverted:
    SYMBOL serData = B2
    SERIN 1, N2400, serData
    and....no (..).

    However, did you try to use the Windows Hyperterminal ?
    ++
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-12-06 20:40
    If you want to do general-purpose serial I/O between a PC and the BS1 then you need to use two of the BS1's I/O pins for this (one for SERIN, one for SEROUT). While it's best to use a MAX232 level shifter between the two, you can get away with a direct connection by using a 22K resistor in the SERIN line. The manual and help file show the direct connections.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.