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

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
Each Special Purpose Register may be accessed via:
The following are examples in Propeller Assembly:
MOV
MOV
The following are examples in Spin:
SPR[$4] := $FF
OUTA := $FF
Hub
To maintain system integrity, mutually-exclusive resources must not be accessed by more
than one cog at a time. The Hub maintains this integrity by controlling access to mutually-
exclusive resources, giving each cog a turn to access them in a “round robin” fashion from
Cog 0 through Cog 7 and back to Cog 0 again. The Hub, and the bus it controls, runs at half
the System Clock rate. This means that the Hub gives a cog access to mutually-exclusive
resources once every 16 System Clock cycles. Hub instructions, the Propeller Assembly
instructions that access mutually-exclusive resources, require 7 cycles to execute but they
first need to be synchronized to the start of the Hub Access Window. It takes up to 15 cycles
(16 minus 1, if we just missed it) to synchronize to the Hub Access Window plus 7 cycles to
execute the hub instruction, so hub instructions take from 7 to 22 cycles to complete.
Figure 1-3 and Figure 1-4 show examples where Cog 0 has a hub instruction to execute.
Figure 1-3 shows the best-case scenario; the hub instruction was ready right at the start of that
cog’s access window. The hub instruction executes immediately (7 cycles) leaving an
additional 9 cycles for other instructions before the next Hub Access Window arrives.
Page 24 · Propeller Manual v1.0
1) its physical register address,
2) its predefined name, or
3) a register array variable with an index of 0 to 15.
$1F4, #$FF
OUTA, #$FF
'Set OUTA 7:0 high
'Same as above
'Set OUTA 7:0 high
'Same as above

Related parts for 122-32000