Register Offset - HP E1418A User Manual

8/16-channel d/a converter module
Hide thumbs Also See for E1418A:
Table of Contents

Advertisement

Register Offset

System
External Computer
(over HP-IB to
E1405/E1406
Command Module)
V/382 Embedded
Computer
SICL
LADDR = HP E1418A Logical Address = 72 = 48
Appendix B
The register offset is the register's location in the block of 64 bytes that
belong to the module. For example, the module's Status/Control Register
has an offset of 04
is added to the base address to form the register address:
register_address = base_address + register _offset
Outside the command module:
D200
16
53,760 + 4 = 53,764
In the command module:
1FD200
2,085,376 + 4 = 2,085,380
Table B-1 shows some general programming methods for accessing the
HP E1418A registers using different computers.
Table B-1. Register Access
Typical Commands
VXI:READ? logical_address, offset
VXI:WRITE logical_address, offset, data
DIAG:PEEK? Base_addr + offset, width
DIAG:POKE Base_addr + offset, width, data
(width must be either 8 or 16)
READIO (-18, Base_addr + offset)
WRITEIO (-18, Base_addr + offset; data)
(positive select code = byte read or write
negative select code = word read or write)
iwpoke(Base_addr + offset,data)
iwpeek(Base_addr + offset)
16
. When you write a command to this register, the offset
16
+ 04
= D204
16
16
+ 04
= 1FD204
16
16
16
Base_addr = 1FC000
Base_addr = C000
imap(id,I_MAP_VXIDEV,0,0,NULL)
HP E1418A Register-Based Programming
Base Address
logical_address = LADDR
offset = register number
+ (LADDR
16
or
= 2,080,768 + (LADDR * 64)
offset = register number
+ (LADDR
16
16
or
= 49,152 + (LADDR * 64)
offset = register number
* 40
)
16
16
* 40
)
16
120

Advertisement

Table of Contents
loading

Table of Contents