sx20ac Parallax, Inc., sx20ac Datasheet - Page 35

no-image

sx20ac

Manufacturer Part Number
sx20ac
Description
Configurable Communications Controllers With Ee/flash Program Memory, In-system Programming Capability And On-chip Debug
Manufacturer
Parallax, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
sx20ac/SS
Manufacturer:
EUDYNA
Quantity:
12
Part Number:
sx20ac/SS
Manufacturer:
UBICOM
Quantity:
20 000
Part Number:
sx20ac/SS-G
Manufacturer:
IR
Quantity:
31 400
Parallax SX20AC/SX28AC
16.0 NATIVE SX INSTRUCTION SET SUMMARY TABLES
Table 16-1 through Table 16-6 list all of the native
assembly instructions, organized by category. For each
instruction, the table shows the instruction mnemonic (as
written in assembly language), a brief description of what
the instruction does, the number of instruction cycles
required for execution, the binary opcode, and the status
bits affected by the instruction.
The “Clock Cycles (Turbo)” column typically shows a
value of 1, which means that the overall throughput for
the instruction is one per clock cycle. Exceptions include
program control branch instructions, which take 3 clock
cycles, and the system control instruction IREAD, which
takes 4.
© Parallax Inc.
AND fr,W
AND W,fr
AND W,#lit
NOT fr
OR fr,W
OR W,fr
OR w,#lit
XOR fr,W
XOR W,fr
XOR W,#lit
Mnemonic,
Operands
AND of fr and W into fr (fr = fr & W)
AND of W and fr into W (W = W & fr)
AND of W and Literal into W (W = W &b lit)
Complement of fr into fr (fr = fr ^ FFh)
OR of fr and W into fr (fr = fr | W)
OR of W and fr in to fr (W – W | fr)
Or of W and Literal into W (W = W | lit)
XOR of fr and W into fr (fr = fr ^ W)
XOR of W and fr into W (W = W ^ fr)
XOR of W and Literal into W (W = W ^ lit)
Table 16-1:
Description
Native
SX Instruction Set: Logical Operands
Page 35 of 51
Clock Cycles
(Slow Mode)
In some cases, the exact number of cycles depends on the
outcome of the instruction (such as the test-and-skip
instructions) or the clocking mode (Slow or Turbo). In
those cases, all possible numbers of cycles are shown in
the table. The instruction execution time is derived by
dividing the oscillator frequency by either one (Turbo
mode) or four (Slow). The divide-by factor is selected
through the FUSE Word register.
A superset of these instructions are available in the SASM
assembler of the SX-Key IDE, and supported by the SX
Key User’s Manual . Both are available for free download
from www.parallax.com/sx.
4
4
4
4
4
4
4
4
4
4
Clock Cycles
(Turbo)
1
1
1
1
1
1
1
1
1
1
0001 011f ffff
0001 010f ffff
1110 kkkk kkkk
0010 011f ffff
0001 001f ffff
0001 000f ffff
1101 kkkk kkkk
0001 101f ffff
0001 100f ffff
1111 kkkk kkkk
Opcode
Rev 1.6 11/20/2006
www.parallax.com
Affected
Bits
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z

Related parts for sx20ac