Advertisement

Quick Links

Chipsmall Limited consists of a professional team with an average of over 10 year of expertise in the distribution
of electronic components. Based in Hongkong, we have already established firm and mutual-benefit business
relationships with customers from,Europe,America and south Asia,supplying obsolete and hard-to-find components
to meet their specific needs.
With the principle of "Quality Parts,Customers Priority,Honest Operation,and Considerate Service",our business
mainly focus on the distribution of electronic components. Line cards we deal with include
Microchip,ALPS,ROHM,Xilinx,Pulse,ON,Everlight and Freescale. Main products comprise
IC,Modules,Potentiometer,IC Socket,Relay,Connector.Our parts cover such applications as commercial,industrial,
and automotives areas.
We are looking forward to setting up business relationship with you and hope to provide you with the best service
and solution. Let us make a better world for our industry!
Contact us
Tel: +86-755-8981 8866 Fax: +86-755-8427 6832
Email & Skype: info@chipsmall.com Web: www.chipsmall.com
Address: A1208, Overseas Decoration Building, #122 Zhenhua RD., Futian, Shenzhen, China
  

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Javelin Stamp and is the answer not in the manual?

Questions and answers

Summary of Contents for Parallax Javelin Stamp

  • Page 1 Chipsmall Limited consists of a professional team with an average of over 10 year of expertise in the distribution of electronic components. Based in Hongkong, we have already established firm and mutual-benefit business relationships with customers from,Europe,America and south Asia,supplying obsolete and hard-to-find components to meet their specific needs.
  • Page 2 Javelin Stamp Manual Version 1.1...
  • Page 3 Parallax Inc. warrants its products against defects in materials and workmanship for a period of 90 days from receipt of product. If you discover a defect, Parallax Inc. will, at its option, repair or replace the merchandise, or refund the purchase price.
  • Page 4 Parallax products. Parallax Inc. is also not responsible for any personal damage, including that to life and health, resulting from use of any of our products. You take full responsibility for your BASIC Stamp application, no matter how life-threatening it may be.
  • Page 6: Table Of Contents

    ............36 ECLARING ONSTANTS ARIABLES RRAYS ....................39 ERFORMING ALCULATIONS ......................40 AKING ECISIONS ...................... 43 EPETITIVE PERATIONS ................. 47 ISPLAYING ESSAGES FROM THE AVELIN ................... 49 ENDING ESSAGES TO THE AVELIN Javelin Stamp Manual v1.1 • www.javelinstamp.com • Page i...
  • Page 7 ................101 ARIABLES YPES ONSTANTS Constants ........................103 Number Bases ......................... 104 Expressions ........................104 Special Operators ......................106 Comments ........................108 Control Flow ........................108 Classes and Objects ....................... 111 Page ii • Javelin Stamp Manual v1.1 • www.javelinstamp.com...
  • Page 8 ..........................138 int ........................... 139 new ..........................140 null ..........................140 package .......................... 140 private, protected, public ....................141 return ..........................143 short ..........................143 static ..........................143 super ..........................145 Javelin Stamp Manual v1.1 • www.javelinstamp.com • Page iii...
  • Page 9 Object-Oriented Opportunity ..................170 8: OBJECT REFERENCE ....................173 ....................173 HE JAVA LANG ACKAGE Boolean ........................... 173 Error ..........................174 Exception ........................174 IndexOutOfBoundsException ..................175 Math ..........................175 NullPointerException ..................... 175 Page iv • Javelin Stamp Manual v1.1 • www.javelinstamp.com...
  • Page 10 ........................... 199 readPort ......................... 200 removeVP ........................201 setInput ........................... 202 shiftIn ..........................202 shiftOut ........................... 206 writePin .......................... 210 writePort ........................210 DAC ........................... 211 EEPROM ........................... 212 ..........................215 EMORY Javelin Stamp Manual v1.1 • www.javelinstamp.com • Page v...
  • Page 11 Strings are ASCII ......................229 No Interfaces ........................229 One Dimensional Arrays ....................229 ’ ........230 NDERSTANDING THE AVELIN TAMP EMORY ANAGEMENT ..................232 EMORY AND ARIABLE YPES INDEX ........................... 233 Page vi • Javelin Stamp Manual v1.1 • www.javelinstamp.com...
  • Page 12: Preface

    5: Using the Javelin Stamp IDE Recommended for all – the Javelin Stamp IDE is a powerful tool with many useful features. Javelin Stamp Manual v1.1 • www.javelinstamp.com • Page vii...
  • Page 13: Java Programmers - Read This

    Java Programmers – READ THIS The Javelin Stamp is a small yet powerful controller that makes use of a subset of Java 1.2. The Javelin Stamp has firmware enhancements (called Virtual Peripherals or VPs) that emulate, or virtualize, hardware devices such as UARTs, timers, A/D converters, D/A converters, and more.
  • Page 14: Basic Stamp Enthusiasts - Read This

    Manual Orginazation section at the beginning of this preface. If you are like the rest of us at Parallax, you probably can’t wait to get started, so have fun with Chapter 2: Javelin Quick Start.
  • Page 15: Resources And Technical Support

    Preface System.out.println(“Not a complete program.”); A gray box is used for: Complete programs that can be entered into the Javelin Stamp IDE and • executed on a Javelin Stamp, for example: import examples.manual_v1_0.*; public class CompleteProgram{ public static void main() { CompleteClassFile example = new CompleteClassFile();...
  • Page 16: Free Downloads From Www Javelinstamp Com

    Chris Waters and Celsius Research provided the Javelin Stamp firmware and reference design. This manual was developed using information and research provided by Al Williams Consulting. Each and every employee at Parallax has made some contribution to the Javelin Stamp project, so as always, thanks to the entire Parallax staff.
  • Page 18: 1: Introduction

    PC. The Javelin can be programmed and re-programmed up to one million times. We hope you enjoy working with your new Javelin Stamp as much as Figure 1.1 Javelin we have while preparing this manual. The Javelin Stamp is somewhat (top view) of a departure from Parallax’s BASIC Stamps.
  • Page 19: Programming Language - Java Tm For The Javelin Stamp

    Those of you who appreciate the simplicity and ease of use of the BASIC Stamps need not worry; the Javelin Stamp has many features that BASIC Stamp users have come to depend on in their projects and designs. Here is a list of features built into the Javelin with BASIC...
  • Page 20: Virtual Peripherals

    • Terminal.getChar() type debugging The Javelin Stamp IDE is introduced in Chapter 2, and then discussed in more detail in Chapter 5. This IDE makes real-time debugging so easy that a PC emulator is completely unnecessary. It is just as easy to develop and debug on the Javelin module itself.
  • Page 21: How The Javelin Stamp Works

    The Javelin’s internal voltage regulation is done using a switching regulator. The switching regulator runs cooler and is significantly more efficient than a linear regulator. It accepts voltages between 6 and 24 V, and makes 5 V available for the Javelin Stamp with a total current budget of 150 mA.
  • Page 22: Javelin Stamp Hardware

    Figure 1.2 Javelin Block Diagram Javelin Stamp Hardware Table 1.1 shows the Javelin Stamp’s specifications. Note that the onboard voltage regulator can accept between 6 and 24 V and output up to 150 mA of current. Since the Javelin consumes approximately 60 mA, you have 90 mA available for other uses.
  • Page 23: Equipment And System Requirements

    Or – A 25-pin serial port with a 25 to 9-pin adaptor. The Javelin Stamp Starter Kit is discussed in detail in the following section: Useful Hardware. If you do not have a Javelin Stamp Starter kit, you will need to acquire at least the following.
  • Page 24: Useful Hardware

    Hardware Setup section in Chapter 2. Useful Hardware The Javelin Stamp Starter kit is a great way to get started, especially if this is your first adventure into Javelin based projects. Projects featured in Chapters 2, 4, and 9 make use of the carrier board and parts in this starter kit.
  • Page 25: Javelin

    (c) 2002 Reset Figure Javelin Stamp Demo Board Features The Javelin Stamp Demo board (Error! Reference source not found.) has the following features: Socket for the Javelin Stamp (Labeled U1). • JIDE port for debugging, messages, and downloading programs from the PC into the •...
  • Page 26 As mentioned earlier, the circuit examples in this manual feature parts you can find in the Javelin Stamp Starter Kit. The parts are listed in Table 1.2. Table 1.3 lists parts that are also recommended but not included in the kit.

This manual is also suitable for:

Js1-ic

Table of Contents