122-32000 Parallax Inc, 122-32000 Datasheet - Page 366

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
COGINIT
Instruction: Start or restart a cog, optionally by ID, to run Propeller Assembly or Spin code.
COGINIT
Result: Optionally, the started/restarted cog’s ID (0-7) is written to Destination.
Explanation
The
together. Propeller Assembly’s
an active cog. The Destination register has four fields that determine which cog is started,
where its program begins in main memory, and what its
below describes these fields.
The first field, bits 31:18, will be written to the started cog’s
14-bits total that are intended to be the upper bits of a 16-bit long address. Similar to the
Parameter field of Spin’s version of
14-bit address of an agreed-upon memory location or structure to the started cog.
The second field, bits 17:4, holds the upper 14-bits of a 16-bit long address pointing to the
desired assembly program to load into the cog. Cog registers $000 through $1EF will be
loaded sequentially starting at this address, the special purpose registers will be cleared to
zero (0), and the cog will start executing the code at register $000.
The third field, bit 3, should be set (1) if a new cog should be started, or cleared (0) if a
specific cog should be started or restarted.
Page 366 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
000011 0001 1111 ddddddddd ------010
14-bit Long address for PAR Register
COGINIT
Destination (d-field) is the register containing startup information for the target cog
and optionally becomes the destination of the started cog’s ID if a new cog is started.
Destination
instruction behaves similar to two Spin commands,
– Assembly Language Reference
31:18
–DEST–
Table 5-1: Destination Register Fields
COGINIT
–SRC–
COGINIT
14-bit Long address of code to load
instruction can be used to start a new cog or restart
, this first field of Destination is used to pass the
Result = 0
Z Result
17:4
PAR
register will contain. The table
No Cog Free
PAR
C Result
register bits 15:2. This is
COGNEW
Not Written
and
New
Result
3
COGINIT
Cog ID
Clocks
2:0
7..22
, put

Related parts for 122-32000