background image

 

Preface 

Javelin Stamp Manual v1.1

 www.javelinstamp.com 

 Page ix 

to review the reading list below.  It will acquaint you with the scope of Javelin Stamp projects 
and help you avoid some of the programming pitfalls you might otherwise encounter. 
 
Suggested reading for Java Programmers: 
 

Section 

Page 

The Javelin Stamp and Its Features 

Programming Language - Java

TM

 for the Javelin Stamp 

Summary of Java Differences 

225 

Javelin Stamp Integrated Development Environment 

 

Virtual

 

Peripherals 

Background VPs 

Foreground VPs 

How the Javelin Stamp Works 

BASIC Stamp Enthusiasts – READ THIS 

As with the Java Programmers who were addressed in the previous section, programming the 
Javalin Stamp is also likely to be very different from what you, the BASIC Stamp Enthusiast, 
are  expecting.    This  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 recommend that you work through the examples in 
this text sequentially.  The majority of this manual’s organization was established with you in 
mind,  so,  if  you  have  not  already  done  so,  please  take  a  look  at  the  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. 

Manual Conventions 

Below is a list of typographical conventions used in this manual: 
 
 

Monospaced

 is used for: 

 

Words that are part of the language syntax when they are part of a sentence. 

 

Fragments  of  programs.    The  code  snippet  below  is  an  excerpt  from  a 
program,  but  it  cannot  be  run  on  its  own.    It  has  to  appear  in  either  a 
complete  program  or  a  complete  class  file,  both  of  which  are  discussed 
next: 

Содержание Javelin Stamp

Страница 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...

Страница 2: ...Javelin Stamp Manual Version 1 1...

Страница 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...

Страница 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...

Страница 5: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 17: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: