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

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
LOCKNEW
Instruction: Check out a new lock and get its ID.
LOCKNEW
Result: The new lock’s ID (0-7) is written to NewID.
Explanation
LOCKNEW
manage resources that are user-defined and deemed mutually-exclusive.
a unique lock, from the hub, and retrieves the ID of that lock. The
behaves similar to Spin’s
If the
is specified, the C flag is set if no lock was available for checking out. The ID of the newly
checked-out lock is written to NewID unless the
LOCKNEW
depending on the relation between the cog’s hub access window and the instruction’s moment
of execution. See Hub on page 24 for more information.
LOCKRET
Instruction: Release lock back for future “new lock” requests.
LOCKRET
Page 376 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
–INSTR– ZCRI –CON–
000011 0011 1111 ddddddddd ------100
000011 0001 1111 ddddddddd ------101
WZ
NewID
ID
pool.
is one of four lock instructions (
effect is specified, the Z flag is set (1) if the returned ID is zero (0). If the
is a Hub instruction. Hub instructions require 7 to 22 clock cycles to execute
NewID
ID
(d-field) is the register containing the ID (0 – 7) of the lock to return to the lock
,
(d-field) is the register where the newly checked-out lock’s ID is written.
–DEST–
–DEST–
LOCKNEW
– Assembly Language Reference
command; see
–SRC–
–SRC–
LOCKNEW
Result = 0
Z Result
NR
Z Result
LOCKNEW
---
,
effect is specified.
LOCKRET
on page 230.
,
No Lock Free
LOCKSET
C Result
C Result
---
, and
LOCKNEW
LOCKNEW
Not Written
LOCKCLR
Written
Result
Result
checks out
instruction
) used to
WC
Clocks
Clocks
7..22
7..22
effect

Related parts for 122-32000