Parallax Javelin Stamp Manual Download Page 21

 

1: Introduction 

Page

 4 

 Javelin Stamp Manual v1.1 

 www.javelinstamp.com  

These  Virtual  Peripherals  are  built  into  the  Javelin 
Stamp’s firmware.  Although you can write library classes 
that make use of these VPs, the VPs themselves cannot be 
modified or rewritten.  

How the Javelin Stamp Works 

The  Javelin  Stamp’s  hardware  architecture  is  shown  in  Figure  1.2.    Programming  and 
debugging is done via communication with the serial port.  The COM circuit takes care of the 
voltage  conversions  necessary  for  a  TTL  device  to  talk  with  an  RS232  port.    The  Java 
interpreter  processes  all  serial  port/COM  circuit  information.    Whether  it’s  byte  codes, 
debugging data or serial messages, the interpreter processes the data and decides what to do 
with it.   
 
When  a  program  is  downloaded,  the  interpreter  buffers  the  program  bytecodes  and  writes 
them to the EEPROM.  Upon reset (or a power interruption), all the Javelin Stamp’s I/O pins 
are  set  to  input.    The  interpreter  copies  the  bytecodes  to  the  SRAM,  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 
serial lines.  A typical fetch and execute cycle involves a couple of read/write cycles.  During 
a read/write cycle, the interpreter loads some of the 15 bit address information into an address 
latch and writes the other portion directly to the SRAM.  When the SRAM address is set, then 
the data is read or written by the interpreter as needed.   
 
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.    The  passive  components  including  the  input  and  output 
capacitors,  switching  diode  and  inductor  are  on  the  top  side,  and  the  switching  IC  is  on  the 
bottom side of the board next to the EEPROM.  The switching IC monitors the output voltage 
and  adjusts  the  switching  duty  cycle  to  the  passive  components  to  maintain  a  constant  5  V 
output.   
 

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: