English
Language : 

45111 Datasheet, PDF (48/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
CASE
temp
Temp
EQU $01
EQU $02
The above code would assemble properly and would have two distinct symbols, temp and Temp.
NOTE: All directives, instructions and reserved words must be specified in upper case when CASE is active.
Using case sensitive mode can be very tricky, can easily lead to wasted time spent debugging, and is not
recommended.
7.3.4 The DEVICE Directive
The DEVICE directive is perhaps the most important directive to appear in source code. This directive
specifies the device type, oscillator type, brownout setting and more. The various symbols for
specifying these options are listed in Table 6 – SX20/28 DEVICE Settings and Table 7 – SX48/52
DEVICE Settings.
Alternatively you may also use the words FUSES or PROCESSOR instead of DEVICE; they have the
same meaning.
The device directive, if supplied, must be the first directive in the code, besides IFDEF or IFNDEF, and
must appear before the first instruction. Multiple device lines can be used to accommodate many pa-
rameters as long as no conflicting parameters are given. The syntax of the device directive is:
DEVICE
setting {,setting…}
The following device lines tell the assembler that the SX chip to be programmed is an SX 20, will use a
high speed oscillator, will initiate brown-out at 4.2 volts, runs in turbo mode, and is code protected.
DEVICE
DEVICE
SX20AC, OSCHS3
BOR42, TURBO, PROTECT
If a setting is not specified, the default is assumed. In this example, the device will also be set for 2-level
stack, 6-bit option register, carry bit ignored, no input synching and no watchdog timer, since the
opposing settings were not specified. See Table 6 – SX20/28 DEVICE Settings and Table 7 – SX48/52
DEVICE Settings, below, for the defaults.
Page 48 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.