Opening a dual-port RAM
page
Operation
Parameter Description
ACR
Open the dual-port RAM page whose
number is located in ACCU-1-L ,
permissible values:
0 to 255
The dual-port RAM page number must be between 0 and 255. If it is not,
the CPU detects a substitution error (SUF) and calls OB 27. If OB 27 is
not loaded, the CPU changes to the STOP mode.
Testing and setting an
"occupied" register in
the dual-port RAM area
You can control access of individual CPUs to commonly used memory
areas by using an "occupied" register. An "occupied" register is assigned
to each commonly used memory area. Each participating CPU must test
this register before accessing the memory area. The "occupied" register
contains either the value ’0’ or the slot ID of the CPU that is presently
using the memory area. When the CPU is finished using the memory
area, it writes ’0’ to the "occupied" register to re-enable the memory
area. (Note the explanations of the operations "set semaphore/SED" and
"enable semaphore/SEE" in Section 3.5.5.)
The TSC operation handles the testing and setting of a location on the
open page.
Operation
Operand Description
TSC
-32 768 to
+32 767
Add the specified constant to the content
of the BR register and test and set the
location addressed in this way on the
open page.
Sequence
The low byte of the word addressed by the sum of the BR re
constant is used as the "occupied" register. If the low byte contains
’0’, the TSC operation enters the slot ID of the CPU in the "occupied"
register.
Testing (reading) and possible occupation (writing) form a program
unit that cannot be interrupted.
Operations with the Base Address Register (BR Register)
CPU 948 Programming Guide
9 - 30
C79000-G8576-C848-04
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...