45111 Parallax Inc, 45111 Datasheet - Page 48

MANUAL FOR SX-KEY/BLITZ VER. 2.0

45111

Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 45111

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
7 The SASM Assembler
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 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:
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.
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.
The DEVICE Directive
CASE
temp
Temp
DEVICE
DEVICE
DEVICE
EQU $01
EQU $02
setting {,setting…}
SX20AC, OSCHS3
BOR42, TURBO, PROTECT

Related parts for 45111