45181 Parallax Inc, 45181 Datasheet - Page 44

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.1
A typical SX assembly language program contains comments, directives, symbols, labels, expressions
and mnemonic instructions as shown in the sample below.
Page 44 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
The Structure of an SX Assembly Program
;---------------------------------------
;|
;|
;|
;---------------------------------------
; =====Device data and Equates=====
pvdd
data_out_a
; =====Variables=====
xbit_in
data_low
data_high
pulses
; =====Begin code=====
; =====JUMP TABLE=====
; =====PC COMMUNICATION=====
get_data
send_okay
send_data
:go
DEVICE
org
org
jmp
jmp
jmp
XYZ Controller
Written by John Doe
(C) 1997 Company, Inc.
SX28, OSCHS2, PROTECT
ID ’V2.1’
RESET Main
EQU
EQU
$08
ds 1
ds 1
ds 1
ds 1
$000
read
program
pin_mode
mov
clrb
jmp
mov
mov
mov
jmp
mov
clc
setb
rc.1
%1100
w,#19
dc
send_data:bits
w,#$00
data_low,w
w,#4
send_data:go
w,#19
dc
Version 2.1
12/01/97
;vdd
;point to start of ram
;pc communication data
;programming pulse count
;$00 = read device
;$01 = program device
;$07 = pin mode
;ready
;set receive mode
;receive word into data
;ready null+0+16outdata+1
;clear carry for stop bit
;set transmit mode
|
|
|
Comments
Directives
Symbols
Mnemonics
Operands
Labels

Related parts for 45181