Download Print this page

Xycom XVME-240 Manual page 34

Digital i/o module
Hide thumbs Also See for XVME-240:

Advertisement

XVME-240
Manual
October, 1984
in the I/O Interface Block, and if the base address of the module is set at l000H, then
I/O Port 3 can be accessed at 108BH.
(Module Base
Address)
l000H
The I/O ports are all read/write registers and they can be read from or written to at
any time. The data read will always reflect the state of the actual port lines. The
data latch for each port is cleared to OOH during any VME SYSRESET or software
reset.
3.3.3.1
Port Direction Register (Base Address + 87H)
As mentioned in the previous section, the 8 I/O ports are bidirectional. This means
that each port can operate as an output port or as an input port (not both at the same
time). The direction of each port is determined by the contents of the (read/write)
Port Direction Register (Base address + 87H). Each bit in the Port Direction register
corresponds to one of the I/O ports. Bit 0 corresponds to Port
Port 1, and so on. When a logic "0" is written to a specific bit in the Port Direction
register, the port corresponding to that bit will be configured as an input port. When a
logic "1" is written to a specific bit in the register, the corresponding port will be
configured as an output port. Figure 3-3 is a bit map of the Port Direction register.
PORT DIRECTION REGISTER (module Base + 87H)
Bit
Bit
Bit
7
6
5
I
A logic " 1 "
A logic "0"
(I/O
Interface
Block Offset)
+
8 B H
Bit Bit Bit Bit Bit
l
4
3
2
I
I
I
configures a Port for output.
configures a Port for input.
Figure 3-3. Port Direction Register Bit Map
(I/O
Port 3)
=
108BH
t
1
0
.
Port
I/O Port 3
I/O Port 4
I/O Port 5
I/O Port 6
I/O Port 7
3-7
bit 1 corresponds to
0,
0

Advertisement

loading
Need help?

Need help?

Do you have a question about the XVME-240 and is the answer not in the manual?

Subscribe to Our Youtube Channel