A16 Address Space
Outside the Command
Module
A16 Address Space
Inside the Command
Module or Mainframe
Register Offset
Appendix B
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
When the E1406 Command Module is not part of your VXIbus system, the
E1470 base address is computed as:
A16
= C000
+ (LADDR
base
h
or (decimal)
A16
= 49,152 + (LADDR * 64)
base
where C000
(49,152) is the starting location of the register addresses,
h
LADDR is the module's logical address, and 64 is the number of address
bytes per VXI device.
For example, the E1470 factory-set logical address is 120 (78
it will have a base address of:
A16
= C000
+ (78
base
h
h
or (decimal)
A16
= 49,152 + (120 * 64) = 49,152 + 7680 =
base
When the A16 address space is inside the E1406 Command Module, the
E1470 base address is computed as:
1FC000
+ (LADDR
* 40
h
h
or (decimal)
2,080,768 + (LADDR * 64)
where 1FC000
(2,080,768) is the starting location of the VXI A16
h
addresses, LADDR is the module's logical address, and 64 is the number
of address bytes per register-based device. The E1470 factory-set logical
address is 120. If this address is not changed, the module will have a base
address of:
1FC000
+ (78
* 40
) = 1FC000
h
h
h
or (decimal)
2,080,768 + (120 * 64) = 2,080,768 + 7680 =
The register offset is the register's location in the block of 64 address bytes
that belong to the module. For example, the module's Status/Control
Register has an offset of 04
the offset is added to the base address to form the register address:
DE00
+ 04
= DE04
1FDE00
h
h
h
or (decimal)
56,832 + 4 = 56,836 2,088,488 + 4 =
Table B-1 shows general programming method to access E1470 registers.
* 40
)
h
h
* 40
) = C000
+ 1E00
=
h
h
h
56,832
)
h
+ 1E00
=
1FDE00
h
h
2,088,448
. When you write a command to this register,
h
+ 04
=
1FDE04
h
h
h
2,088,492
Register-Based Programming 43
). Therefore,
h
DE00
h
h