Because it requires only the existing programming connection to the Propeller, PST also provides a valuable way to interact with the Propeller when on the road when other output devices like a TV or VGA screen connection simply arent possible.
Parallax Propeller Serial Port Serial Port NumberWhen the Propeller is plugged into your computer, the FTDI chip on your Quickstart board is assigned a serial port number by Windows.
Obtain that number by starting up the Propeller Tool and pressing F7. Make a note of the detected COM port for reference and launch PST. ![]() There are a number of other controls here which provide a degree of visual complication. The commonly used controls are the Com Port: setting, the Baud Rate setting, and the DisableEnable button. The following Spin program is lesson2.spin from the QuickStart 2: Propeller Programming First Steps. As long as the LED continues to work correctly, the program can be observed as working correctly, but what would happen if the LED failed Consider the following additions to the Spin program: CON. This object is a collection of methods which will provide the interaction from the LED flasher program to the PST software. The PST.Start(115200) gets the object up and running on another cog with a baud rate of 115,200. ![]() Make a quick note of the speed and set PST to the same setting. The additional changes to the program include two lines which start with pst.str after each of the outa statements. ![]() Parallax Propeller Serial Port Code 13 IsThe ASCII code 13 is a carriage return telling the terminal to jump to the next line. Monitoring the code from Parallax Serial Terminal, we can tell that the code is working correctly even if the LED is defective, wired incorrectly, or removed from the circuit. Once the program is running in the Propeller, launch the Parallax Serial Terminal and press the Enable button to begin taking data from the Propeller. Commonly used methods included with Parallax Serial Terminal: start(baudrate) Start PST in another cog at the specified baud rate. This QuickStart demonstrates Parallax Serial Terminal used as a simple debugging tool. PST is also capable of user input as well as many advanced display functions. Parallax Propeller Serial Port Free Propeller EducationFull documentation for PST can be found in the free Propeller Education Kit Labs: Fundamentals text 1.
0 Comments
Leave a Reply. |