LSU 06/04/2007BASIC Stamp Editor1 The BASIC Stamp Editor Programming Unit, Lecture 3.

Slides:



Advertisements
Similar presentations
Installing DOS and Windows98 under MS Virtual PC.
Advertisements

EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Lab7: Introduction to Arduino
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
The Windows Registry Adapted from
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
ENGR 101: Robotics Lecture 2 – Text Programming Outline  Introduction to PBASIC  Variables, I/O, Arithmetic  Controlling the LEDs References 
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
CS1061 C Programming Lecture 4: Indentifiers and Integers A.O’Riordan, 2004.
Introduction to a Programming Environment
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
MZ790 Print Driver and RINC Software Install and Setup These instructions are to assist you in installation and setup of the MZ790 Print Driver and RINC.
We Design It Replacing Hard Drives Tutorial Seven Easy Steps By: James Landon Carie Jackson Odetta Rodriguez Michelle R. Person Miceala Vega.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Chapter 2 Software Tools and Assembly Language Syntax.
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Programmable Logic Controllers
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Tutorial 11 Installing, Updating, and Configuring Software
© 2009 FP Mailing Solutions. All rights reserved. Customer Service Training Basic Computer Training.
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
P.1ECE 331, Prof. A. Mason Professor Andrew Mason Michigan State University Spring 2013 ECE 331: PC Lab 1: Using HC12 ASM Simulators.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Chapter 2 Working with Disks and Other Removable Media 2.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Installation Walk-Through Step 1 – Download the Installation Files
The Hexadecimal Number System and Memory Addressing ISAT 121.
Storing and Organizing Data. Why Do I Need to Understand How Data Is Represented? In order to install, program,maintain, and troubleshoot today’s PLCs,
XP Practical PC, 3e Chapter 3 1 Installing and Learning Software.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Practical PC, 7 th Edition Chapter 4: File Basics.
Chapter Three The UNIX Editors.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Summary: Unlike WindowsXP, Windows2000 wireless client utilities are different from vendor to vendor and even within versions of a vendor’s client utility.
Semester 1 v CCNA 1 Module 1:Introduction. Semester 1 v Connecting to the Internet.
LSU 2004Introduction to Programming1 Introduction to Programming with the BASIC Stamp Programming Unit, Lecture 1.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Chapter 1: Introduction to Computers and Programming
What are the steps to install a Brother Printer without the CD.
Installing and Learning Software
Programming and Debugging with the Dragon and JTAG
UNDERSTANDING YOUR COMPUTER
Topics Introduction Hardware and Software How Computers Store Data
Chapter 1: Getting Started
iSERIES PROGRAMMING/LOGGING TRAINING
Microsoft Office Illustrated
Programming Boe-Bots (Part 1)
Describe how NASA remotely controls equipment in space.
Chapter 1: Introduction to Computers and Programming
MicroEconomix 1500 RSLogix 500 LAB#1
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

LSU 06/04/2007BASIC Stamp Editor1 The BASIC Stamp Editor Programming Unit, Lecture 3

LSU 06/04/2007BASIC Stamp Editor2 The BASIC Stamp Editor Parallax, Inc. provides the BASIC Stamp Editor free of charge. –CD’s containing the software and documentation are available. –Download from Versions are available for –DOS –Windows –Linux –Macintosh

