background image

 

Preface 

Page

 x 

 Javelin Stamp Manual v1.1 

 www.javelinstamp.com  

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(); 
    System.out.println("Now, it's in a complete 
program."); 
    example.displaySameMessageAgain(); 
  } 

 

 

Complete class files that can be instantiated by other programs.  Here is 
an example: 

  
 

package examples.manual_v1_0; 
public class CompleteClassFile { 
  public static void displaySameMessageAgain() { 
    System.out.println("Now, it's in a complete class 
file"); 
  } 
}

 

Resources and Technical Support 

The inside cover of this manual has three sections pertaining to resources: 
 

 

Internet Access 

 

Internet Javelin Stamp Discussion List 

 

Contacting Parallax 

 

Follow  the  Tech  Support  link  at 

www.javelinstamp.com

 

for  the  latest  in  tech  support  contact  info,  discussion 
group  links,  manual  errata,  answers  to  frequently  asked 
questions, and more! 

Summary of Contents for Javelin Stamp

Page 1: ...ss 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...

Page 2: ...Javelin Stamp Manual Version 1 1...

Page 3: ...allax COPYRIGHTS AND TRADEMARKS This documentation is copyright 2005 by Parallax Inc By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclus...

Page 4: ...rallax created this group to obtain feedback on our curricula and to provide a forum for educators to develop and obtain Teacher s Guides Translators The purpose of this list is to provide a conduit b...

Page 5: ......

Page 6: ...ALS 3 Background VPs 3 Foreground VPs 3 HOW THE JAVELIN STAMP WORKS 4 JAVELIN STAMP HARDWARE 5 EQUIPMENT AND SYSTEM REQUIREMENTS 6 USEFUL HARDWARE 7 2 JAVELIN QUICK START 11 HARDWARE SETUP 11 INSTALLI...

Page 7: ...69 COMMUNICATING WITH OTHER COMPUTERS 74 COMMUNICATING WITH PERIPHERAL DEVICES 78 5 USING THE JAVELIN STAMP IDE 81 STARTING THE IDE 81 SETTING GLOBAL OPTIONS 81 STARTING A PROJECT 82 BUILDING YOUR PRO...

Page 8: ...Statics 125 Abstraction 126 Exceptions 126 Packages and CLASSPATH 129 ONLINE RESOURCES 131 JAVELIN STAMP KEYWORD REFERENCE 131 abstract 131 boolean 132 break 132 byte 132 case 133 catch 133 char 133...

Page 9: ...USED KEYWORDS 156 Unsupported Reserved Words 156 7 WORKING WITH OBJECTS 157 WHAT S AN OBJECT 157 Encapsulation 159 Polymorphism 160 Class Relationships 161 An Object Oriented Example 161 Decoupling th...

Page 10: ...A UTIL PACKAGE 182 Random 182 THE STAMP UTIL PACKAGE 182 Expect 183 List 183 LinkedList 183 LINKEDLISTITEM 184 9 JAVELIN STAMP HARDWARE REFERENCE 185 ADC 185 BUTTON 186 CPU 190 carry 191 count 191 del...

Page 11: ...NICAL DETAILS 225 SUMMARY OF JAVA DIFFERENCES 225 Single Thread 225 No Garbage Collection 225 Subset of Primitive Data Types 226 Subset of Java Libraries 227 Strings are ASCII 229 No Interfaces 229 On...

Page 12: ...and conventions resources and acknowledgements 1 Introduction General information about the Javelin its uses equipment it can be used with specifications software etc 2 Javelin Quick Start Recommende...

Page 13: ...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 con...

Page 14: ...manual has LOTS of example programs and circuits to help you transition from PBASIC to the Java subset used to program the Javelin Stamp Especially if you are unfamiliar with Java we strongly recommen...

Page 15: ...isplaySameMessageAgain Complete class files that can be instantiated by other programs Here is an example package examples manual_v1_0 public class CompleteClassFile public static void displaySameMess...

Page 16: ...n Stamp Manual Javelin Stamp IDE Application Notes Library Files Acknowledgements Chris Waters and Celsius Research provided the Javelin Stamp firmware and reference design This manual was developed u...

Page 17: ......

Page 18: ...banks and no more tight squeezes with variable space The Javelin has built in Virtual Peripherals VPs that take care of serial communication pulse width modulation and tracking time in the background...

Page 19: ...up to aerospace subsystem designs We expect to see the Javelin used in a similar manner However by making use of the Javelin s new features it can be used to tackle some more demanding designs that us...

Page 20: ...lin module itself Virtual Peripherals The Javelin Stamp firmware supports a variety of Virtual Peripherals VPs The VPs are separated into two separate categories foreground and background The backgrou...

Page 21: ...then starts fetching bytecodes from the SRAM and executing them The bytecode instructions can be executed very rapidly because all data is transmitted along parallel data busses instead of synchronous...

Page 22: ...current Since the Javelin consumes approximately 60 mA you have 90 mA available for other uses Keep in mind that if you are utilizing the full 60 mA of total I O pin source sink that only 30 mA is le...

Page 23: ...h an approved USB to serial adaptor See www javelinstamp com for information on products that have been tested and approved Or A 25 pin serial port with a 25 to 9 pin adaptor The Javelin Stamp Starter...

Page 24: ...tage and serial cables See the 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 b...

Page 25: ...Sout Sin ATN Vss P0 P1 P2 P3 P4 P5 P6 P7 P11 P9 P8 Vin P10 P15 P14 P13 P12 Vdd Rst Vss 1 U1 X4 9 8 7 6 4 3 2 1 X3 Figure 1 3 Javelin Stamp Demo Board Features The Javelin Stamp Demo board Error Refere...

Page 26: ...ease to restart the program from its beginning A servo port for connecting and controlling servo motors As mentioned earlier the circuit examples in this manual feature parts you can find in the Javel...

Reviews: