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
Statistical Machine Learning : https://training.eeworld.com.cn/course/4860Statistical learning is a science that uses computers to build probabilistic statistical models based on data and use the mode...
The purpose of this post is to ask you to recommend some chips that can be used to make HMI solutions. The following is an introduction to some chips I know.
1. Allwinner F1C100S
1. Instruction set co...
EEWorld netizens, have you resumed work? ? In order to understand everyone's resumption of work so that EE can carry out subsequent activities and work, we have prepared a questionnaire. The questionn...
I suggest to do a PCB layout column, which is what many newbies want! It is also an important part of improving the industry level. Everyone knows how important PCB layout is to the EMI of power suppl...
This article briefly introduces the popular RTOS. In fact, there are many types of RTOS. Here we specifically refer to the mainstream RTOS in the era of IoT.1 RTThreadis the No.1 domestic RTOS. Needle...
Some time ago, I went to Qingdao to attend TMC's forum on automotive-grade SiC power modules. As mentioned before, in this field, with the conversion from 400V to 800V bus, the SiC industry has becom...[Details]
On March 23, according to SamMobile, the Samsung Galaxy S22 Ultra is the best-selling model in the Samsung Galaxy S22 series, and it is in short supply in the US market. SamMobile reported tha...[Details]
In previous reports, foreign media reported that Tesla has developed a new electrode, and the battery life of electric vehicles using this new electrode will be increased to 1 million miles, or 1.6 m...[Details]
Single chip microcomputer, single chip microcomputer. Generally speaking, it is a chip. But it is a special chip because it does not realize a single logical function. It integrates a whole computer ...[Details]
According to the latest research report released by Strategy Analytics, the global smartphone and tablet slim modem (independent baseband processor) market revenue increased by 72% to US$5.8 billion ...[Details]
1 Introduction
High-power, low-ripple, high-precision stable/pulse DC power supply is a very important special power supply, which is increasingly widely used in modern scientific research, med...[Details]
CAN (Controller Area Network) is a communication protocol used in the automotive and industrial automation fields. It has high reliability, real-time performance and flexibility, and is widely used...[Details]
Abstract: When using a programmable timer/counter as a pulse generator, the output pulse frequency is equal to the input clock frequency divided by the count value, but its value is discrete. Th...[Details]
Recently, a well-known research organization released a latest report stating that Huawei's self-developed Hongmeng operating system will achieve a 2% market share worldwide in 2020, surpassing the c...[Details]
Latest version of IAR Embedded Workbench for RISC-V supports K510 chip, simplifying the development of next-generation image processors
Shanghai, China – November 23, 2022 –
IAR ...[Details]
Three-phase AC circuits are divided into three-phase three-wire and three-phase four-wire systems according to the different connection methods of power supply and load, and each system has differen...[Details]
PLC control system is an electronic device designed for digital operation in industrial production and is the core of industrial control. Today's PLC is no longer limited to logic control, but also...[Details]
I changed to a high-end OLED screen phone, but my eyes are uncomfortable. "More and more netizens have similar questions. Do OLED screens really hurt the eyes? Recently, the reporter conducted an inv...[Details]
In the past incandescent lamp and energy-saving lamp markets, the mainstream lamp models with limited specifications formed by large companies are difficult for LEDs to continue to comply with. L...[Details]