Shop OBEX P1 Docs P2 Docs Learn Events
Propeller equivalent of BS2 DEBUG command — Parallax Forums

Propeller equivalent of BS2 DEBUG command

fingeraefingerae Posts: 15
edited 2008-06-29 00:04 in Propeller 1
I am a mechanical engineer with general EE knowledge that has been using the BS2 for a while.· I've recently switched to the Propeller.· I am trying to replicate some of the basic functionality of the BS2 on the Propeller (namely in this case A/D conversion).· To facilitate troubleshooting, I would like to be able to monitor numerical variable values on my PC screen in real time.· On the BS2, the DEBUG command supports this task.· What is the equivalent·for the Propeller?· If I need to route it through a HyperTerminal or HyperTerminal equivalent, please include recommendations for physical connection and software support.· Thanks!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-28 22:16
    There is now a Windows program called "PropTerminal" that provides much of the PC functionality of the DEBUG window of the Stamp Editor. It's part of the downloads for the Propeller Education Kit. It takes the place of HyperTerminal. In terms of physical connection, you can use the programming port of your development board. Just be aware that opening and closing the serial port from the PC will reset the Propeller.

    On the Propeller side, you can use any serial I/O driver like FullDuplexSerial or the simple serial driver that's part of the BS2 compatibility library. If you haven't do so, download that from the Propeller Object Exchange and have a look at it. It provides much of the functionality of the fancier BS2 Basic statements with subroutine calls. This includes subroutines that implement much of the DEBUG statement.
  • fingeraefingerae Posts: 15
    edited 2008-06-28 23:08
    Thanks for the quick reply.· Is the "Parallax Serial Terminal v0.91" the same as PropTerminal?· If so, do you have a basic code example that demonstrates the equivalent of a DEBUG command that will communicate through the USB connection of the PropStick?· Thanks.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-28 23:26
    Here's the link for the original announcement: http://forums.parallax.com/showthread.php?p=725525

    Please download the BS2 Function Library from the Propeller Object Exchange. It includes examples of its use and there are detailed comments in the source program. The DEBUG functions use the programming port. On the USB PropStick, that's the built-in USB port.
  • fingeraefingerae Posts: 15
    edited 2008-06-29 00:04
    You're a life saver.· Thanks.· The download page I was directed to with my purchase (less than a month ago)·was an old (sub 1.0) version of the Propeller Tool with far fewer objects and examples.· There is also a substantial addition to the Help menu in the newest version.· I think I'm good to go now.· Thanks again.
Sign In or Register to comment.