45181 Parallax Inc, 45181 Datasheet - Page 127

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
CLR
Operation: dest is cleared to 0. Z is set to 1 in command #1 and #2 while TO and PD are set to 1 in command #3.
CLRB
Operation: dest_bit is cleared to 0.
CLZ
Operation: The Z flag is cleared to 0.
CSA
Operation: op1 is compared to op2. If op1 is greater than op2, the following instruction word is skipped. W is left
Note:
1) CLR
2) CLR
3) CLR
1) CLRB
1) CLZ
1) CSA
2) CSA
Command
Command
Command
Command
dest
fr
W
!WDT
Prescaler is also cleared in command #3, if assigned.
dest_bit
op.bit
op1, op2
fr, #literal
fr1, fr2
holding the result of op1 + ~op2 in command #1 and op2 - op1 in command #2. If CARRYX is specified, c
affects the result. Insert a CLC before command #1 and an STC before command #2 to avoid strange results.
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following CSA is a single-word instruction.
Words
Words
Words
Words
1
1
1
1
1
3
3
3 or 4 (skip)
3 or 4 (skip)
(12 or 16)
(12 or 16)
Cycles
Cycles
Cycles
Cycles
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
13 Appendix C: SX Instruction Set
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 127
W, C, DC, Z
W, C, DC, Z
TO, PD
Affects
Affects
Affects
Affects
op.bit
W, Z
fr, Z
Z
Compare op1 to op2 and skip if above
0000 011f ffff CLR fr
0000 0100 0000 CLR w
0000 0000 0100 CLR wdt
0100 bbbf ffff CLRB op.bit
0100 0100 0011 CLZ
1100 kkkk kkkk MOV W, #lit^$FF
0001 110f ffff ADD W, fr
0111 0000 0011 SC
0010 000f ffff MOV W, fr1
0000 100f ffff MOV W, fr2-W
0110 0000 0011 SNC
Coding
Coding
Coding
Coding
Clear dest_bit
Clear dest
Clear zero

Related parts for 45181