background image

 

1: Introduction 

Javelin Stamp Manual v1.1

 www.javelinstamp.com 

 Page 1 

 

The Javelin Stamp and Its Features 

The  Javelin  Stamp  is  a  single  board  computer  that’s  designed  to 
function as an easy-to-use programmable brain for electronic products 
and projects.  As shown in Figure 1.1, it’s about the size and shape of a 
commemorative postage stamp.  It is programmed using software on a 
PC  and  a  subset  of  Sun  Microsystems  Java®  programming  language.  
After the program is downloaded to the Javelin, it can run the program 
without any further help from the 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 
we have while preparing this manual.  The Javelin Stamp is somewhat 
of  a  departure  from  Parallax’s  BASIC  Stamps.    Most  notably,  the 
Javelin  is  programmed  using  a  subset  of  the  Java  programming 
language.    Some  of  the  other  features  that  set  the  Javelin  apart  from 
BASIC Stamps are:  

 

 

The  instruction  codes  for  the  Javelin  are  fetched  and  executed  from  a 
parallel SRAM instead of a serial EEPROM. 

 

The Javelin has 32k of RAM/program memory with a flat architecture.  
No  more  program  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. 

 

Serial  communication  is  buffered  as  a  background  process.    When 
writing programs, all you have to do is periodically check the buffer.  

 

The  Javelin  Stamp  Integrated  Development  Environment  (Javelin 
Stamp  IDE)  software  is  a  significant  departure  from  a  simple  Editor 
and  messages  window  combination.    When  used  with  the  Javelin 
connected  to  a  PC  by  a  serial  cable,  this  software  can  be  used  as  a 
highly  integrated  in-circuit  debugging  system  that  allows  you  to  run 
code, set breakpoints and view variable values, memory usage, I/O pin 
states and more.  There is also no need for emulators; the Javelin can be 
placed directly into the circuit and debugged there. 

 

Delta-sigma A/D conversion.  

 

D/A  conversion  is  accomplished  in  the  background  as  a  continuous 
pulse train delivered by an I/O pin. The pulse width modulation VP can 

  

Figure 1.1 

Javelin 

(top view)

 

Aristides 4/28/05 11:35 AM

Formatted Table

sdill

Comment [2]: 

The Javelin Stamp takes Parallax’s 

BASIC stamps into a new direction. 
The Javelin Stamp thrusts Parallax’s BASIC stamps 
into a new direction. 
Parallax’s BASIC Stamps take a new direction with 
the Javelin. 
The Javelin Stamp is an exciting new 
microcontorller. 

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: