Parallax 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 will, at its option, repair or replace the merchandise, or refund the purchase price. Before
returning the product to Parallax, call for a Return Merchandise Authorization (RMA) number. Write the RMA number on the
outside of the box used to return the merchandise to Parallax. Please enclose the following along with the returned merchandise:
your name, telephone number, shipping address, and a description of the problem. Parallax will return your product or its
replacement using the same shipping method used to ship the product to Parallax.
14-DAY MONEY BACK GUARANTEE
If, within 14 days of having received your product, you find that it does not suit your needs, you may return it for a full refund.
Parallax will refund the purchase price of the product, excluding shipping/handling costs. This guarantee is void if the product
has been altered or damaged. See the Warranty section above for instructions on returning a product to Parallax.
COPYRIGHTS AND TRADEMARKS
This documentation is Copyright 2003 by Parallax, Inc. By downloading or obtaining a printed copy of this documentation or
software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a
violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication
of this documentation for commercial uses is expressly prohibited by Parallax, Inc. Check with Parallax for approval prior to
duplicating any of our documentation in part or whole for any use.
SX-Key is a registered trademark of Parallax, Inc. If you decide to use the name SX-Key on your web page or in printed material,
you must state that "SX-Key is a registered trademark of Parallax, Inc." Other brand and product names are trademarks or
registered trademarks of their respective holders
ISBN 1-928982-01-8
DISCLAIMER OF LIABILITY
Parallax, Inc. is not responsible for special, incidental, or consequential damages resulting from any breach of warranty, or under
any legal theory, including lost profits, downtime, goodwill, damage to or replacement of equipment or property, or any costs of
recovering, reprogramming, or reproducing any data stored in or used with Parallax products. Parallax 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 SX-Key/Blitz and SX chip application, no matter how life-threatening it may be.
WEB SITE AND DISCUSSION LISTS
The Parallax web site (www.parallax.com) has many downloads, products, customer applications and on-line ordering for the
components used in this text. We also maintain several e-mail discussion lists for people interested in using Parallax products.
These lists are accessible from www.parallax.com via the Support ? Discussion Groups menu. These are the lists that we operate:
§
§
§
SX Tech – Discussion of programming the SX microcontroller with Parallax assembly language tools and 3
rd
party
BASIC and C compilers. Approximately 600 members.
BASIC Stamps – With over 2,500 subscribers, this list is widely utilized by engineers, hobbyists and students who share
their BASIC Stamp projects and ask questions.
Stamps in Class – Created for educators
and
students, this list has 500 subscribers who discuss the use of the Stamps in
Class curriculum in their courses. The list provides an opportunity for both students and educators to ask questions and
get answers.
Parallax Educators – This focus group of 100 members consists exclusively of educators and those who contribute to the
development of Stamps in Class. Parallax created this group to obtain feedback on our curricula and to provide a forum
for educators to develop Teacher’s Guides.
Parallax Translators – Consisting of less than 10 people, the purpose of this list is to provide a conduit between Parallax
and those who translate our documentation to languages other than English. Parallax provides editable Word
documents to our translating partners and attempts to time the translations to coordinate with our publications.
Toddler Robot – A customer created this discussion list to discuss applications and programming of the Parallax
Toddler robot.
Javelin Stamp – Discussion of application and design using the Javelin Stamp, a Parallax module that is programmed
using a subset of Sun Microsystems’ Java® programming language. Approximately 250 members.
§
§
§
§
This manual is valid with the following software and firmware versions:
IDE:
SXKey.exe software version 2.0
Firmware:
SX-Key rev. F and SX-Blitz rev. A
The information herein will usually apply to newer versions but may not apply to older versions. New software can be obtained
free on our web site (www.parallax.com). If you have any questions about what you need to upgrade your product, please contact
Parallax.
Welcome
Thank you for purchasing the Parallax SX-Key®/Blitz development system. We have done our best to
produce a full-featured, yet easy to use development system for the SX microcontrollers. The result is
the SX-Key and the SX-Blitz; very tiny, full-featured development tools with a Windows® 95 and higher
versions interface. We hope you will find this system as enjoyable to use as we do.
This manual is written for the SX20/28 chips with a date code of AB9921AA or later, and SX48/52 chips
with a date code of AB0001A or later.
Older chips are not supported by this manual or the SX-Key development system.
Table of Contents
Table of Contents
1
2
3
4
Introduction to the SX-Key/Blitz Hardware ................................................................................................................13
Installing the SX-Key/Blitz Software.............................................................................................................................15
Connecting and Downloading to the SX Tech Board .......................................................................................17
The SX-Key/Blitz Interface .............................................................................................................................................19
4.1
Starting the SX-Key/Blitz Software ....................................................................................................................19
4.1.1
Command Line Switches ......................................................................................................................19
4.2
The SX Editor .........................................................................................................................................................20
4.3
The Menus..............................................................................................................................................................21
4.3.1
The File Menu ........................................................................................................................................21
4.3.2
The Edit Menu........................................................................................................................................22
4.3.3
The Run Menu........................................................................................................................................23
4.3.4
The Help Menu ......................................................................................................................................25
4.4
The Windows .........................................................................................................................................................25
The SX-Key Debugger......................................................................................................................................................31
5.1
The Debugger Windows.......................................................................................................................................31
5.1.1
The Registers Window..........................................................................................................................31
5.1.2
The Debug Window ..............................................................................................................................34
5.1.3
The Watch Window...............................................................................................................................35
5.1.4
The Code/List File Window ................................................................................................................35
5.1.5
Modifying registers during debugging ..............................................................................................36
5.1.6
Breakpoints and the Current Instruction............................................................................................37
5.1.7
Setting the Program Counter ...............................................................................................................37
The Device Window.........................................................................................................................................................39
The SASM Assembler ......................................................................................................................................................43
7.1
The Structure of an SX Assembly Program........................................................................................................44
The EQU and = Directives....................................................................................................................47
7.3.2
The BREAK Directive............................................................................................................................47
7.3.3
The CASE and NOCASE Directives....................................................................................................47
7.3.4
The DEVICE Directive ..........................................................................................................................48
7.3.5
The DS Directive ....................................................................................................................................51
7.3.6
The DW Directive ..................................................................................................................................51
7.3.7
The END Directive ................................................................................................................................51
7.3.8
The ERROR Directive............................................................................................................................52
7.3.9
The FREQ Directive...............................................................................................................................52
7.3.10 The __FUSE and __FUSEX Directives.................................................................................................52
据外媒报道,俄罗斯斯科尔科沃理工学院能源科技中心(Skoltech Center for Energy Science and Technology)、俄罗斯RAS化学物理问题研究中心(IPCP RAS)以及俄罗斯门捷列夫化工大学 (D.I. Mendeleev University of Chemical Technology)的研究人员设计出一种新型聚合物阴极材料,可实现性能优越的超快...[详细]