Shop OBEX P1 Docs P2 Docs Learn Events
StampPlot — Parallax Forums

StampPlot

CrustyNoodleCrustyNoodle Posts: 15
edited 2008-07-14 19:31 in General Discussion
Hi,

Is it possible to use StampPlot with an SX?

I presume if you could emulate the BS2's Debug function in the SX then you might be able to get it to work.

If not, is there anything about that would enable me to do the same things that StampPlot can do (I'm trying to do the Process Controls tutorials for the BS)?

Any thoughts?

Comments

  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-06-16 12:10
    The BS2 Debug is simply SEROUT at 9600 baud.
  • CrustyNoodleCrustyNoodle Posts: 15
    edited 2008-06-16 12:25
    So could BS2 DebugIn be replaced with SERIN?

    I'll have to have a bit of a play to see if I can get it working - no time now though!
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-06-16 12:49
    Well, you won't be able to lift a line of BS2 code out of a program and simply replace DEBUG with SEROUT, but you can do it. SX/B SEROUT works with one character at a time -- you'll have to adjust for that (use a subroutine for sending a character and another for sending strings -- there are many examples in these forums. Use 9600 baud (true mode) through an appropriate interface to your PC. You could use a MAX232-type chip or a TTL-to-USB like the USB2SER.
  • CrustyNoodleCrustyNoodle Posts: 15
    edited 2008-06-16 22:11
    Has anyone tried to use StampPlot with the SX?
  • Shawn LoweShawn Lowe Posts: 635
    edited 2008-07-14 18:10
    Well, this thread isnt getting much attention, but a project I want to start would (hopefully) talk to stampplot and plot tempuratures with on/off signals to a RC-4 board. Does anyone think I will need a rs232 chip in order to communicate with the PC? As crustynoodle said, I am not sure what debug entails. Maybe just hook my signal output to a male dp9 adapter?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-07-14 18:38
    Hi, serial communication can easily be achieved as JonnyMac says using a TTL to serial or USB converter.

    FYI there are a couple of examples of TTL to serial devices in the documentation section·for the SX chip in the article Beginning Assembly Language for the SX Microcontroller in appendix B "Hardware"

    http://www.parallax.com/Default.aspx?tabid=460

    Jeff T.
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-07-14 19:05
    Shawn:

    If you're using a short connection you can use N9600 (inverted) mode to connect directly to the PC.
  • Shawn LoweShawn Lowe Posts: 635
    edited 2008-07-14 19:31
    Cool, I'll look into it! Thanks guys! I'll post my results if I get it working.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
  • Shawn LoweShawn Lowe Posts: 635
    edited 2008-07-14 19:31
    Cool, I'll look into it! Thanks guys! I'll post my results if I get it working.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
Sign In or Register to comment.