p8x32a Parallax, Inc., p8x32a Datasheet - Page 16

no-image

p8x32a

Manufacturer Part Number
p8x32a
Description
8-cog Multiprocessor Microcontroller
Manufacturer
Parallax, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p8x32a-D40
Manufacturer:
ParallaxInc
Quantity:
4 096
Part Number:
p8x32a-M44
Quantity:
4 328
Part Number:
p8x32a-M44
Manufacturer:
PARADE
Quantity:
20 000
Part Number:
p8x32a-Q44
Manufacturer:
Parallax Inc
Quantity:
1 901
Part Number:
p8x32a-Q44
Manufacturer:
MAX
Quantity:
40
Part Number:
p8x32a-Q44
Manufacturer:
Parallax Inc
Quantity:
10 000
Part Number:
p8x32a-Q44
Manufacturer:
PARALLA
Quantity:
20 000
Propeller™ P8X32A Datasheet
6.0
The Propeller chip is programmed using two languages designed specifically for it: 1) Spin, a high-level object-based
language, and 2) Propeller Assembly, a low-level, highly-optimized assembly language. There are many hardware-based
commands in Propeller Assembly that have direct equivalents in the Spin language.
The Spin language is compiled by the Propeller Tool software into tokens that are interpreted at run time by the Propeller
chip’s built-in Spin Interpreter. The Propeller Assembly language is assembled into pure machine code by the Propeller Tool
and is executed in its pure form at run time.
Propeller Objects can be written entirely in Spin or can use various combinations of Spin and Propeller Assembly. It is often
advantageous to write objects almost entirely in Propeller Assembly, but at least two lines of Spin code are required to launch
the final application.
6.1.
All words listed are always reserved, whether programming in Spin or in Propeller Assembly. As of Propeller Tool v1.05:
a
6.1.1.
Copyright © Parallax Inc.
_CLKFREQ
_CLKMODE
_FREE
_STACK
_XINFREQ
ABORT
ABS
ABSNEG
ADD
ADDABS
ADDS
ADDSX
ADDX
AND
ANDN
BYTE
BYTEFILL
BYTEMOVE
CALL
CASE
CHIPVER
CLKFREQ
CLKMODE
CLKSET
CMP
CMPS
CMPSUB
CMPSX
CMPX
CNT
COGID
= Assembly element;
• DIRB, INB, and OUTB: Reserved for future use with a possible 64 I/O pin model. When used with the P8X32A, these
• ENC, MUL, MULS, ONES: Use with the current P8X32A architecture yields indeterminate results.
a
a
d
a
d
a
a
a
s
a
s
a
a
labels can be used to access Cog RAM at those locations for general-purpose use.
s
s
a
a
d
s
a
a
d
a
PROGRAMMING LANGUAGES
Reserved Word List
Words Reserved for Future Use
s
s
s
s
s
s
s
s
COGINIT
COGNEW
COGSTOP
CON
CONSTANT
CTRA
CTRB
DAT
DIRA
DIRB
DJNZ
ELSE
ELSEIF
ELSEIFNOT
ENC
FALSE
FILE
FIT
FLOAT
FROM
FRQA
FRQB
HUBOP
IF
IFNOT
IF_A
IF_AE
IF_ALWAYS
IF_B
IF_BE
IF_C
s
s
s
a#
a
s
d
d
d
d#
a
s
s
s
d
d
a
a
a
= Spin element;
d
s
a
s
a
a
s
s
d
d
s
s
a
IF_C_AND_NZ
IF_C_AND_Z
IF_C_EQ_Z
IF_C_NE_Z
IF_C_OR_NZ
IF_C_OR_Z
IF_E
IF_NC
IF_NC_AND_NZ
IF_NC_AND_Z
IF_NC_OR_NZ
IF_NC_OR_Z
IF_NE
IF_NEVER
IF_NZ
IF_NZ_AND_C
IF_NZ_AND_NC
IF_NZ_OR_C
IF_NZ_OR_NC
IF_Z
IF_Z_AND_C
IF_Z_AND_NC
IF_Z_EQ_C
IF_Z_NE_C
IF_Z_OR_C
IF_Z_OR_NC
INA
INB
JMP
JMPRET
LOCKCLR
d
d#
a
d
a
a
= dual (available in both languages);
a
a
a
a
d
Table 16: Reserved Word List
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
LOCKNEW
LOCKRET
LOCKSET
LONG
LONGFILL
LONGMOVE
LOOKDOWN
LOOKDOWNZ
LOOKUP
LOOKUPZ
MAX
MAXS
MIN
MINS
MOV
MOVD
MOVI
MOVS
MUL
MULS
MUXC
MUXNC
MUXNZ
MUXZ
NEG
NEGC
NEGNC
NEGNZ
NEGX
NEGZ
NEXT
Page 16 of 36
a
a
a
a#
a
s
a
a
a
a
a
a#
a
a
a
d
a
s
a
a
a
a
s
d
d
d
s
s
s
s
s
NOP
NOT
NR
OBJ
ONES
OR
ORG
OTHER
OUTA
OUTB
PAR
PHSA
PHSB
PI
PLL1X
PLL2X
PLL4X
PLL8X
PLL16X
POSX
PRI
PUB
QUIT
RCFAST
RCL
RCR
RCSLOW
RDBYTE
RDLONG
RDWORD
REBOOT
a
d
d
a
s
s
a
d
s
s
a
a
a
d
d#
d
d
d
s
#
#
s
s
s
s
s
= reserved for future use
s
s
s
a
a
a
s
REPEAT
RES
RESULT
RET
RETURN
REV
ROL
ROR
ROUND
SAR
SHL
SHR
SPR
STEP
STRCOMP
STRING
STRSIZE
SUB
SUBABS
SUBS
SUBSX
SUBX
SUMC
SUMNC
SUMNZ
SUMZ
TEST
TESTN
TJNZ
TJZ
TO
s
a
a
a
a
a
a
a
a
s
a
a
s
a
a
a
a
a
a
s
a
a
a
a
s
s
s
s
a
s
s
Rev 1.0 11/14/2007
TRUE
TRUNC
UNTIL
VAR
VCFG
VSCL
WAITCNT
WAITPEQ
WAITPNE
WAITVID
WC
WHILE
WORD
WORDFILL
WORDMOVE
WR
WRBYTE
WRLONG
WRWORD
WZ
XINPUT
XOR
XTAL1
XTAL2
XTAL3
www.parallax.com
a
a
a
s
a
d
d
d
s
s
s
s
s
s
s
a
a
a
s
d
d
d
d
s
s

Related parts for p8x32a