SX18AC/SO Parallax Inc, SX18AC/SO Datasheet - Page 31
![no-image](/images/manufacturer_photos/0/5/515/parallax_inc_sml.jpg)
SX18AC/SO
Manufacturer Part Number
SX18AC/SO
Description
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer
Parallax Inc
Series
SXr
Datasheet
1.SX18ACSO.pdf
(43 pages)
Specifications of SX18AC/SO
Core Processor
RISC
Core Size
8-Bit
Speed
50MHz
Number Of I /o
12
Program Memory Size
3KB (2K x 12)
Program Memory Type
FLASH
Ram Size
137 x 8
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC
Voltage - Supply (vcc/vdd)
-
Eeprom Size
-
Data Converters
-
Peripherals
-
Connectivity
-
Logical Operations
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
Arithmetic and Shift Operations
ADD fr,W
ADD W,fr
CLR fr
CLR W
CLR !WDT
DEC fr
DECSZ fr
INC fr
INCSZ fr
RL fr
RR fr
SUB fr,W
SWAP fr
16.0 INSTRUCTION SET SUMMARY TABLE
Table 16-1 list all of the instructions, organized by cate-
gory. 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 flags affected by the instruction.
The “Cycles” column typically shows a value of 1, which
means that the overall throughput for the instruction is
one per clock cycle. In some cases, the exact number of
© 1998 Scenix Semiconductor, Inc. All rights reserved.
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 & lit)
Complement of fr into fr (fr = fr ^ FFh)
OR of fr and W into fr (fr = fr | W)
OR of W and fr into 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)
Add W to fr (fr = fr + W); carry flag is added if CF
bit in FUSEX register is cleared to 0
Add fr to W (W = W + fr); carry flag is added if
CF bit in FUSEX register is cleared to 0
Clear fr (fr = 0)
Clear W (W = 0)
Clear Watchdog Timer
Decrement fr (fr = fr - 1)
Decrement fr and Skip if Zero (fr = fr - 1 and skip
next instruction if result is zero)
Increment fr (fr = fr + 1)
Increment fr and Skip if Zero (fr = fr + 1 and skip
next instruction if result is zero)
Rotate fr Left through Carry (fr = << fr)
Rotate fr Right through Carry (fr = >> fr)
Subtract W from fr (fr = fr - W); complement of
the carry flag is subtracted if CF bit in FUSEX
register is cleared to 0
Swap High/Low Nibbles of fr (fr = <> fr)
Description
Table 16-1. The SX Instruction Set
- 31 -
cycles depends on the outcome of the instruction (such
as the test-and-skip instructions) or the clocking mode
(Compatible or Turbo). In those cases, all possible num-
bers 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
(Compatible mode). The divide-by factor is selected
through the FUSE Word register.
(Compatible)
2 (skip)
2 (skip)
Cycles
1 or
1 or
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
(Turbo)
Cycles
2 (skip)
2 (skip)
1 or
1 or
1
1
1
1
1
1
1
1
1
1
1
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 010f ffff
0001 100f ffff
1111 kkkk kkkk
0001 111f ffff C, DC, Z
0001 110f ffff C, DC, Z
0000 011f ffff
0000 0100 0000
0000 0000 0100 TO, PD
0000 111f ffff
0010 111f ffff
0010 101f ffff
0011 111f ffff
0011 011f ffff
0011 001f ffff
0000 101f ffff C, DC, Z
0011 101f ffff
SX18AC / SX20AC / SX28AC
Opcode
www.scenix.com
Affected
Flags
none
none
none
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
C
C