Model 466-1 Adapter
70 Common Procedure And Programming Sequences
8.8 Modifying The Control Registers
The software must write "1"s and "0"s to specific bits in the control registers to
control the adapter. The software must keep track of the states of the other bits
in the control registers to not inadvertently write undesired values to the other
bits. Two methods can be used:
Read-Mask-Write.
This method involves reading the register, masking
a "1" or "0" into the desired bit position, then writing the result (as a byte)
back to the register. Care must be taken with this method because reading
some I/O register locations returns different results than what was written.
For example, when placing the adapter into Page Mode, it would be an
error to read the Remote Status Register (I/O LO + 9), and OR the results
with 0x09, then write the result to the Remote Command Register 1 (I/O
LO + 9). This would inadvertently set the
LOCK Bus
bit because reading
I/O LO + 9 returns a value for the
LOCK Bus
bit that is the inversion of
what was written.
Keep an image of the control register in system RAM. When the software
needs to change the value of a specific bit, it can perform the necessary
masking on the image. The image can then be written to the appropriate
control register. This method may seem slightly more cumbersome, but it
tends to result in more robust, reliable code.
Summary of Contents for 466-1
Page 1: ...Model 466 1 Adapter Hardware Manual Connects a SBus Computer to a VMEbus System...
Page 2: ...Model 466 1 Adapter ii...
Page 24: ...Model 466 1 Adapter 14 Adapter Functions...
Page 52: ...Model 466 1 Adapter 42 VMEbus Adapter Card Configuration...
Page 70: ...Model 466 1 Adapter 60 CSR Accessed From The SBus...
Page 88: ...Model 466 1 Adapter 78 Common Problems And Solutions...
Page 106: ...Model 466 1 Adapter 96 Jumper Configuration Worksheets...
Page 107: ...Model 466 1 Adapter Jumper Configuration Worksheets 97 D 1 SBus Adapter Card Worksheet J1...
Page 108: ...Model 466 1 Adapter 98 Jumper Configuration Worksheets...
Page 110: ...Model 466 1 Adapter 100 Jumper Configuration Worksheets...