LSU 06/04/2007BASIC Stamp Editor3 BASIC Stamp Development What you need to design, develop and test BASIC Stamp systems –BASIC Stamp Editor software –A suitable host PC Almost any PC can run the parallax software A serial port is required to download programs to the BASIC Stamp For machines without a serial port, a USB-to-Serial Adapter –BASIC Stamp controller (for example, the BS2P24 module) –Carrier board for the BASIC Stamp Development boards are available from Parallax and other vendors. A custom designed carrier/prototyping board such as BalloonSat. –Programming cable (typically a standard 9-pin straight-thru serial cable.

LSU 06/04/2007BASIC Stamp Editor4 Installation of BASIC Stamp Software Installation of the BASIC Stamp Editor is straight forward. Follow simple instructions on Parallax website. For PC’s not connected to the internet, A CD is available from Parallax, Inc. The only difficulties usually encountered involve configuring the PC’s serial port. Make sure there is an available serial port or use a USB-to-Serial adapter.

LSU 06/04/2007BASIC Stamp Editor5 Running the BASIC Stamp Editor Running the BASIC Stamp Editor should yield a screen like this. The area to the left allows you to explore files on the PC. The large window on the right is where you will enter your BASIC Stamp program for editing, checking and downloading to the BASIC Stamp hardware

LSU 06/04/2007BASIC Stamp Editor6 Configuring the BASIC Stamp Editor The Editor can be configured but the default settings will usually work fine. Pull down the Editor tab and select Preferences to access the configurable options. The software will usually default to the AUTO option for the COM port, shown at right.

LSU 06/04/2007BASIC Stamp Editor7 Configuring the COM Port The COM port can be set to any of the PC’s available COM ports. If a COM port does not appear in the list of known ports it is likely assigned to another device or is not configured properly in the PC’s BIOS.

LSU 06/04/2007BASIC Stamp Editor8 Configuring the Stamp Type Parallax makes a number of different BASIC Stamp micro-controllers. The BASIC Stamp Editor should be configured for the particular type of controller being used, for example a BS2p. Mouse-over the stamp icons chose then click.

LSU 06/04/2007BASIC Stamp Editor9 Configuring the Stamp Type The Stamp mode can also be set by using the Directive pull-down menu. The $STAMP Directive is automatically inserted in the source file. There is also a $PORT Directive available from the pull-down menu for selecting the COM port.

LSU 06/04/2007BASIC Stamp Editor10 PBASIC Help Access HELP from the menu bar or press F1 Learn to use the Syntax Guide and PBASIC Command Reference.

LSU 06/04/2007BASIC Stamp Editor11 Checking and Running a PBASIC Program A PBASIC program can be checked for errors from the Run pull down menu. Select Check Syntax. A BASIC Stamp does not have to be connected. When any syntax errors have been corrected, selecting Run downloads and executes the program on the attached BASIC Stamp hardware.

LSU 06/04/2007BASIC Stamp Editor12 Number Systems Micro-controllers operate with digital logic that has two states (0V for logic 0 and +5 for logic 1). It is natural then to use a binary number system (base 2) consisting of only two digits, 0 and 1. Binary numbers are represented by collections of bits (binary digits). Leading 0’s can be added without changing the value = 101 or decimal 5

LSU 06/04/2007BASIC Stamp Editor13 Bits and Bytes The bit is the smallest unit of data. Numerically it can be either 0 or 1 but can represent other useful quantities such as TRUE or FALSE, ON or OFF, RED or GREEN, etc. A byte consists of eight bits and is convenient for representing numerical quantities (0 to 255) or characters. Bit 0 is the least- significant-bit. These are the bit numbers and weighted values:

LSU 06/04/2007BASIC Stamp Editor14 Other Number Systems Hexadecimal (base 16) numbers are commonly used in the world of micro-controllers. –Hex numbers are compact: each hex digit represents 4 bits. –Easy to convert binary to hex and hex to binary.

LSU 06/04/2007BASIC Stamp Editor15 Other data types - the nibble The nibble is a collection of four bits. It is useful for representing BCD (binary coded decimal) and hexadecimal (base 16) numbers.

LSU 06/04/2007BASIC Stamp Editor16 Word data type The word is a collection of sixteen bits. The individual bits are numbered from 0 (least significant bit) to 15 (most significant bit) and the bits have weighted values from 2 0 to 2 15 (or 32,768 decimal). A word can also be viewed as two bytes. Bits 0 through 7 form the low order byte, bits 8 through 15 form the high order byte. A word sized number value can represent an unsigned value from 0 to or- a signed valued from -32,768 to 32,767

LSU 06/04/2007BASIC Stamp Editor17 Variables A variable is a memory location for storage and retrieval of a number. In PBASIC a variable has a fixed size depending upon the desired range of values needed for a given application. The BASIC Stamp has limited memory. Use the smallest variable type necessary for the application to conserve memory.

LSU 06/04/2007BASIC Stamp Editor18 Declaring and Naming Variables In PBASIC a variable is declared by assigning a name for the variable and by defining the type (size). For example, for the BS2 a variable declaration might look like ageYrs var byte ageYrs is the name of the variable which might refer to the age of a person in years. The keyword var is used to declare a variable. In this instance the size of the variable is 1 byte which can take on values of 0 to 255 which is a reasonable size and range of values for the intended application (age of a person). The value of a variable can change as the result of program execution.

LSU 06/04/2007BASIC Stamp Editor19 Constants Constants do not change values. The value is assigned when the program is written but does not change during program execution. Constants are named in a manner similar to variables, for example NumButtons CON 5 A constant named NumButtons is declared by the keyword CON with a value of 5. This constant might hold the number of buttons on a control panel or it could be the number of buttons on a shirt. In any case, we name the constant to reflect its meaning in a program.

LSU 06/04/2007BASIC Stamp Editor20 Naming Conventions Notice that in the examples for declaring variables and constants we name them using the following convention: Variable names start with a lowercase letter, for example ageYrs. Constant names start with uppercase letters, for example NumButtons. Words within a name are capitalized for improved readability. The PBASIC language does not care about these conventions. They are used only for aiding in the documentation and troubleshooting of programs. Perhaps most importantly, use meaningful names that help to explain program logic and operation.

LSU 06/04/2007BASIC Stamp Editor21 Activities Students will correct any soldering defects found their Stage 1 BalloonSat boards. The BASIC Stamp Editor will be installed on the lab computer. Students will become familiar with running the software and become proficient in using the PBASIC Help utility. Students will establish a communications link between BalloonSat and the lab computer.