45181 Parallax Inc, 45181 Datasheet - Page 52

SX TECH TOOL KIT NO POWER

45181

Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet

Specifications of 45181

Contents
SX Book, SX Key, SX Tech Board, Samples, Resonators, Cable and Manual
Product
Microcontroller Basic Stamps
Operating Supply Voltage
5 V
For Use With/related Products
SX MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
7 The SASM Assembler
7.3.8
The ERROR directive emits a user-defined message for this source code line. The syntax for the ERROR
directive is:
During assembly, SASM performs two passes through the source code. The optional first parameter can
be used to control the type of message, and in which pass it shall be emitted.
P1 and P2 select the first and second pass; when the parameter is missing, pass 2 is the default. W
defines a warning message, and C defines a comment. When W and C are omitted, the message will be
an error. Assembly is stopped on error messages, but it continues on warnings and comments. Errors
and warnings are displayed in the status area if the SX-Key software, where comments are only placed
in the listing file.
Examples:
User-defined errors are particularly useful to provide usage checking for complex macros.
7.3.9
The FREQ (frequency) directive is used to set the frequency (in Hz) of the SX-Key’s internal
programmable oscillator to be used during debugging. The syntax for the FREQ directive is:
Note that frequency can be any number from 400000 to 110000000. Additionally, underscore characters
can be used to help make the number more readable, as in 50_000_000, which is 50 MHz.
7.3.10 The __FUSE and __FUSEX Directives
These two directives allow defining explicit expression values for the two SX configuration registers,
FUSE and FUSEX (note the two leading underscores in front of the directive names). It is not
recommended to use these directives for setting the fuse bits directly. Instead, use the various other
directives to configure the SX chip according to the needs of your application.
Page 52 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
ERROR
The ERROR Directive
The FREQ Directive
ERROR
ERROR P1
ERROR P1W
ERROR P1C
ERROR P2
ERROR P2W
ERROR P2C
FREQ
[P1|2[W|C]]“<string>”
“Message”
“Message”
“Message”
“Message”
“Message”
“Message”
“Message”
frequency
; Pass 2 error
; Pass 1 error
; Pass 1 warning
; Pass 1 comment
; Pass 2 error (same as the default)
; Pass 2 warning
; Pass 2 comment

Related parts for 45181